Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/CallBehaviorActionEditPart.java')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/CallBehaviorActionEditPart.java3153
1 files changed, 1599 insertions, 1554 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/CallBehaviorActionEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/CallBehaviorActionEditPart.java
index 0e52ab4631c..855827538ac 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/CallBehaviorActionEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/parts/CallBehaviorActionEditPart.java
@@ -1,1554 +1,1599 @@
-/*****************************************************************************
- * Copyright (c) 2009 Atos Origin.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Atos Origin - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.diagram.activity.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.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.RequestConstants;
-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.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.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
-import org.eclipse.papyrus.infra.gmfdiag.common.preferences.PreferencesConstantsHelper;
-import org.eclipse.papyrus.infra.gmfdiag.preferences.utils.GradientPreferenceConverter;
-import org.eclipse.papyrus.uml.diagram.activity.edit.policies.ActivityDiagramChangeStereotypedShapeEditpolicy;
-import org.eclipse.papyrus.uml.diagram.activity.edit.policies.CallBehaviorActionCanonicalEditPolicy;
-import org.eclipse.papyrus.uml.diagram.activity.edit.policies.CallBehaviorActionItemSemanticEditPolicy;
-import org.eclipse.papyrus.uml.diagram.activity.edit.policies.CreateActionLocalConditionEditPolicy;
-import org.eclipse.papyrus.uml.diagram.activity.edit.policies.CustomDiagramDragDropEditPolicy;
-import org.eclipse.papyrus.uml.diagram.activity.edit.policies.DeleteActionViewEditPolicy;
-import org.eclipse.papyrus.uml.diagram.activity.edit.policies.OpenDiagramEditPolicy;
-import org.eclipse.papyrus.uml.diagram.activity.figures.CallBehaviorActionFigure;
-import org.eclipse.papyrus.uml.diagram.activity.locator.PinPositionLocator;
-import org.eclipse.papyrus.uml.diagram.activity.part.UMLDiagramEditorPlugin;
-import org.eclipse.papyrus.uml.diagram.activity.part.UMLVisualIDRegistry;
-import org.eclipse.papyrus.uml.diagram.activity.providers.UMLElementTypes;
-import org.eclipse.papyrus.uml.diagram.common.editparts.NamedElementEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.BorderItemResizableEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.ChangeStereotypedShapeEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.helper.PreferenceInitializerForElementHelper;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.uml2.uml.Activity;
-import org.eclipse.uml2.uml.CallBehaviorAction;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * @generated
- */
-public class CallBehaviorActionEditPart extends NamedElementEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 3008;
-
- /**
- * @generated
- */
- protected IFigure contentPane;
-
- /**
- * @generated
- */
- protected IFigure primaryShape;
-
- /**
- * @generated
- */
- public CallBehaviorActionEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- @Override
- protected void createDefaultEditPolicies() {
- installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CallBehaviorActionItemSemanticEditPolicy());
- installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
- // in Papyrus diagrams are not strongly synchronised
- // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.activity.edit.policies.CallBehaviorActionCanonicalEditPolicy());
- installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
- installEditPolicy(EditPolicyRoles.OPEN_ROLE, new OpenDiagramEditPolicy());
- installEditPolicy(RequestConstants.REQ_CREATE, new CreateActionLocalConditionEditPolicy());
- installEditPolicy(RequestConstants.REQ_DELETE, new DeleteActionViewEditPolicy());
- installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new CallBehaviorActionCanonicalEditPolicy());
- installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
- installEditPolicy(ChangeStereotypedShapeEditPolicy.CHANGE_SHAPE_POLICY, new ActivityDiagramChangeStereotypedShapeEditpolicy());
- 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
- **/
- @Override
- protected void handleNotificationEvent(Notification event) {
- super.handleNotificationEvent(event);
- // Add/Remove the RakeFigure when an Activity is selected as behavior or deselected
- if (resolveSemanticElement() != null) {
- if (resolveSemanticElement() instanceof CallBehaviorAction && resolveSemanticElement().equals(event.getNotifier()) && event.getFeature().equals(UMLPackage.eINSTANCE.getCallBehaviorAction_Behavior())) {
- CallBehaviorAction action = (CallBehaviorAction) resolveSemanticElement();
- if (action.getBehavior() instanceof Activity) {
- getPrimaryShape().displayRake(true);
- } else {
- getPrimaryShape().displayRake(false);
- }
- ;
- refreshVisuals();
- }
- }
- }
-
- /**
- * @generated
- */
- protected LayoutEditPolicy createLayoutEditPolicy() {
- org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
-
- @Override
- protected EditPolicy createChildEditPolicy(EditPart child) {
- View childView = (View) child.getModel();
- switch (UMLVisualIDRegistry.getVisualID(childView)) {
- case ValuePinInCallBeActEditPart.VISUAL_ID:
- case ActionInputPinInCallBeActEditPart.VISUAL_ID:
- case InputPinInCallBeActEditPart.VISUAL_ID:
- case OutputPinInCallBeActEditPart.VISUAL_ID:
- return new BorderItemResizableEditPolicy();
- }
- EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
- if (result == null) {
- result = new NonResizableEditPolicy();
- }
- return result;
- }
-
- @Override
- protected Command getMoveChildrenCommand(Request request) {
- return null;
- }
-
- @Override
- protected Command getCreateCommand(CreateRequest request) {
- return null;
- }
- };
- return lep;
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure createNodeShape() {
- return primaryShape = new CallBehaviorActionFigure();
- }
-
- /**
- * @generated
- */
- @Override
- public CallBehaviorActionFigure getPrimaryShape() {
- return (CallBehaviorActionFigure) primaryShape;
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof CallBehaviorActionNameEditPart) {
- ((CallBehaviorActionNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
- // Papyrus Gencode :Affixed Pin locator for Actions
- if (childEditPart instanceof ValuePinInCallBeActEditPart) {
- IBorderItemLocator locator = new PinPositionLocator(getMainFigure(), PositionConstants.WEST);
- getBorderedFigure().getBorderItemContainer().add(((ValuePinInCallBeActEditPart) childEditPart).getFigure(), locator);
- return true;
- }
- // Papyrus Gencode :Affixed Pin locator for Actions
- if (childEditPart instanceof ActionInputPinInCallBeActEditPart) {
- IBorderItemLocator locator = new PinPositionLocator(getMainFigure(), PositionConstants.WEST);
- getBorderedFigure().getBorderItemContainer().add(((ActionInputPinInCallBeActEditPart) childEditPart).getFigure(), locator);
- return true;
- }
- // Papyrus Gencode :Affixed Pin locator for Actions
- if (childEditPart instanceof InputPinInCallBeActEditPart) {
- IBorderItemLocator locator = new PinPositionLocator(getMainFigure(), PositionConstants.WEST);
- getBorderedFigure().getBorderItemContainer().add(((InputPinInCallBeActEditPart) childEditPart).getFigure(), locator);
- return true;
- }
- // Papyrus Gencode :Affixed Pin locator for Actions
- if (childEditPart instanceof OutputPinInCallBeActEditPart) {
- IBorderItemLocator locator = new PinPositionLocator(getMainFigure(), PositionConstants.EAST);
- getBorderedFigure().getBorderItemContainer().add(((OutputPinInCallBeActEditPart) childEditPart).getFigure(), locator);
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if (childEditPart instanceof CallBehaviorActionNameEditPart) {
- return true;
- }
- if (childEditPart instanceof ValuePinInCallBeActEditPart) {
- getBorderedFigure().getBorderItemContainer().remove(((ValuePinInCallBeActEditPart) childEditPart).getFigure());
- return true;
- }
- if (childEditPart instanceof ActionInputPinInCallBeActEditPart) {
- getBorderedFigure().getBorderItemContainer().remove(((ActionInputPinInCallBeActEditPart) childEditPart).getFigure());
- return true;
- }
- if (childEditPart instanceof InputPinInCallBeActEditPart) {
- getBorderedFigure().getBorderItemContainer().remove(((InputPinInCallBeActEditPart) childEditPart).getFigure());
- return true;
- }
- if (childEditPart instanceof OutputPinInCallBeActEditPart) {
- getBorderedFigure().getBorderItemContainer().remove(((OutputPinInCallBeActEditPart) childEditPart).getFigure());
- return true;
- }
- return false;
- }
-
- /**
- * @generated
- */
- @Override
- protected void addChildVisual(EditPart childEditPart, int index) {
- if (addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
- /**
- * @generated
- */
- @Override
- protected void removeChildVisual(EditPart childEditPart) {
- if (removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
- /**
- * @generated
- */
- @Override
- protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
- if (editPart instanceof IBorderItemEditPart) {
- return getBorderedFigure().getBorderItemContainer();
- }
- return getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected NodeFigure createNodePlate() {
- String prefElementId = "CallBehaviorAction";
- IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
- String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferencesConstantsHelper.WIDTH);
- String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferencesConstantsHelper.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
- */
- @Override
- protected NodeFigure createMainFigure() {
- NodeFigure figure = createNodePlate();
- figure.setLayoutManager(new StackLayout());
- IFigure shape = createNodeShape();
- figure.add(shape);
- contentPane = setupContentPane(shape);
- return figure;
- }
-
- /**
- * Refresh the children parts, including the rake if necessary
- *
- * @see org.eclipse.gef.editparts.AbstractEditPart#refreshChildren()
- * @generated NOT
- */
- @Override
- protected void refreshChildren() {
- super.refreshChildren();
- // add the rake if behavior is an activity
- if (resolveSemanticElement() instanceof CallBehaviorAction) {
- CallBehaviorAction action = (CallBehaviorAction) resolveSemanticElement();
- if (action.getBehavior() instanceof Activity) {
- getPrimaryShape().displayRake(true);
- } else {
- getPrimaryShape().displayRake(false);
- }
- }
- }
-
- /**
- * 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
- */
- @Override
- 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
- */
- @Override
- public IFigure getContentPane() {
- if (contentPane != null) {
- return contentPane;
- }
- return super.getContentPane();
- }
-
- /**
- * @generated
- */
- @Override
- protected void setForegroundColor(Color color) {
- if (primaryShape != null) {
- primaryShape.setForegroundColor(color);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineWidth(int width) {
- if (primaryShape instanceof IPapyrusNodeFigure) { // Manually replaced, waiting for next generation
- ((IPapyrusNodeFigure) primaryShape).setLineWidth(width);
- }
- }
-
- /**
- * @generated
- */
- @Override
- protected void setLineType(int style) {
- if (primaryShape instanceof IPapyrusNodeFigure) { // Manually replaced, waiting for next generation
- ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
- }
- }
-
- /**
- * @generated
- */
- @Override
- public EditPart getPrimaryChildEditPart() {
- return getChildBySemanticHint(UMLVisualIDRegistry.getType(CallBehaviorActionNameEditPart.VISUAL_ID));
- }
-
- /**
- * @generated
- */
- public List<IElementType> getMARelTypesOnSource() {
- ArrayList<IElementType> types = new ArrayList<IElementType>(5);
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- types.add(UMLElementTypes.ObjectFlow_4003);
- types.add(UMLElementTypes.ControlFlow_4004);
- types.add(UMLElementTypes.ExceptionHandler_4005);
- return types;
- }
-
- /**
- * @generated
- */
- public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
- LinkedList<IElementType> types = new LinkedList<IElementType>();
- if (targetEditPart instanceof DurationConstraintAsLocalPrecondEditPart) {
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- }
- if (targetEditPart instanceof DurationConstraintAsLocalPostcondEditPart) {
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- }
- if (targetEditPart instanceof TimeConstraintAsLocalPrecondEditPart) {
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- }
- if (targetEditPart instanceof TimeConstraintAsLocalPostcondEditPart) {
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- }
- if (targetEditPart instanceof IntervalConstraintAsLocalPrecondEditPart) {
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- }
- if (targetEditPart instanceof IntervalConstraintAsLocalPostcondEditPart) {
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- }
- if (targetEditPart instanceof ConstraintAsLocalPrecondEditPart) {
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- }
- if (targetEditPart instanceof ConstraintAsLocalPostcondEditPart) {
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- }
- if (targetEditPart instanceof ConstraintEditPartCN) {
- types.add(UMLElementTypes.ActionLocalPrecondition_4001);
- }
- if (targetEditPart instanceof DurationConstraintAsLocalPrecondEditPart) {
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- }
- if (targetEditPart instanceof DurationConstraintAsLocalPostcondEditPart) {
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- }
- if (targetEditPart instanceof TimeConstraintAsLocalPrecondEditPart) {
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- }
- if (targetEditPart instanceof TimeConstraintAsLocalPostcondEditPart) {
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- }
- if (targetEditPart instanceof IntervalConstraintAsLocalPrecondEditPart) {
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- }
- if (targetEditPart instanceof IntervalConstraintAsLocalPostcondEditPart) {
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- }
- if (targetEditPart instanceof ConstraintAsLocalPrecondEditPart) {
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- }
- if (targetEditPart instanceof ConstraintAsLocalPostcondEditPart) {
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- }
- if (targetEditPart instanceof ConstraintEditPartCN) {
- types.add(UMLElementTypes.ActionLocalPostcondition_4002);
- }
- if (targetEditPart instanceof InitialNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActivityFinalNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof FlowFinalNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OpaqueActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ValuePinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActionInputPinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof org.eclipse.papyrus.uml.diagram.activity.edit.parts.CallBehaviorActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ValuePinInCallBeActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActionInputPinInCallBeActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInCallBeActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInCallBeActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof CallOperationActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActionInputPinInCallOpActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ValuePinInCallOpActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInCallOpActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInCallOpActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ValuePinInCallOpActAsTargetEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActionInputPinInCallOpActAsTargetEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInCallOpActAsTargetEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof DecisionNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof MergeNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ForkNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof JoinNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof DataStoreNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof SendObjectActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ValuePinInSendObjActAsReqEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActionInputPinInSendObjActAsReqEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInSendObjActAsReqEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ValuePinInSendObjActAsTargetEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActionInputPinInSendObjActAsTargetEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInSendObjActAsTargetEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof SendSignalActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActionInputPinInSendSigActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ValuePinInSendSigActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInSendSigActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ValuePinInSendSigActAsTargetEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActionInputPinInSendSigActAsTargetEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInSendSigActAsTargetEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ActivityParameterNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof AcceptEventActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInAcceptEventActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ValueSpecificationActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInValSpecActEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ConditionalNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ExpansionRegionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ExpansionNodeAsInEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ExpansionNodeAsOutEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof LoopNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInLoopNodeAsBodyOutputEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInLoopNodeAsLoopVariableEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInLoopNodeAsResultEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof SequenceNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof StructuredActivityNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInLoopNodeAsVariableEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ReadSelfActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ReadSelfActionOutputPinEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof CreateObjectActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInCreateObjectActionAsResultEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ReadStructuralFeatureActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInReadStructuralFeatureAsObjectEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInReadStructuralFeatureAsResultEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof AddStructuralFeatureValueActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsObjectEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsValueEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInAddStructuralFeatureValueActionAsResultEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof DestroyObjectActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInDestroyObjectActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof ReadVariableActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof OutputPinInReadVariableActionAsResultEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof AddVariableValueActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInAddVariableValueActionAsInsertAtEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInAddVariableValueActionAsValueEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof BroadcastSignalActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InputPinInBroadcastSignalActionEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof CentralBufferNodeEditPart) {
- types.add(UMLElementTypes.ObjectFlow_4003);
- }
- if (targetEditPart instanceof InitialNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActivityFinalNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof FlowFinalNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OpaqueActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValuePinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActionInputPinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof org.eclipse.papyrus.uml.diagram.activity.edit.parts.CallBehaviorActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValuePinInCallBeActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActionInputPinInCallBeActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInCallBeActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInCallBeActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof CallOperationActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActionInputPinInCallOpActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValuePinInCallOpActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInCallOpActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInCallOpActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValuePinInCallOpActAsTargetEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActionInputPinInCallOpActAsTargetEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInCallOpActAsTargetEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof DecisionNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof MergeNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ForkNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof JoinNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof DataStoreNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof SendObjectActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValuePinInSendObjActAsReqEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActionInputPinInSendObjActAsReqEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInSendObjActAsReqEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValuePinInSendObjActAsTargetEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActionInputPinInSendObjActAsTargetEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInSendObjActAsTargetEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof SendSignalActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActionInputPinInSendSigActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValuePinInSendSigActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInSendSigActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValuePinInSendSigActAsTargetEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActionInputPinInSendSigActAsTargetEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInSendSigActAsTargetEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ActivityParameterNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof AcceptEventActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInAcceptEventActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValueSpecificationActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInValSpecActEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ConditionalNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ExpansionRegionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ExpansionNodeAsInEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ExpansionNodeAsOutEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof LoopNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInLoopNodeAsBodyOutputEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInLoopNodeAsLoopVariableEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInLoopNodeAsResultEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof SequenceNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof StructuredActivityNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInLoopNodeAsVariableEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ReadSelfActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ReadSelfActionOutputPinEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof CreateObjectActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInCreateObjectActionAsResultEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ReadStructuralFeatureActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInReadStructuralFeatureAsObjectEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInReadStructuralFeatureAsResultEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof AddStructuralFeatureValueActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsObjectEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsValueEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInAddStructuralFeatureValueActionAsResultEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof DestroyObjectActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInDestroyObjectActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ReadVariableActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof OutputPinInReadVariableActionAsResultEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof AddVariableValueActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInAddVariableValueActionAsInsertAtEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInAddVariableValueActionAsValueEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof BroadcastSignalActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof InputPinInBroadcastSignalActionEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof CentralBufferNodeEditPart) {
- types.add(UMLElementTypes.ControlFlow_4004);
- }
- if (targetEditPart instanceof ValuePinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ActionInputPinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInOpaqueActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ValuePinInCallBeActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ActionInputPinInCallBeActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInCallBeActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInCallBeActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ActionInputPinInCallOpActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ValuePinInCallOpActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInCallOpActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInCallOpActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ValuePinInCallOpActAsTargetEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ActionInputPinInCallOpActAsTargetEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInCallOpActAsTargetEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof DataStoreNodeEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ValuePinInSendObjActAsReqEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ActionInputPinInSendObjActAsReqEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInSendObjActAsReqEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ValuePinInSendObjActAsTargetEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ActionInputPinInSendObjActAsTargetEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInSendObjActAsTargetEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ActionInputPinInSendSigActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ValuePinInSendSigActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInSendSigActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ValuePinInSendSigActAsTargetEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ActionInputPinInSendSigActAsTargetEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInSendSigActAsTargetEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ActivityParameterNodeEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInAcceptEventActionEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInValSpecActEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ExpansionNodeAsInEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ExpansionNodeAsOutEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInLoopNodeAsBodyOutputEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInLoopNodeAsLoopVariableEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInLoopNodeAsResultEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInLoopNodeAsVariableEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof ReadSelfActionOutputPinEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInCreateObjectActionAsResultEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInReadStructuralFeatureAsObjectEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInReadStructuralFeatureAsResultEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsObjectEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsValueEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInAddStructuralFeatureValueActionAsResultEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInDestroyObjectActionEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof OutputPinInReadVariableActionAsResultEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInAddVariableValueActionAsInsertAtEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInAddVariableValueActionAsValueEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof InputPinInBroadcastSignalActionEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- if (targetEditPart instanceof CentralBufferNodeEditPart) {
- types.add(UMLElementTypes.ExceptionHandler_4005);
- }
- return types;
- }
-
- /**
- * @generated
- */
- public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
- LinkedList<IElementType> types = new LinkedList<IElementType>();
- if (relationshipType == UMLElementTypes.ActionLocalPrecondition_4001) {
- types.add(UMLElementTypes.DurationConstraint_3034);
- types.add(UMLElementTypes.DurationConstraint_3035);
- types.add(UMLElementTypes.TimeConstraint_3036);
- types.add(UMLElementTypes.TimeConstraint_3037);
- types.add(UMLElementTypes.IntervalConstraint_3032);
- types.add(UMLElementTypes.IntervalConstraint_3033);
- types.add(UMLElementTypes.Constraint_3011);
- types.add(UMLElementTypes.Constraint_3012);
- types.add(UMLElementTypes.Constraint_3112);
- } else if (relationshipType == UMLElementTypes.ActionLocalPostcondition_4002) {
- types.add(UMLElementTypes.DurationConstraint_3034);
- types.add(UMLElementTypes.DurationConstraint_3035);
- types.add(UMLElementTypes.TimeConstraint_3036);
- types.add(UMLElementTypes.TimeConstraint_3037);
- types.add(UMLElementTypes.IntervalConstraint_3032);
- types.add(UMLElementTypes.IntervalConstraint_3033);
- types.add(UMLElementTypes.Constraint_3011);
- types.add(UMLElementTypes.Constraint_3012);
- types.add(UMLElementTypes.Constraint_3112);
- } else if (relationshipType == UMLElementTypes.ObjectFlow_4003) {
- types.add(UMLElementTypes.InitialNode_3004);
- types.add(UMLElementTypes.ActivityFinalNode_3005);
- types.add(UMLElementTypes.FlowFinalNode_3006);
- types.add(UMLElementTypes.OpaqueAction_3007);
- types.add(UMLElementTypes.ValuePin_3015);
- types.add(UMLElementTypes.ActionInputPin_3016);
- types.add(UMLElementTypes.InputPin_3013);
- types.add(UMLElementTypes.OutputPin_3014);
- types.add(UMLElementTypes.CallBehaviorAction_3008);
- types.add(UMLElementTypes.ValuePin_3017);
- types.add(UMLElementTypes.ActionInputPin_3018);
- types.add(UMLElementTypes.InputPin_3019);
- types.add(UMLElementTypes.OutputPin_3020);
- types.add(UMLElementTypes.CallOperationAction_3010);
- types.add(UMLElementTypes.ActionInputPin_3021);
- types.add(UMLElementTypes.ValuePin_3022);
- types.add(UMLElementTypes.InputPin_3023);
- types.add(UMLElementTypes.OutputPin_3024);
- types.add(UMLElementTypes.ValuePin_3025);
- types.add(UMLElementTypes.ActionInputPin_3026);
- types.add(UMLElementTypes.InputPin_3027);
- types.add(UMLElementTypes.DecisionNode_3038);
- types.add(UMLElementTypes.MergeNode_3039);
- types.add(UMLElementTypes.ForkNode_3040);
- types.add(UMLElementTypes.JoinNode_3041);
- types.add(UMLElementTypes.DataStoreNode_3078);
- types.add(UMLElementTypes.SendObjectAction_3042);
- types.add(UMLElementTypes.ValuePin_3046);
- types.add(UMLElementTypes.ActionInputPin_3047);
- types.add(UMLElementTypes.InputPin_3048);
- types.add(UMLElementTypes.ValuePin_3049);
- types.add(UMLElementTypes.ActionInputPin_3050);
- types.add(UMLElementTypes.InputPin_3051);
- types.add(UMLElementTypes.SendSignalAction_3052);
- types.add(UMLElementTypes.ActionInputPin_3053);
- types.add(UMLElementTypes.ValuePin_3054);
- types.add(UMLElementTypes.InputPin_3055);
- types.add(UMLElementTypes.ValuePin_3060);
- types.add(UMLElementTypes.ActionInputPin_3061);
- types.add(UMLElementTypes.InputPin_3062);
- types.add(UMLElementTypes.ActivityParameterNode_3059);
- types.add(UMLElementTypes.AcceptEventAction_3063);
- types.add(UMLElementTypes.OutputPin_3064);
- types.add(UMLElementTypes.ValueSpecificationAction_3076);
- types.add(UMLElementTypes.OutputPin_3077);
- types.add(UMLElementTypes.ConditionalNode_3069);
- types.add(UMLElementTypes.ExpansionRegion_3070);
- types.add(UMLElementTypes.ExpansionNode_3074);
- types.add(UMLElementTypes.ExpansionNode_3075);
- types.add(UMLElementTypes.LoopNode_3071);
- types.add(UMLElementTypes.OutputPin_3109);
- types.add(UMLElementTypes.OutputPin_3110);
- types.add(UMLElementTypes.OutputPin_3111);
- types.add(UMLElementTypes.SequenceNode_3073);
- types.add(UMLElementTypes.StructuredActivityNode_3065);
- types.add(UMLElementTypes.InputPin_3105);
- types.add(UMLElementTypes.ReadSelfAction_3081);
- types.add(UMLElementTypes.OutputPin_3084);
- types.add(UMLElementTypes.CreateObjectAction_3086);
- types.add(UMLElementTypes.OutputPin_3087);
- types.add(UMLElementTypes.ReadStructuralFeatureAction_3088);
- types.add(UMLElementTypes.InputPin_3089);
- types.add(UMLElementTypes.OutputPin_3090);
- types.add(UMLElementTypes.AddStructuralFeatureValueAction_3091);
- types.add(UMLElementTypes.InputPin_3092);
- types.add(UMLElementTypes.InputPin_3093);
- types.add(UMLElementTypes.OutputPin_3094);
- types.add(UMLElementTypes.DestroyObjectAction_3095);
- types.add(UMLElementTypes.InputPin_3096);
- types.add(UMLElementTypes.ReadVariableAction_3097);
- types.add(UMLElementTypes.OutputPin_3098);
- types.add(UMLElementTypes.AddVariableValueAction_3099);
- types.add(UMLElementTypes.InputPin_3100);
- types.add(UMLElementTypes.InputPin_3101);
- types.add(UMLElementTypes.BroadcastSignalAction_3102);
- types.add(UMLElementTypes.InputPin_3103);
- types.add(UMLElementTypes.CentralBufferNode_3104);
- } else if (relationshipType == UMLElementTypes.ControlFlow_4004) {
- types.add(UMLElementTypes.InitialNode_3004);
- types.add(UMLElementTypes.ActivityFinalNode_3005);
- types.add(UMLElementTypes.FlowFinalNode_3006);
- types.add(UMLElementTypes.OpaqueAction_3007);
- types.add(UMLElementTypes.ValuePin_3015);
- types.add(UMLElementTypes.ActionInputPin_3016);
- types.add(UMLElementTypes.InputPin_3013);
- types.add(UMLElementTypes.OutputPin_3014);
- types.add(UMLElementTypes.CallBehaviorAction_3008);
- types.add(UMLElementTypes.ValuePin_3017);
- types.add(UMLElementTypes.ActionInputPin_3018);
- types.add(UMLElementTypes.InputPin_3019);
- types.add(UMLElementTypes.OutputPin_3020);
- types.add(UMLElementTypes.CallOperationAction_3010);
- types.add(UMLElementTypes.ActionInputPin_3021);
- types.add(UMLElementTypes.ValuePin_3022);
- types.add(UMLElementTypes.InputPin_3023);
- types.add(UMLElementTypes.OutputPin_3024);
- types.add(UMLElementTypes.ValuePin_3025);
- types.add(UMLElementTypes.ActionInputPin_3026);
- types.add(UMLElementTypes.InputPin_3027);
- types.add(UMLElementTypes.DecisionNode_3038);
- types.add(UMLElementTypes.MergeNode_3039);
- types.add(UMLElementTypes.ForkNode_3040);
- types.add(UMLElementTypes.JoinNode_3041);
- types.add(UMLElementTypes.DataStoreNode_3078);
- types.add(UMLElementTypes.SendObjectAction_3042);
- types.add(UMLElementTypes.ValuePin_3046);
- types.add(UMLElementTypes.ActionInputPin_3047);
- types.add(UMLElementTypes.InputPin_3048);
- types.add(UMLElementTypes.ValuePin_3049);
- types.add(UMLElementTypes.ActionInputPin_3050);
- types.add(UMLElementTypes.InputPin_3051);
- types.add(UMLElementTypes.SendSignalAction_3052);
- types.add(UMLElementTypes.ActionInputPin_3053);
- types.add(UMLElementTypes.ValuePin_3054);
- types.add(UMLElementTypes.InputPin_3055);
- types.add(UMLElementTypes.ValuePin_3060);
- types.add(UMLElementTypes.ActionInputPin_3061);
- types.add(UMLElementTypes.InputPin_3062);
- types.add(UMLElementTypes.ActivityParameterNode_3059);
- types.add(UMLElementTypes.AcceptEventAction_3063);
- types.add(UMLElementTypes.OutputPin_3064);
- types.add(UMLElementTypes.ValueSpecificationAction_3076);
- types.add(UMLElementTypes.OutputPin_3077);
- types.add(UMLElementTypes.ConditionalNode_3069);
- types.add(UMLElementTypes.ExpansionRegion_3070);
- types.add(UMLElementTypes.ExpansionNode_3074);
- types.add(UMLElementTypes.ExpansionNode_3075);
- types.add(UMLElementTypes.LoopNode_3071);
- types.add(UMLElementTypes.OutputPin_3109);
- types.add(UMLElementTypes.OutputPin_3110);
- types.add(UMLElementTypes.OutputPin_3111);
- types.add(UMLElementTypes.SequenceNode_3073);
- types.add(UMLElementTypes.StructuredActivityNode_3065);
- types.add(UMLElementTypes.InputPin_3105);
- types.add(UMLElementTypes.ReadSelfAction_3081);
- types.add(UMLElementTypes.OutputPin_3084);
- types.add(UMLElementTypes.CreateObjectAction_3086);
- types.add(UMLElementTypes.OutputPin_3087);
- types.add(UMLElementTypes.ReadStructuralFeatureAction_3088);
- types.add(UMLElementTypes.InputPin_3089);
- types.add(UMLElementTypes.OutputPin_3090);
- types.add(UMLElementTypes.AddStructuralFeatureValueAction_3091);
- types.add(UMLElementTypes.InputPin_3092);
- types.add(UMLElementTypes.InputPin_3093);
- types.add(UMLElementTypes.OutputPin_3094);
- types.add(UMLElementTypes.DestroyObjectAction_3095);
- types.add(UMLElementTypes.InputPin_3096);
- types.add(UMLElementTypes.ReadVariableAction_3097);
- types.add(UMLElementTypes.OutputPin_3098);
- types.add(UMLElementTypes.AddVariableValueAction_3099);
- types.add(UMLElementTypes.InputPin_3100);
- types.add(UMLElementTypes.InputPin_3101);
- types.add(UMLElementTypes.BroadcastSignalAction_3102);
- types.add(UMLElementTypes.InputPin_3103);
- types.add(UMLElementTypes.CentralBufferNode_3104);
- } else if (relationshipType == UMLElementTypes.ExceptionHandler_4005) {
- types.add(UMLElementTypes.ValuePin_3015);
- types.add(UMLElementTypes.ActionInputPin_3016);
- types.add(UMLElementTypes.InputPin_3013);
- types.add(UMLElementTypes.OutputPin_3014);
- types.add(UMLElementTypes.ValuePin_3017);
- types.add(UMLElementTypes.ActionInputPin_3018);
- types.add(UMLElementTypes.InputPin_3019);
- types.add(UMLElementTypes.OutputPin_3020);
- types.add(UMLElementTypes.ActionInputPin_3021);
- types.add(UMLElementTypes.ValuePin_3022);
- types.add(UMLElementTypes.InputPin_3023);
- types.add(UMLElementTypes.OutputPin_3024);
- types.add(UMLElementTypes.ValuePin_3025);
- types.add(UMLElementTypes.ActionInputPin_3026);
- types.add(UMLElementTypes.InputPin_3027);
- types.add(UMLElementTypes.DataStoreNode_3078);
- types.add(UMLElementTypes.ValuePin_3046);
- types.add(UMLElementTypes.ActionInputPin_3047);
- types.add(UMLElementTypes.InputPin_3048);
- types.add(UMLElementTypes.ValuePin_3049);
- types.add(UMLElementTypes.ActionInputPin_3050);
- types.add(UMLElementTypes.InputPin_3051);
- types.add(UMLElementTypes.ActionInputPin_3053);
- types.add(UMLElementTypes.ValuePin_3054);
- types.add(UMLElementTypes.InputPin_3055);
- types.add(UMLElementTypes.ValuePin_3060);
- types.add(UMLElementTypes.ActionInputPin_3061);
- types.add(UMLElementTypes.InputPin_3062);
- types.add(UMLElementTypes.ActivityParameterNode_3059);
- types.add(UMLElementTypes.OutputPin_3064);
- types.add(UMLElementTypes.OutputPin_3077);
- types.add(UMLElementTypes.ExpansionNode_3074);
- types.add(UMLElementTypes.ExpansionNode_3075);
- types.add(UMLElementTypes.OutputPin_3109);
- types.add(UMLElementTypes.OutputPin_3110);
- types.add(UMLElementTypes.OutputPin_3111);
- types.add(UMLElementTypes.InputPin_3105);
- types.add(UMLElementTypes.OutputPin_3084);
- types.add(UMLElementTypes.OutputPin_3087);
- types.add(UMLElementTypes.InputPin_3089);
- types.add(UMLElementTypes.OutputPin_3090);
- types.add(UMLElementTypes.InputPin_3092);
- types.add(UMLElementTypes.InputPin_3093);
- types.add(UMLElementTypes.OutputPin_3094);
- types.add(UMLElementTypes.InputPin_3096);
- types.add(UMLElementTypes.OutputPin_3098);
- types.add(UMLElementTypes.InputPin_3100);
- types.add(UMLElementTypes.InputPin_3101);
- types.add(UMLElementTypes.InputPin_3103);
- types.add(UMLElementTypes.CentralBufferNode_3104);
- }
- return types;
- }
-
- /**
- * @generated
- */
- public List<IElementType> getMARelTypesOnTarget() {
- ArrayList<IElementType> types = new ArrayList<IElementType>(4);
- types.add(UMLElementTypes.ObjectFlow_4003);
- types.add(UMLElementTypes.ControlFlow_4004);
- types.add(UMLElementTypes.CommentAnnotatedElement_4006);
- types.add(UMLElementTypes.ConstraintConstrainedElement_4007);
- return types;
- }
-
- /**
- * @generated
- */
- public List<IElementType> getMATypesForSource(IElementType relationshipType) {
- LinkedList<IElementType> types = new LinkedList<IElementType>();
- if (relationshipType == UMLElementTypes.ObjectFlow_4003) {
- types.add(UMLElementTypes.InitialNode_3004);
- types.add(UMLElementTypes.ActivityFinalNode_3005);
- types.add(UMLElementTypes.FlowFinalNode_3006);
- types.add(UMLElementTypes.OpaqueAction_3007);
- types.add(UMLElementTypes.ValuePin_3015);
- types.add(UMLElementTypes.ActionInputPin_3016);
- types.add(UMLElementTypes.InputPin_3013);
- types.add(UMLElementTypes.OutputPin_3014);
- types.add(UMLElementTypes.CallBehaviorAction_3008);
- types.add(UMLElementTypes.ValuePin_3017);
- types.add(UMLElementTypes.ActionInputPin_3018);
- types.add(UMLElementTypes.InputPin_3019);
- types.add(UMLElementTypes.OutputPin_3020);
- types.add(UMLElementTypes.CallOperationAction_3010);
- types.add(UMLElementTypes.ActionInputPin_3021);
- types.add(UMLElementTypes.ValuePin_3022);
- types.add(UMLElementTypes.InputPin_3023);
- types.add(UMLElementTypes.OutputPin_3024);
- types.add(UMLElementTypes.ValuePin_3025);
- types.add(UMLElementTypes.ActionInputPin_3026);
- types.add(UMLElementTypes.InputPin_3027);
- types.add(UMLElementTypes.DecisionNode_3038);
- types.add(UMLElementTypes.MergeNode_3039);
- types.add(UMLElementTypes.ForkNode_3040);
- types.add(UMLElementTypes.JoinNode_3041);
- types.add(UMLElementTypes.DataStoreNode_3078);
- types.add(UMLElementTypes.SendObjectAction_3042);
- types.add(UMLElementTypes.ValuePin_3046);
- types.add(UMLElementTypes.ActionInputPin_3047);
- types.add(UMLElementTypes.InputPin_3048);
- types.add(UMLElementTypes.ValuePin_3049);
- types.add(UMLElementTypes.ActionInputPin_3050);
- types.add(UMLElementTypes.InputPin_3051);
- types.add(UMLElementTypes.SendSignalAction_3052);
- types.add(UMLElementTypes.ActionInputPin_3053);
- types.add(UMLElementTypes.ValuePin_3054);
- types.add(UMLElementTypes.InputPin_3055);
- types.add(UMLElementTypes.ValuePin_3060);
- types.add(UMLElementTypes.ActionInputPin_3061);
- types.add(UMLElementTypes.InputPin_3062);
- types.add(UMLElementTypes.ActivityParameterNode_3059);
- types.add(UMLElementTypes.AcceptEventAction_3063);
- types.add(UMLElementTypes.OutputPin_3064);
- types.add(UMLElementTypes.ValueSpecificationAction_3076);
- types.add(UMLElementTypes.OutputPin_3077);
- types.add(UMLElementTypes.ConditionalNode_3069);
- types.add(UMLElementTypes.ExpansionRegion_3070);
- types.add(UMLElementTypes.ExpansionNode_3074);
- types.add(UMLElementTypes.ExpansionNode_3075);
- types.add(UMLElementTypes.LoopNode_3071);
- types.add(UMLElementTypes.OutputPin_3109);
- types.add(UMLElementTypes.OutputPin_3110);
- types.add(UMLElementTypes.OutputPin_3111);
- types.add(UMLElementTypes.SequenceNode_3073);
- types.add(UMLElementTypes.StructuredActivityNode_3065);
- types.add(UMLElementTypes.InputPin_3105);
- types.add(UMLElementTypes.ReadSelfAction_3081);
- types.add(UMLElementTypes.OutputPin_3084);
- types.add(UMLElementTypes.CreateObjectAction_3086);
- types.add(UMLElementTypes.OutputPin_3087);
- types.add(UMLElementTypes.ReadStructuralFeatureAction_3088);
- types.add(UMLElementTypes.InputPin_3089);
- types.add(UMLElementTypes.OutputPin_3090);
- types.add(UMLElementTypes.AddStructuralFeatureValueAction_3091);
- types.add(UMLElementTypes.InputPin_3092);
- types.add(UMLElementTypes.InputPin_3093);
- types.add(UMLElementTypes.OutputPin_3094);
- types.add(UMLElementTypes.DestroyObjectAction_3095);
- types.add(UMLElementTypes.InputPin_3096);
- types.add(UMLElementTypes.ReadVariableAction_3097);
- types.add(UMLElementTypes.OutputPin_3098);
- types.add(UMLElementTypes.AddVariableValueAction_3099);
- types.add(UMLElementTypes.InputPin_3100);
- types.add(UMLElementTypes.InputPin_3101);
- types.add(UMLElementTypes.BroadcastSignalAction_3102);
- types.add(UMLElementTypes.InputPin_3103);
- types.add(UMLElementTypes.CentralBufferNode_3104);
- } else if (relationshipType == UMLElementTypes.ControlFlow_4004) {
- types.add(UMLElementTypes.InitialNode_3004);
- types.add(UMLElementTypes.ActivityFinalNode_3005);
- types.add(UMLElementTypes.FlowFinalNode_3006);
- types.add(UMLElementTypes.OpaqueAction_3007);
- types.add(UMLElementTypes.ValuePin_3015);
- types.add(UMLElementTypes.ActionInputPin_3016);
- types.add(UMLElementTypes.InputPin_3013);
- types.add(UMLElementTypes.OutputPin_3014);
- types.add(UMLElementTypes.CallBehaviorAction_3008);
- types.add(UMLElementTypes.ValuePin_3017);
- types.add(UMLElementTypes.ActionInputPin_3018);
- types.add(UMLElementTypes.InputPin_3019);
- types.add(UMLElementTypes.OutputPin_3020);
- types.add(UMLElementTypes.CallOperationAction_3010);
- types.add(UMLElementTypes.ActionInputPin_3021);
- types.add(UMLElementTypes.ValuePin_3022);
- types.add(UMLElementTypes.InputPin_3023);
- types.add(UMLElementTypes.OutputPin_3024);
- types.add(UMLElementTypes.ValuePin_3025);
- types.add(UMLElementTypes.ActionInputPin_3026);
- types.add(UMLElementTypes.InputPin_3027);
- types.add(UMLElementTypes.DecisionNode_3038);
- types.add(UMLElementTypes.MergeNode_3039);
- types.add(UMLElementTypes.ForkNode_3040);
- types.add(UMLElementTypes.JoinNode_3041);
- types.add(UMLElementTypes.DataStoreNode_3078);
- types.add(UMLElementTypes.SendObjectAction_3042);
- types.add(UMLElementTypes.ValuePin_3046);
- types.add(UMLElementTypes.ActionInputPin_3047);
- types.add(UMLElementTypes.InputPin_3048);
- types.add(UMLElementTypes.ValuePin_3049);
- types.add(UMLElementTypes.ActionInputPin_3050);
- types.add(UMLElementTypes.InputPin_3051);
- types.add(UMLElementTypes.SendSignalAction_3052);
- types.add(UMLElementTypes.ActionInputPin_3053);
- types.add(UMLElementTypes.ValuePin_3054);
- types.add(UMLElementTypes.InputPin_3055);
- types.add(UMLElementTypes.ValuePin_3060);
- types.add(UMLElementTypes.ActionInputPin_3061);
- types.add(UMLElementTypes.InputPin_3062);
- types.add(UMLElementTypes.ActivityParameterNode_3059);
- types.add(UMLElementTypes.AcceptEventAction_3063);
- types.add(UMLElementTypes.OutputPin_3064);
- types.add(UMLElementTypes.ValueSpecificationAction_3076);
- types.add(UMLElementTypes.OutputPin_3077);
- types.add(UMLElementTypes.ConditionalNode_3069);
- types.add(UMLElementTypes.ExpansionRegion_3070);
- types.add(UMLElementTypes.ExpansionNode_3074);
- types.add(UMLElementTypes.ExpansionNode_3075);
- types.add(UMLElementTypes.LoopNode_3071);
- types.add(UMLElementTypes.OutputPin_3109);
- types.add(UMLElementTypes.OutputPin_3110);
- types.add(UMLElementTypes.OutputPin_3111);
- types.add(UMLElementTypes.SequenceNode_3073);
- types.add(UMLElementTypes.StructuredActivityNode_3065);
- types.add(UMLElementTypes.InputPin_3105);
- types.add(UMLElementTypes.ReadSelfAction_3081);
- types.add(UMLElementTypes.OutputPin_3084);
- types.add(UMLElementTypes.CreateObjectAction_3086);
- types.add(UMLElementTypes.OutputPin_3087);
- types.add(UMLElementTypes.ReadStructuralFeatureAction_3088);
- types.add(UMLElementTypes.InputPin_3089);
- types.add(UMLElementTypes.OutputPin_3090);
- types.add(UMLElementTypes.AddStructuralFeatureValueAction_3091);
- types.add(UMLElementTypes.InputPin_3092);
- types.add(UMLElementTypes.InputPin_3093);
- types.add(UMLElementTypes.OutputPin_3094);
- types.add(UMLElementTypes.DestroyObjectAction_3095);
- types.add(UMLElementTypes.InputPin_3096);
- types.add(UMLElementTypes.ReadVariableAction_3097);
- types.add(UMLElementTypes.OutputPin_3098);
- types.add(UMLElementTypes.AddVariableValueAction_3099);
- types.add(UMLElementTypes.InputPin_3100);
- types.add(UMLElementTypes.InputPin_3101);
- types.add(UMLElementTypes.BroadcastSignalAction_3102);
- types.add(UMLElementTypes.InputPin_3103);
- types.add(UMLElementTypes.CentralBufferNode_3104);
- } else if (relationshipType == UMLElementTypes.CommentAnnotatedElement_4006) {
- types.add(UMLElementTypes.Comment_3080);
- } else if (relationshipType == UMLElementTypes.ConstraintConstrainedElement_4007) {
- types.add(UMLElementTypes.DurationConstraint_3034);
- types.add(UMLElementTypes.DurationConstraint_3035);
- types.add(UMLElementTypes.TimeConstraint_3036);
- types.add(UMLElementTypes.TimeConstraint_3037);
- types.add(UMLElementTypes.IntervalConstraint_3032);
- types.add(UMLElementTypes.IntervalConstraint_3033);
- types.add(UMLElementTypes.Constraint_3011);
- types.add(UMLElementTypes.Constraint_3012);
- types.add(UMLElementTypes.Constraint_3112);
- }
- 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 = PreferencesConstantsHelper.getElementConstant("CallBehaviorAction", PreferencesConstantsHelper.COLOR_LINE);
- } else if (feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
- prefColor = PreferencesConstantsHelper.getElementConstant("CallBehaviorAction", PreferencesConstantsHelper.COLOR_FONT);
- } else if (feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
- prefColor = PreferencesConstantsHelper.getElementConstant("CallBehaviorAction", PreferencesConstantsHelper.COLOR_FILL);
- }
- result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor(preferenceStore, prefColor));
- } else if (feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
- String prefGradient = PreferencesConstantsHelper.getElementConstant("CallBehaviorAction", PreferencesConstantsHelper.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;
- }
-}
+/*****************************************************************************
+ * Copyright (c) 2009 Atos Origin.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Atos Origin - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.diagram.activity.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.PositionConstants;
+import org.eclipse.draw2d.StackLayout;
+import org.eclipse.draw2d.geometry.Dimension;
+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.RequestConstants;
+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.DragDropEditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
+import org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator;
+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.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.infra.gmfdiag.common.figure.node.IPapyrusNodeFigure;
+import org.eclipse.papyrus.infra.gmfdiag.common.preferences.PreferencesConstantsHelper;
+import org.eclipse.papyrus.infra.gmfdiag.preferences.utils.GradientPreferenceConverter;
+import org.eclipse.papyrus.uml.diagram.activity.edit.policies.ActivityDiagramChangeStereotypedShapeEditpolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.policies.CallBehaviorActionCanonicalEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.policies.CallBehaviorActionItemSemanticEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.policies.CreateActionLocalConditionEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.policies.CustomDiagramDragDropEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.policies.DeleteActionViewEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.edit.policies.OpenDiagramEditPolicy;
+import org.eclipse.papyrus.uml.diagram.activity.figures.CallBehaviorActionFigure;
+import org.eclipse.papyrus.uml.diagram.activity.locator.PinPositionLocator;
+import org.eclipse.papyrus.uml.diagram.activity.part.UMLDiagramEditorPlugin;
+import org.eclipse.papyrus.uml.diagram.activity.part.UMLVisualIDRegistry;
+import org.eclipse.papyrus.uml.diagram.activity.providers.UMLElementTypes;
+import org.eclipse.papyrus.uml.diagram.common.editparts.RoundedCompartmentEditPart;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.AppliedStereotypeNodeLabelDisplayEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.BorderItemResizableEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.ChangeStereotypedShapeEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.editpolicies.PapyrusCreationEditPolicy;
+import org.eclipse.papyrus.uml.diagram.common.helper.PreferenceInitializerForElementHelper;
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.uml2.uml.Activity;
+import org.eclipse.uml2.uml.CallBehaviorAction;
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * @generated
+ */
+public class CallBehaviorActionEditPart extends RoundedCompartmentEditPart {
+
+ /**
+ * @generated
+ */
+ public static final int VISUAL_ID = 3008;
+
+ /**
+ * @generated
+ */
+ protected IFigure contentPane;
+
+ /**
+ * @generated
+ */
+ protected IFigure primaryShape;
+
+ /**
+ * @generated
+ */
+ public CallBehaviorActionEditPart(View view) {
+ super(view);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void createDefaultEditPolicies() {
+ installEditPolicy(EditPolicyRoles.CREATION_ROLE, new PapyrusCreationEditPolicy());
+ super.createDefaultEditPolicies();
+ installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new CallBehaviorActionItemSemanticEditPolicy());
+ installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
+ // in Papyrus diagrams are not strongly synchronised
+ // installEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CANONICAL_ROLE, new org.eclipse.papyrus.uml.diagram.activity.edit.policies.CallBehaviorActionCanonicalEditPolicy());
+ installEditPolicy(EditPolicy.LAYOUT_ROLE, createLayoutEditPolicy());
+ installEditPolicy(EditPolicyRoles.OPEN_ROLE, new OpenDiagramEditPolicy());
+ installEditPolicy(RequestConstants.REQ_CREATE, new CreateActionLocalConditionEditPolicy());
+ installEditPolicy(RequestConstants.REQ_DELETE, new DeleteActionViewEditPolicy());
+ installEditPolicy(EditPolicyRoles.CANONICAL_ROLE, new CallBehaviorActionCanonicalEditPolicy());
+ installEditPolicy(AppliedStereotypeLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeNodeLabelDisplayEditPolicy());
+ installEditPolicy(ChangeStereotypedShapeEditPolicy.CHANGE_SHAPE_POLICY, new ActivityDiagramChangeStereotypedShapeEditpolicy());
+ 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
+ **/
+ @Override
+ 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);
+ // Add/Remove the RakeFigure when an Activity is selected as behavior or deselected
+ if (resolveSemanticElement() != null) {
+ if (resolveSemanticElement() instanceof CallBehaviorAction && resolveSemanticElement().equals(event.getNotifier()) && event.getFeature().equals(UMLPackage.eINSTANCE.getCallBehaviorAction_Behavior())) {
+ CallBehaviorAction action = (CallBehaviorAction) resolveSemanticElement();
+ if (action.getBehavior() instanceof Activity) {
+ getPrimaryShape().displayRake(true);
+ } else {
+ getPrimaryShape().displayRake(false);
+ }
+ ;
+ refreshVisuals();
+ }
+ }
+ }
+
+ /**
+ * @generated
+ */
+ // not generated but change include on gmfgen, can be override at the generation
+ @Override
+ protected void addBorderItem(IFigure borderItemContainer, IBorderItemEditPart borderItemEditPart) {
+ if (borderItemEditPart instanceof CallBehaviorActionFloatingNameEditPart) {
+ BorderItemLocator locator = new BorderItemLocator(getMainFigure(), PositionConstants.SOUTH);
+ locator.setBorderItemOffset(new Dimension(-20, -20));
+ borderItemContainer.add(borderItemEditPart.getFigure(), locator);
+ } else {
+ super.addBorderItem(borderItemContainer, borderItemEditPart);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ protected LayoutEditPolicy createLayoutEditPolicy() {
+ org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy lep = new org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy() {
+
+ @Override
+ protected EditPolicy createChildEditPolicy(EditPart child) {
+ View childView = (View) child.getModel();
+ switch (UMLVisualIDRegistry.getVisualID(childView)) {
+ case CallBehaviorActionFloatingNameEditPart.VISUAL_ID:
+ return new BorderItemSelectionEditPolicy() {
+
+ @Override
+ protected List<?> createSelectionHandles() {
+ MoveHandle mh = new MoveHandle((GraphicalEditPart) getHost());
+ mh.setBorder(null);
+ return Collections.singletonList(mh);
+ }
+ };
+ case ValuePinInCallBeActEditPart.VISUAL_ID:
+ case ActionInputPinInCallBeActEditPart.VISUAL_ID:
+ case InputPinInCallBeActEditPart.VISUAL_ID:
+ case OutputPinInCallBeActEditPart.VISUAL_ID:
+ return new BorderItemResizableEditPolicy();
+ }
+ EditPolicy result = child.getEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
+ if (result == null) {
+ result = new NonResizableEditPolicy();
+ }
+ return result;
+ }
+
+ @Override
+ protected Command getMoveChildrenCommand(Request request) {
+ return null;
+ }
+
+ @Override
+ protected Command getCreateCommand(CreateRequest request) {
+ return null;
+ }
+ };
+ return lep;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure createNodeShape() {
+ return primaryShape = new CallBehaviorActionFigure();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public CallBehaviorActionFigure getPrimaryShape() {
+ return (CallBehaviorActionFigure) primaryShape;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean addFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof CallBehaviorActionNameEditPart) {
+ ((CallBehaviorActionNameEditPart) childEditPart).setLabel(getPrimaryShape().getNameLabel());
+ return true;
+ }
+ // Papyrus Gencode :Affixed Pin locator for Actions
+ if (childEditPart instanceof ValuePinInCallBeActEditPart) {
+ IBorderItemLocator locator = new PinPositionLocator(getMainFigure(), PositionConstants.WEST);
+ getBorderedFigure().getBorderItemContainer().add(((ValuePinInCallBeActEditPart) childEditPart).getFigure(), locator);
+ return true;
+ }
+ // Papyrus Gencode :Affixed Pin locator for Actions
+ if (childEditPart instanceof ActionInputPinInCallBeActEditPart) {
+ IBorderItemLocator locator = new PinPositionLocator(getMainFigure(), PositionConstants.WEST);
+ getBorderedFigure().getBorderItemContainer().add(((ActionInputPinInCallBeActEditPart) childEditPart).getFigure(), locator);
+ return true;
+ }
+ // Papyrus Gencode :Affixed Pin locator for Actions
+ if (childEditPart instanceof InputPinInCallBeActEditPart) {
+ IBorderItemLocator locator = new PinPositionLocator(getMainFigure(), PositionConstants.WEST);
+ getBorderedFigure().getBorderItemContainer().add(((InputPinInCallBeActEditPart) childEditPart).getFigure(), locator);
+ return true;
+ }
+ // Papyrus Gencode :Affixed Pin locator for Actions
+ if (childEditPart instanceof OutputPinInCallBeActEditPart) {
+ IBorderItemLocator locator = new PinPositionLocator(getMainFigure(), PositionConstants.EAST);
+ getBorderedFigure().getBorderItemContainer().add(((OutputPinInCallBeActEditPart) childEditPart).getFigure(), locator);
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ protected boolean removeFixedChild(EditPart childEditPart) {
+ if (childEditPart instanceof CallBehaviorActionNameEditPart) {
+ return true;
+ }
+ if (childEditPart instanceof ValuePinInCallBeActEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ValuePinInCallBeActEditPart) childEditPart).getFigure());
+ return true;
+ }
+ if (childEditPart instanceof ActionInputPinInCallBeActEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((ActionInputPinInCallBeActEditPart) childEditPart).getFigure());
+ return true;
+ }
+ if (childEditPart instanceof InputPinInCallBeActEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((InputPinInCallBeActEditPart) childEditPart).getFigure());
+ return true;
+ }
+ if (childEditPart instanceof OutputPinInCallBeActEditPart) {
+ getBorderedFigure().getBorderItemContainer().remove(((OutputPinInCallBeActEditPart) childEditPart).getFigure());
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void addChildVisual(EditPart childEditPart, int index) {
+ if (addFixedChild(childEditPart)) {
+ return;
+ }
+ super.addChildVisual(childEditPart, -1);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void removeChildVisual(EditPart childEditPart) {
+ if (removeFixedChild(childEditPart)) {
+ return;
+ }
+ super.removeChildVisual(childEditPart);
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+ return getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected NodeFigure createNodePlate() {
+ String prefElementId = "CallBehaviorAction";
+ IPreferenceStore store = UMLDiagramEditorPlugin.getInstance().getPreferenceStore();
+ String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferencesConstantsHelper.WIDTH);
+ String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferencesConstantsHelper.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
+ */
+ @Override
+ protected NodeFigure createMainFigure() {
+ NodeFigure figure = createNodePlate();
+ figure.setLayoutManager(new StackLayout());
+ IFigure shape = createNodeShape();
+ figure.add(shape);
+ contentPane = setupContentPane(shape);
+ return figure;
+ }
+
+ /**
+ * Refresh the children parts, including the rake if necessary
+ *
+ * @see org.eclipse.gef.editparts.AbstractEditPart#refreshChildren()
+ * @generated NOT
+ */
+ @Override
+ protected void refreshChildren() {
+ super.refreshChildren();
+ // add the rake if behavior is an activity
+ if (resolveSemanticElement() instanceof CallBehaviorAction) {
+ CallBehaviorAction action = (CallBehaviorAction) resolveSemanticElement();
+ if (action.getBehavior() instanceof Activity) {
+ getPrimaryShape().displayRake(true);
+ } else {
+ getPrimaryShape().displayRake(false);
+ }
+ }
+ }
+
+ /**
+ * 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
+ */
+ @Override
+ 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
+ */
+ @Override
+ public IFigure getContentPane() {
+ if (contentPane != null) {
+ return contentPane;
+ }
+ return super.getContentPane();
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setForegroundColor(Color color) {
+ if (primaryShape != null) {
+ primaryShape.setForegroundColor(color);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineWidth(int width) {
+ if (primaryShape instanceof IPapyrusNodeFigure) { // Manually replaced, waiting for next generation
+ ((IPapyrusNodeFigure) primaryShape).setLineWidth(width);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ protected void setLineType(int style) {
+ if (primaryShape instanceof IPapyrusNodeFigure) { // Manually replaced, waiting for next generation
+ ((IPapyrusNodeFigure) primaryShape).setLineStyle(style);
+ }
+ }
+
+ /**
+ * @generated
+ */
+ @Override
+ public EditPart getPrimaryChildEditPart() {
+ return getChildBySemanticHint(UMLVisualIDRegistry.getType(CallBehaviorActionNameEditPart.VISUAL_ID));
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSource() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(5);
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ types.add(UMLElementTypes.ControlFlow_4004);
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnSourceAndTarget(IGraphicalEditPart targetEditPart) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if (targetEditPart instanceof DurationConstraintAsLocalPrecondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ }
+ if (targetEditPart instanceof DurationConstraintAsLocalPostcondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ }
+ if (targetEditPart instanceof TimeConstraintAsLocalPrecondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ }
+ if (targetEditPart instanceof TimeConstraintAsLocalPostcondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ }
+ if (targetEditPart instanceof IntervalConstraintAsLocalPrecondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ }
+ if (targetEditPart instanceof IntervalConstraintAsLocalPostcondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ }
+ if (targetEditPart instanceof ConstraintAsLocalPrecondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ }
+ if (targetEditPart instanceof ConstraintAsLocalPostcondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ }
+ if (targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ActionLocalPrecondition_4001);
+ }
+ if (targetEditPart instanceof DurationConstraintAsLocalPrecondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ }
+ if (targetEditPart instanceof DurationConstraintAsLocalPostcondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ }
+ if (targetEditPart instanceof TimeConstraintAsLocalPrecondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ }
+ if (targetEditPart instanceof TimeConstraintAsLocalPostcondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ }
+ if (targetEditPart instanceof IntervalConstraintAsLocalPrecondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ }
+ if (targetEditPart instanceof IntervalConstraintAsLocalPostcondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ }
+ if (targetEditPart instanceof ConstraintAsLocalPrecondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ }
+ if (targetEditPart instanceof ConstraintAsLocalPostcondEditPart) {
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ }
+ if (targetEditPart instanceof ConstraintEditPartCN) {
+ types.add(UMLElementTypes.ActionLocalPostcondition_4002);
+ }
+ if (targetEditPart instanceof InitialNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActivityFinalNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof FlowFinalNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OpaqueActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ValuePinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActionInputPinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof org.eclipse.papyrus.uml.diagram.activity.edit.parts.CallBehaviorActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ValuePinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActionInputPinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof CallOperationActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActionInputPinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ValuePinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ValuePinInCallOpActAsTargetEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActionInputPinInCallOpActAsTargetEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInCallOpActAsTargetEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof DecisionNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof MergeNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ForkNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof JoinNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof DataStoreNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof SendObjectActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ValuePinInSendObjActAsReqEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendObjActAsReqEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInSendObjActAsReqEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ValuePinInSendObjActAsTargetEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendObjActAsTargetEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInSendObjActAsTargetEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof SendSignalActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendSigActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ValuePinInSendSigActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInSendSigActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ValuePinInSendSigActAsTargetEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendSigActAsTargetEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInSendSigActAsTargetEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ActivityParameterNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof AcceptEventActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInAcceptEventActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ValueSpecificationActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInValSpecActEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ConditionalNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ExpansionRegionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ExpansionNodeAsInEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ExpansionNodeAsOutEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof LoopNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInLoopNodeAsBodyOutputEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInLoopNodeAsLoopVariableEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInLoopNodeAsResultEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof SequenceNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof StructuredActivityNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInLoopNodeAsVariableEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ReadSelfActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ReadSelfActionOutputPinEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof CreateObjectActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInCreateObjectActionAsResultEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ReadStructuralFeatureActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInReadStructuralFeatureAsObjectEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInReadStructuralFeatureAsResultEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof AddStructuralFeatureValueActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsObjectEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsValueEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInAddStructuralFeatureValueActionAsResultEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof DestroyObjectActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInDestroyObjectActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof ReadVariableActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof OutputPinInReadVariableActionAsResultEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof AddVariableValueActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInAddVariableValueActionAsInsertAtEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInAddVariableValueActionAsValueEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof BroadcastSignalActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InputPinInBroadcastSignalActionEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof CentralBufferNodeEditPart) {
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ }
+ if (targetEditPart instanceof InitialNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActivityFinalNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof FlowFinalNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OpaqueActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValuePinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActionInputPinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof org.eclipse.papyrus.uml.diagram.activity.edit.parts.CallBehaviorActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValuePinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActionInputPinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof CallOperationActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActionInputPinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValuePinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValuePinInCallOpActAsTargetEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActionInputPinInCallOpActAsTargetEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInCallOpActAsTargetEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof DecisionNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof MergeNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ForkNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof JoinNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof DataStoreNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof SendObjectActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValuePinInSendObjActAsReqEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendObjActAsReqEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInSendObjActAsReqEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValuePinInSendObjActAsTargetEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendObjActAsTargetEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInSendObjActAsTargetEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof SendSignalActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendSigActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValuePinInSendSigActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInSendSigActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValuePinInSendSigActAsTargetEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendSigActAsTargetEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInSendSigActAsTargetEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ActivityParameterNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof AcceptEventActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInAcceptEventActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValueSpecificationActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInValSpecActEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ConditionalNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ExpansionRegionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ExpansionNodeAsInEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ExpansionNodeAsOutEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof LoopNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInLoopNodeAsBodyOutputEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInLoopNodeAsLoopVariableEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInLoopNodeAsResultEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof SequenceNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof StructuredActivityNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInLoopNodeAsVariableEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ReadSelfActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ReadSelfActionOutputPinEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof CreateObjectActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInCreateObjectActionAsResultEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ReadStructuralFeatureActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInReadStructuralFeatureAsObjectEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInReadStructuralFeatureAsResultEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof AddStructuralFeatureValueActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsObjectEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsValueEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInAddStructuralFeatureValueActionAsResultEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof DestroyObjectActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInDestroyObjectActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ReadVariableActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof OutputPinInReadVariableActionAsResultEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof AddVariableValueActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInAddVariableValueActionAsInsertAtEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInAddVariableValueActionAsValueEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof BroadcastSignalActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof InputPinInBroadcastSignalActionEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof CentralBufferNodeEditPart) {
+ types.add(UMLElementTypes.ControlFlow_4004);
+ }
+ if (targetEditPart instanceof ValuePinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ActionInputPinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInOpaqueActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ValuePinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ActionInputPinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInCallBeActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ActionInputPinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ValuePinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInCallOpActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ValuePinInCallOpActAsTargetEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ActionInputPinInCallOpActAsTargetEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInCallOpActAsTargetEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof DataStoreNodeEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ValuePinInSendObjActAsReqEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendObjActAsReqEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInSendObjActAsReqEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ValuePinInSendObjActAsTargetEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendObjActAsTargetEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInSendObjActAsTargetEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendSigActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ValuePinInSendSigActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInSendSigActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ValuePinInSendSigActAsTargetEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ActionInputPinInSendSigActAsTargetEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInSendSigActAsTargetEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ActivityParameterNodeEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInAcceptEventActionEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInValSpecActEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ExpansionNodeAsInEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ExpansionNodeAsOutEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInLoopNodeAsBodyOutputEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInLoopNodeAsLoopVariableEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInLoopNodeAsResultEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInLoopNodeAsVariableEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof ReadSelfActionOutputPinEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInCreateObjectActionAsResultEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInReadStructuralFeatureAsObjectEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInReadStructuralFeatureAsResultEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsObjectEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInAddStructuralFeatureValueActionAsValueEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInAddStructuralFeatureValueActionAsResultEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInDestroyObjectActionEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof OutputPinInReadVariableActionAsResultEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInAddVariableValueActionAsInsertAtEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInAddVariableValueActionAsValueEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof InputPinInBroadcastSignalActionEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ if (targetEditPart instanceof CentralBufferNodeEditPart) {
+ types.add(UMLElementTypes.ExceptionHandler_4005);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForTarget(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if (relationshipType == UMLElementTypes.ActionLocalPrecondition_4001) {
+ types.add(UMLElementTypes.DurationConstraint_3034);
+ types.add(UMLElementTypes.DurationConstraint_3035);
+ types.add(UMLElementTypes.TimeConstraint_3036);
+ types.add(UMLElementTypes.TimeConstraint_3037);
+ types.add(UMLElementTypes.IntervalConstraint_3032);
+ types.add(UMLElementTypes.IntervalConstraint_3033);
+ types.add(UMLElementTypes.Constraint_3011);
+ types.add(UMLElementTypes.Constraint_3012);
+ types.add(UMLElementTypes.Constraint_3112);
+ } else if (relationshipType == UMLElementTypes.ActionLocalPostcondition_4002) {
+ types.add(UMLElementTypes.DurationConstraint_3034);
+ types.add(UMLElementTypes.DurationConstraint_3035);
+ types.add(UMLElementTypes.TimeConstraint_3036);
+ types.add(UMLElementTypes.TimeConstraint_3037);
+ types.add(UMLElementTypes.IntervalConstraint_3032);
+ types.add(UMLElementTypes.IntervalConstraint_3033);
+ types.add(UMLElementTypes.Constraint_3011);
+ types.add(UMLElementTypes.Constraint_3012);
+ types.add(UMLElementTypes.Constraint_3112);
+ } else if (relationshipType == UMLElementTypes.ObjectFlow_4003) {
+ types.add(UMLElementTypes.InitialNode_3004);
+ types.add(UMLElementTypes.ActivityFinalNode_3005);
+ types.add(UMLElementTypes.FlowFinalNode_3006);
+ types.add(UMLElementTypes.OpaqueAction_3007);
+ types.add(UMLElementTypes.ValuePin_3015);
+ types.add(UMLElementTypes.ActionInputPin_3016);
+ types.add(UMLElementTypes.InputPin_3013);
+ types.add(UMLElementTypes.OutputPin_3014);
+ types.add(UMLElementTypes.CallBehaviorAction_3008);
+ types.add(UMLElementTypes.ValuePin_3017);
+ types.add(UMLElementTypes.ActionInputPin_3018);
+ types.add(UMLElementTypes.InputPin_3019);
+ types.add(UMLElementTypes.OutputPin_3020);
+ types.add(UMLElementTypes.CallOperationAction_3010);
+ types.add(UMLElementTypes.ActionInputPin_3021);
+ types.add(UMLElementTypes.ValuePin_3022);
+ types.add(UMLElementTypes.InputPin_3023);
+ types.add(UMLElementTypes.OutputPin_3024);
+ types.add(UMLElementTypes.ValuePin_3025);
+ types.add(UMLElementTypes.ActionInputPin_3026);
+ types.add(UMLElementTypes.InputPin_3027);
+ types.add(UMLElementTypes.DecisionNode_3038);
+ types.add(UMLElementTypes.MergeNode_3039);
+ types.add(UMLElementTypes.ForkNode_3040);
+ types.add(UMLElementTypes.JoinNode_3041);
+ types.add(UMLElementTypes.DataStoreNode_3078);
+ types.add(UMLElementTypes.SendObjectAction_3042);
+ types.add(UMLElementTypes.ValuePin_3046);
+ types.add(UMLElementTypes.ActionInputPin_3047);
+ types.add(UMLElementTypes.InputPin_3048);
+ types.add(UMLElementTypes.ValuePin_3049);
+ types.add(UMLElementTypes.ActionInputPin_3050);
+ types.add(UMLElementTypes.InputPin_3051);
+ types.add(UMLElementTypes.SendSignalAction_3052);
+ types.add(UMLElementTypes.ActionInputPin_3053);
+ types.add(UMLElementTypes.ValuePin_3054);
+ types.add(UMLElementTypes.InputPin_3055);
+ types.add(UMLElementTypes.ValuePin_3060);
+ types.add(UMLElementTypes.ActionInputPin_3061);
+ types.add(UMLElementTypes.InputPin_3062);
+ types.add(UMLElementTypes.ActivityParameterNode_3059);
+ types.add(UMLElementTypes.AcceptEventAction_3063);
+ types.add(UMLElementTypes.OutputPin_3064);
+ types.add(UMLElementTypes.ValueSpecificationAction_3076);
+ types.add(UMLElementTypes.OutputPin_3077);
+ types.add(UMLElementTypes.ConditionalNode_3069);
+ types.add(UMLElementTypes.ExpansionRegion_3070);
+ types.add(UMLElementTypes.ExpansionNode_3074);
+ types.add(UMLElementTypes.ExpansionNode_3075);
+ types.add(UMLElementTypes.LoopNode_3071);
+ types.add(UMLElementTypes.OutputPin_3109);
+ types.add(UMLElementTypes.OutputPin_3110);
+ types.add(UMLElementTypes.OutputPin_3111);
+ types.add(UMLElementTypes.SequenceNode_3073);
+ types.add(UMLElementTypes.StructuredActivityNode_3065);
+ types.add(UMLElementTypes.InputPin_3105);
+ types.add(UMLElementTypes.ReadSelfAction_3081);
+ types.add(UMLElementTypes.OutputPin_3084);
+ types.add(UMLElementTypes.CreateObjectAction_3086);
+ types.add(UMLElementTypes.OutputPin_3087);
+ types.add(UMLElementTypes.ReadStructuralFeatureAction_3088);
+ types.add(UMLElementTypes.InputPin_3089);
+ types.add(UMLElementTypes.OutputPin_3090);
+ types.add(UMLElementTypes.AddStructuralFeatureValueAction_3091);
+ types.add(UMLElementTypes.InputPin_3092);
+ types.add(UMLElementTypes.InputPin_3093);
+ types.add(UMLElementTypes.OutputPin_3094);
+ types.add(UMLElementTypes.DestroyObjectAction_3095);
+ types.add(UMLElementTypes.InputPin_3096);
+ types.add(UMLElementTypes.ReadVariableAction_3097);
+ types.add(UMLElementTypes.OutputPin_3098);
+ types.add(UMLElementTypes.AddVariableValueAction_3099);
+ types.add(UMLElementTypes.InputPin_3100);
+ types.add(UMLElementTypes.InputPin_3101);
+ types.add(UMLElementTypes.BroadcastSignalAction_3102);
+ types.add(UMLElementTypes.InputPin_3103);
+ types.add(UMLElementTypes.CentralBufferNode_3104);
+ } else if (relationshipType == UMLElementTypes.ControlFlow_4004) {
+ types.add(UMLElementTypes.InitialNode_3004);
+ types.add(UMLElementTypes.ActivityFinalNode_3005);
+ types.add(UMLElementTypes.FlowFinalNode_3006);
+ types.add(UMLElementTypes.OpaqueAction_3007);
+ types.add(UMLElementTypes.ValuePin_3015);
+ types.add(UMLElementTypes.ActionInputPin_3016);
+ types.add(UMLElementTypes.InputPin_3013);
+ types.add(UMLElementTypes.OutputPin_3014);
+ types.add(UMLElementTypes.CallBehaviorAction_3008);
+ types.add(UMLElementTypes.ValuePin_3017);
+ types.add(UMLElementTypes.ActionInputPin_3018);
+ types.add(UMLElementTypes.InputPin_3019);
+ types.add(UMLElementTypes.OutputPin_3020);
+ types.add(UMLElementTypes.CallOperationAction_3010);
+ types.add(UMLElementTypes.ActionInputPin_3021);
+ types.add(UMLElementTypes.ValuePin_3022);
+ types.add(UMLElementTypes.InputPin_3023);
+ types.add(UMLElementTypes.OutputPin_3024);
+ types.add(UMLElementTypes.ValuePin_3025);
+ types.add(UMLElementTypes.ActionInputPin_3026);
+ types.add(UMLElementTypes.InputPin_3027);
+ types.add(UMLElementTypes.DecisionNode_3038);
+ types.add(UMLElementTypes.MergeNode_3039);
+ types.add(UMLElementTypes.ForkNode_3040);
+ types.add(UMLElementTypes.JoinNode_3041);
+ types.add(UMLElementTypes.DataStoreNode_3078);
+ types.add(UMLElementTypes.SendObjectAction_3042);
+ types.add(UMLElementTypes.ValuePin_3046);
+ types.add(UMLElementTypes.ActionInputPin_3047);
+ types.add(UMLElementTypes.InputPin_3048);
+ types.add(UMLElementTypes.ValuePin_3049);
+ types.add(UMLElementTypes.ActionInputPin_3050);
+ types.add(UMLElementTypes.InputPin_3051);
+ types.add(UMLElementTypes.SendSignalAction_3052);
+ types.add(UMLElementTypes.ActionInputPin_3053);
+ types.add(UMLElementTypes.ValuePin_3054);
+ types.add(UMLElementTypes.InputPin_3055);
+ types.add(UMLElementTypes.ValuePin_3060);
+ types.add(UMLElementTypes.ActionInputPin_3061);
+ types.add(UMLElementTypes.InputPin_3062);
+ types.add(UMLElementTypes.ActivityParameterNode_3059);
+ types.add(UMLElementTypes.AcceptEventAction_3063);
+ types.add(UMLElementTypes.OutputPin_3064);
+ types.add(UMLElementTypes.ValueSpecificationAction_3076);
+ types.add(UMLElementTypes.OutputPin_3077);
+ types.add(UMLElementTypes.ConditionalNode_3069);
+ types.add(UMLElementTypes.ExpansionRegion_3070);
+ types.add(UMLElementTypes.ExpansionNode_3074);
+ types.add(UMLElementTypes.ExpansionNode_3075);
+ types.add(UMLElementTypes.LoopNode_3071);
+ types.add(UMLElementTypes.OutputPin_3109);
+ types.add(UMLElementTypes.OutputPin_3110);
+ types.add(UMLElementTypes.OutputPin_3111);
+ types.add(UMLElementTypes.SequenceNode_3073);
+ types.add(UMLElementTypes.StructuredActivityNode_3065);
+ types.add(UMLElementTypes.InputPin_3105);
+ types.add(UMLElementTypes.ReadSelfAction_3081);
+ types.add(UMLElementTypes.OutputPin_3084);
+ types.add(UMLElementTypes.CreateObjectAction_3086);
+ types.add(UMLElementTypes.OutputPin_3087);
+ types.add(UMLElementTypes.ReadStructuralFeatureAction_3088);
+ types.add(UMLElementTypes.InputPin_3089);
+ types.add(UMLElementTypes.OutputPin_3090);
+ types.add(UMLElementTypes.AddStructuralFeatureValueAction_3091);
+ types.add(UMLElementTypes.InputPin_3092);
+ types.add(UMLElementTypes.InputPin_3093);
+ types.add(UMLElementTypes.OutputPin_3094);
+ types.add(UMLElementTypes.DestroyObjectAction_3095);
+ types.add(UMLElementTypes.InputPin_3096);
+ types.add(UMLElementTypes.ReadVariableAction_3097);
+ types.add(UMLElementTypes.OutputPin_3098);
+ types.add(UMLElementTypes.AddVariableValueAction_3099);
+ types.add(UMLElementTypes.InputPin_3100);
+ types.add(UMLElementTypes.InputPin_3101);
+ types.add(UMLElementTypes.BroadcastSignalAction_3102);
+ types.add(UMLElementTypes.InputPin_3103);
+ types.add(UMLElementTypes.CentralBufferNode_3104);
+ } else if (relationshipType == UMLElementTypes.ExceptionHandler_4005) {
+ types.add(UMLElementTypes.ValuePin_3015);
+ types.add(UMLElementTypes.ActionInputPin_3016);
+ types.add(UMLElementTypes.InputPin_3013);
+ types.add(UMLElementTypes.OutputPin_3014);
+ types.add(UMLElementTypes.ValuePin_3017);
+ types.add(UMLElementTypes.ActionInputPin_3018);
+ types.add(UMLElementTypes.InputPin_3019);
+ types.add(UMLElementTypes.OutputPin_3020);
+ types.add(UMLElementTypes.ActionInputPin_3021);
+ types.add(UMLElementTypes.ValuePin_3022);
+ types.add(UMLElementTypes.InputPin_3023);
+ types.add(UMLElementTypes.OutputPin_3024);
+ types.add(UMLElementTypes.ValuePin_3025);
+ types.add(UMLElementTypes.ActionInputPin_3026);
+ types.add(UMLElementTypes.InputPin_3027);
+ types.add(UMLElementTypes.DataStoreNode_3078);
+ types.add(UMLElementTypes.ValuePin_3046);
+ types.add(UMLElementTypes.ActionInputPin_3047);
+ types.add(UMLElementTypes.InputPin_3048);
+ types.add(UMLElementTypes.ValuePin_3049);
+ types.add(UMLElementTypes.ActionInputPin_3050);
+ types.add(UMLElementTypes.InputPin_3051);
+ types.add(UMLElementTypes.ActionInputPin_3053);
+ types.add(UMLElementTypes.ValuePin_3054);
+ types.add(UMLElementTypes.InputPin_3055);
+ types.add(UMLElementTypes.ValuePin_3060);
+ types.add(UMLElementTypes.ActionInputPin_3061);
+ types.add(UMLElementTypes.InputPin_3062);
+ types.add(UMLElementTypes.ActivityParameterNode_3059);
+ types.add(UMLElementTypes.OutputPin_3064);
+ types.add(UMLElementTypes.OutputPin_3077);
+ types.add(UMLElementTypes.ExpansionNode_3074);
+ types.add(UMLElementTypes.ExpansionNode_3075);
+ types.add(UMLElementTypes.OutputPin_3109);
+ types.add(UMLElementTypes.OutputPin_3110);
+ types.add(UMLElementTypes.OutputPin_3111);
+ types.add(UMLElementTypes.InputPin_3105);
+ types.add(UMLElementTypes.OutputPin_3084);
+ types.add(UMLElementTypes.OutputPin_3087);
+ types.add(UMLElementTypes.InputPin_3089);
+ types.add(UMLElementTypes.OutputPin_3090);
+ types.add(UMLElementTypes.InputPin_3092);
+ types.add(UMLElementTypes.InputPin_3093);
+ types.add(UMLElementTypes.OutputPin_3094);
+ types.add(UMLElementTypes.InputPin_3096);
+ types.add(UMLElementTypes.OutputPin_3098);
+ types.add(UMLElementTypes.InputPin_3100);
+ types.add(UMLElementTypes.InputPin_3101);
+ types.add(UMLElementTypes.InputPin_3103);
+ types.add(UMLElementTypes.CentralBufferNode_3104);
+ }
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMARelTypesOnTarget() {
+ ArrayList<IElementType> types = new ArrayList<IElementType>(4);
+ types.add(UMLElementTypes.ObjectFlow_4003);
+ types.add(UMLElementTypes.ControlFlow_4004);
+ types.add(UMLElementTypes.CommentAnnotatedElement_4006);
+ types.add(UMLElementTypes.ConstraintConstrainedElement_4007);
+ return types;
+ }
+
+ /**
+ * @generated
+ */
+ public List<IElementType> getMATypesForSource(IElementType relationshipType) {
+ LinkedList<IElementType> types = new LinkedList<IElementType>();
+ if (relationshipType == UMLElementTypes.ObjectFlow_4003) {
+ types.add(UMLElementTypes.InitialNode_3004);
+ types.add(UMLElementTypes.ActivityFinalNode_3005);
+ types.add(UMLElementTypes.FlowFinalNode_3006);
+ types.add(UMLElementTypes.OpaqueAction_3007);
+ types.add(UMLElementTypes.ValuePin_3015);
+ types.add(UMLElementTypes.ActionInputPin_3016);
+ types.add(UMLElementTypes.InputPin_3013);
+ types.add(UMLElementTypes.OutputPin_3014);
+ types.add(UMLElementTypes.CallBehaviorAction_3008);
+ types.add(UMLElementTypes.ValuePin_3017);
+ types.add(UMLElementTypes.ActionInputPin_3018);
+ types.add(UMLElementTypes.InputPin_3019);
+ types.add(UMLElementTypes.OutputPin_3020);
+ types.add(UMLElementTypes.CallOperationAction_3010);
+ types.add(UMLElementTypes.ActionInputPin_3021);
+ types.add(UMLElementTypes.ValuePin_3022);
+ types.add(UMLElementTypes.InputPin_3023);
+ types.add(UMLElementTypes.OutputPin_3024);
+ types.add(UMLElementTypes.ValuePin_3025);
+ types.add(UMLElementTypes.ActionInputPin_3026);
+ types.add(UMLElementTypes.InputPin_3027);
+ types.add(UMLElementTypes.DecisionNode_3038);
+ types.add(UMLElementTypes.MergeNode_3039);
+ types.add(UMLElementTypes.ForkNode_3040);
+ types.add(UMLElementTypes.JoinNode_3041);
+ types.add(UMLElementTypes.DataStoreNode_3078);
+ types.add(UMLElementTypes.SendObjectAction_3042);
+ types.add(UMLElementTypes.ValuePin_3046);
+ types.add(UMLElementTypes.ActionInputPin_3047);
+ types.add(UMLElementTypes.InputPin_3048);
+ types.add(UMLElementTypes.ValuePin_3049);
+ types.add(UMLElementTypes.ActionInputPin_3050);
+ types.add(UMLElementTypes.InputPin_3051);
+ types.add(UMLElementTypes.SendSignalAction_3052);
+ types.add(UMLElementTypes.ActionInputPin_3053);
+ types.add(UMLElementTypes.ValuePin_3054);
+ types.add(UMLElementTypes.InputPin_3055);
+ types.add(UMLElementTypes.ValuePin_3060);
+ types.add(UMLElementTypes.ActionInputPin_3061);
+ types.add(UMLElementTypes.InputPin_3062);
+ types.add(UMLElementTypes.ActivityParameterNode_3059);
+ types.add(UMLElementTypes.AcceptEventAction_3063);
+ types.add(UMLElementTypes.OutputPin_3064);
+ types.add(UMLElementTypes.ValueSpecificationAction_3076);
+ types.add(UMLElementTypes.OutputPin_3077);
+ types.add(UMLElementTypes.ConditionalNode_3069);
+ types.add(UMLElementTypes.ExpansionRegion_3070);
+ types.add(UMLElementTypes.ExpansionNode_3074);
+ types.add(UMLElementTypes.ExpansionNode_3075);
+ types.add(UMLElementTypes.LoopNode_3071);
+ types.add(UMLElementTypes.OutputPin_3109);
+ types.add(UMLElementTypes.OutputPin_3110);
+ types.add(UMLElementTypes.OutputPin_3111);
+ types.add(UMLElementTypes.SequenceNode_3073);
+ types.add(UMLElementTypes.StructuredActivityNode_3065);
+ types.add(UMLElementTypes.InputPin_3105);
+ types.add(UMLElementTypes.ReadSelfAction_3081);
+ types.add(UMLElementTypes.OutputPin_3084);
+ types.add(UMLElementTypes.CreateObjectAction_3086);
+ types.add(UMLElementTypes.OutputPin_3087);
+ types.add(UMLElementTypes.ReadStructuralFeatureAction_3088);
+ types.add(UMLElementTypes.InputPin_3089);
+ types.add(UMLElementTypes.OutputPin_3090);
+ types.add(UMLElementTypes.AddStructuralFeatureValueAction_3091);
+ types.add(UMLElementTypes.InputPin_3092);
+ types.add(UMLElementTypes.InputPin_3093);
+ types.add(UMLElementTypes.OutputPin_3094);
+ types.add(UMLElementTypes.DestroyObjectAction_3095);
+ types.add(UMLElementTypes.InputPin_3096);
+ types.add(UMLElementTypes.ReadVariableAction_3097);
+ types.add(UMLElementTypes.OutputPin_3098);
+ types.add(UMLElementTypes.AddVariableValueAction_3099);
+ types.add(UMLElementTypes.InputPin_3100);
+ types.add(UMLElementTypes.InputPin_3101);
+ types.add(UMLElementTypes.BroadcastSignalAction_3102);
+ types.add(UMLElementTypes.InputPin_3103);
+ types.add(UMLElementTypes.CentralBufferNode_3104);
+ } else if (relationshipType == UMLElementTypes.ControlFlow_4004) {
+ types.add(UMLElementTypes.InitialNode_3004);
+ types.add(UMLElementTypes.ActivityFinalNode_3005);
+ types.add(UMLElementTypes.FlowFinalNode_3006);
+ types.add(UMLElementTypes.OpaqueAction_3007);
+ types.add(UMLElementTypes.ValuePin_3015);
+ types.add(UMLElementTypes.ActionInputPin_3016);
+ types.add(UMLElementTypes.InputPin_3013);
+ types.add(UMLElementTypes.OutputPin_3014);
+ types.add(UMLElementTypes.CallBehaviorAction_3008);
+ types.add(UMLElementTypes.ValuePin_3017);
+ types.add(UMLElementTypes.ActionInputPin_3018);
+ types.add(UMLElementTypes.InputPin_3019);
+ types.add(UMLElementTypes.OutputPin_3020);
+ types.add(UMLElementTypes.CallOperationAction_3010);
+ types.add(UMLElementTypes.ActionInputPin_3021);
+ types.add(UMLElementTypes.ValuePin_3022);
+ types.add(UMLElementTypes.InputPin_3023);
+ types.add(UMLElementTypes.OutputPin_3024);
+ types.add(UMLElementTypes.ValuePin_3025);
+ types.add(UMLElementTypes.ActionInputPin_3026);
+ types.add(UMLElementTypes.InputPin_3027);
+ types.add(UMLElementTypes.DecisionNode_3038);
+ types.add(UMLElementTypes.MergeNode_3039);
+ types.add(UMLElementTypes.ForkNode_3040);
+ types.add(UMLElementTypes.JoinNode_3041);
+ types.add(UMLElementTypes.DataStoreNode_3078);
+ types.add(UMLElementTypes.SendObjectAction_3042);
+ types.add(UMLElementTypes.ValuePin_3046);
+ types.add(UMLElementTypes.ActionInputPin_3047);
+ types.add(UMLElementTypes.InputPin_3048);
+ types.add(UMLElementTypes.ValuePin_3049);
+ types.add(UMLElementTypes.ActionInputPin_3050);
+ types.add(UMLElementTypes.InputPin_3051);
+ types.add(UMLElementTypes.SendSignalAction_3052);
+ types.add(UMLElementTypes.ActionInputPin_3053);
+ types.add(UMLElementTypes.ValuePin_3054);
+ types.add(UMLElementTypes.InputPin_3055);
+ types.add(UMLElementTypes.ValuePin_3060);
+ types.add(UMLElementTypes.ActionInputPin_3061);
+ types.add(UMLElementTypes.InputPin_3062);
+ types.add(UMLElementTypes.ActivityParameterNode_3059);
+ types.add(UMLElementTypes.AcceptEventAction_3063);
+ types.add(UMLElementTypes.OutputPin_3064);
+ types.add(UMLElementTypes.ValueSpecificationAction_3076);
+ types.add(UMLElementTypes.OutputPin_3077);
+ types.add(UMLElementTypes.ConditionalNode_3069);
+ types.add(UMLElementTypes.ExpansionRegion_3070);
+ types.add(UMLElementTypes.ExpansionNode_3074);
+ types.add(UMLElementTypes.ExpansionNode_3075);
+ types.add(UMLElementTypes.LoopNode_3071);
+ types.add(UMLElementTypes.OutputPin_3109);
+ types.add(UMLElementTypes.OutputPin_3110);
+ types.add(UMLElementTypes.OutputPin_3111);
+ types.add(UMLElementTypes.SequenceNode_3073);
+ types.add(UMLElementTypes.StructuredActivityNode_3065);
+ types.add(UMLElementTypes.InputPin_3105);
+ types.add(UMLElementTypes.ReadSelfAction_3081);
+ types.add(UMLElementTypes.OutputPin_3084);
+ types.add(UMLElementTypes.CreateObjectAction_3086);
+ types.add(UMLElementTypes.OutputPin_3087);
+ types.add(UMLElementTypes.ReadStructuralFeatureAction_3088);
+ types.add(UMLElementTypes.InputPin_3089);
+ types.add(UMLElementTypes.OutputPin_3090);
+ types.add(UMLElementTypes.AddStructuralFeatureValueAction_3091);
+ types.add(UMLElementTypes.InputPin_3092);
+ types.add(UMLElementTypes.InputPin_3093);
+ types.add(UMLElementTypes.OutputPin_3094);
+ types.add(UMLElementTypes.DestroyObjectAction_3095);
+ types.add(UMLElementTypes.InputPin_3096);
+ types.add(UMLElementTypes.ReadVariableAction_3097);
+ types.add(UMLElementTypes.OutputPin_3098);
+ types.add(UMLElementTypes.AddVariableValueAction_3099);
+ types.add(UMLElementTypes.InputPin_3100);
+ types.add(UMLElementTypes.InputPin_3101);
+ types.add(UMLElementTypes.BroadcastSignalAction_3102);
+ types.add(UMLElementTypes.InputPin_3103);
+ types.add(UMLElementTypes.CentralBufferNode_3104);
+ } else if (relationshipType == UMLElementTypes.CommentAnnotatedElement_4006) {
+ types.add(UMLElementTypes.Comment_3080);
+ } else if (relationshipType == UMLElementTypes.ConstraintConstrainedElement_4007) {
+ types.add(UMLElementTypes.DurationConstraint_3034);
+ types.add(UMLElementTypes.DurationConstraint_3035);
+ types.add(UMLElementTypes.TimeConstraint_3036);
+ types.add(UMLElementTypes.TimeConstraint_3037);
+ types.add(UMLElementTypes.IntervalConstraint_3032);
+ types.add(UMLElementTypes.IntervalConstraint_3033);
+ types.add(UMLElementTypes.Constraint_3011);
+ types.add(UMLElementTypes.Constraint_3012);
+ types.add(UMLElementTypes.Constraint_3112);
+ }
+ 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 = PreferencesConstantsHelper.getElementConstant("CallBehaviorAction", PreferencesConstantsHelper.COLOR_LINE);
+ } else if (feature == NotationPackage.eINSTANCE.getFontStyle_FontColor()) {
+ prefColor = PreferencesConstantsHelper.getElementConstant("CallBehaviorAction", PreferencesConstantsHelper.COLOR_FONT);
+ } else if (feature == NotationPackage.eINSTANCE.getFillStyle_FillColor()) {
+ prefColor = PreferencesConstantsHelper.getElementConstant("CallBehaviorAction", PreferencesConstantsHelper.COLOR_FILL);
+ }
+ result = FigureUtilities.RGBToInteger(PreferenceConverter.getColor(preferenceStore, prefColor));
+ } else if (feature == NotationPackage.eINSTANCE.getFillStyle_Transparency() || feature == NotationPackage.eINSTANCE.getFillStyle_Gradient()) {
+ String prefGradient = PreferencesConstantsHelper.getElementConstant("CallBehaviorAction", PreferencesConstantsHelper.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;
+ }
+}

Back to the top