diff options
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomObjectFlowEditPart.java')
-rw-r--r-- | plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomObjectFlowEditPart.java | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomObjectFlowEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomObjectFlowEditPart.java index 96e5d7e14ac..ca78e8ab3fd 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomObjectFlowEditPart.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomObjectFlowEditPart.java @@ -1,59 +1,59 @@ -/*****************************************************************************
- * Copyright (c) 2011 Atos.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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 - Initial API and implementation
- * Arthur Daussy Bug 366026 - [ActivityDiagram] Refactoring in order to try respect Generation Gap Pattern
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.diagram.activity.edit.part;
-
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.uml.diagram.activity.edit.part.interfaces.InterruptibleEdge;
-import org.eclipse.papyrus.uml.diagram.activity.edit.parts.ObjectFlowEditPart;
-import org.eclipse.papyrus.uml.diagram.activity.edit.parts.ObjectFlowInterruptibleIconEditPart;
-import org.eclipse.papyrus.uml.diagram.activity.part.UMLVisualIDRegistry;
-
-/**
- * Customization to implement InterruptibleEdge
- *
- * @author arthur daussy
- *
- */
-public class CustomObjectFlowEditPart extends ObjectFlowEditPart implements InterruptibleEdge {
-
- public CustomObjectFlowEditPart(View view) {
- super(view);
- }
-
- /**
- * {@inheritDoc InterruptibleEdge}
- */
- @Override
- public String getInterruptibleEdgeIconVisualID() {
- return ObjectFlowInterruptibleIconEditPart.VISUAL_ID;
- }
-
- /**
- * {@inheritDoc InterruptibleEdge}
- */
- @Override
- public Node getInterrutibleEgdeIcon() {
- Object view = getModel();
- if (view instanceof View) {
- View node = ViewUtil.getChildBySemanticHint((View) view, UMLVisualIDRegistry.getType(ObjectFlowInterruptibleIconEditPart.VISUAL_ID));
- if (node instanceof Node) {
- return (Node) node;
- }
- }
- return null;
- }
-}
+/***************************************************************************** + * Copyright (c) 2011 Atos. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms 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 - Initial API and implementation + * Arthur Daussy Bug 366026 - [ActivityDiagram] Refactoring in order to try respect Generation Gap Pattern + * + *****************************************************************************/ +package org.eclipse.papyrus.uml.diagram.activity.edit.part; + +import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil; +import org.eclipse.gmf.runtime.notation.Node; +import org.eclipse.gmf.runtime.notation.View; +import org.eclipse.papyrus.uml.diagram.activity.edit.part.interfaces.InterruptibleEdge; +import org.eclipse.papyrus.uml.diagram.activity.edit.parts.ObjectFlowEditPart; +import org.eclipse.papyrus.uml.diagram.activity.edit.parts.ObjectFlowInterruptibleIconEditPart; +import org.eclipse.papyrus.uml.diagram.activity.part.UMLVisualIDRegistry; + +/** + * Customization to implement InterruptibleEdge + * + * @author arthur daussy + * + */ +public class CustomObjectFlowEditPart extends ObjectFlowEditPart implements InterruptibleEdge { + + public CustomObjectFlowEditPart(View view) { + super(view); + } + + /** + * {@inheritDoc InterruptibleEdge} + */ + @Override + public String getInterruptibleEdgeIconVisualID() { + return ObjectFlowInterruptibleIconEditPart.VISUAL_ID; + } + + /** + * {@inheritDoc InterruptibleEdge} + */ + @Override + public Node getInterrutibleEgdeIcon() { + Object view = getModel(); + if (view instanceof View) { + View node = ViewUtil.getChildBySemanticHint((View) view, UMLVisualIDRegistry.getType(ObjectFlowInterruptibleIconEditPart.VISUAL_ID)); + if (node instanceof Node) { + return (Node) node; + } + } + return null; + } +} |