Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'incoming/org.eclipse.papyrus.diagram.component/src/org/eclipse/papyrus/diagram/component/edit/parts/SubstitutionEditPart.java')
-rw-r--r--incoming/org.eclipse.papyrus.diagram.component/src/org/eclipse/papyrus/diagram/component/edit/parts/SubstitutionEditPart.java113
1 files changed, 0 insertions, 113 deletions
diff --git a/incoming/org.eclipse.papyrus.diagram.component/src/org/eclipse/papyrus/diagram/component/edit/parts/SubstitutionEditPart.java b/incoming/org.eclipse.papyrus.diagram.component/src/org/eclipse/papyrus/diagram/component/edit/parts/SubstitutionEditPart.java
deleted file mode 100644
index 79372039262..00000000000
--- a/incoming/org.eclipse.papyrus.diagram.component/src/org/eclipse/papyrus/diagram/component/edit/parts/SubstitutionEditPart.java
+++ /dev/null
@@ -1,113 +0,0 @@
-package org.eclipse.papyrus.diagram.component.edit.parts;
-
-import org.eclipse.draw2d.Connection;
-import org.eclipse.gef.EditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionNodeEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITreeBranchEditPart;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeLinkLabelDisplayEditPolicy;
-import org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeSubstitutionLabelDisplayEditPolicy;
-import org.eclipse.papyrus.diagram.common.figure.edge.InterfaceRealizationFigure;
-import org.eclipse.papyrus.diagram.component.edit.policies.SubstitutionItemSemanticEditPolicy;
-
-/**
- * @generated
- */
-public class SubstitutionEditPart extends ConnectionNodeEditPart
-
-implements ITreeBranchEditPart {
-
- /**
- * @generated
- */
- public static final int VISUAL_ID = 4012;
-
- /**
- * @generated
- */
- public SubstitutionEditPart(View view) {
- super(view);
- }
-
- /**
- * @generated
- */
- protected void createDefaultEditPolicies() {
- super.createDefaultEditPolicies();
- installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new SubstitutionItemSemanticEditPolicy());
- installEditPolicy(AppliedStereotypeLinkLabelDisplayEditPolicy.STEREOTYPE_LABEL_POLICY, new AppliedStereotypeSubstitutionLabelDisplayEditPolicy());
- }
-
- /**
- * @generated
- */
- protected boolean addFixedChild(EditPart childEditPart) {
- if(childEditPart instanceof SubstitutionNameEditPart) {
- ((SubstitutionNameEditPart)childEditPart).setLabel(getPrimaryShape().getNameLabel());
- return true;
- }
- if(childEditPart instanceof SubstitutionAppliedStereotypeEditPart) {
- ((SubstitutionAppliedStereotypeEditPart)childEditPart).setLabel(getPrimaryShape().getAppliedStereotypeLabel());
- return true;
- }
- return false;
- }
-
-
- /**
- * @generated
- */
- protected void addChildVisual(EditPart childEditPart, int index) {
- if(addFixedChild(childEditPart)) {
- return;
- }
- super.addChildVisual(childEditPart, -1);
- }
-
-
- /**
- * @generated
- */
- protected boolean removeFixedChild(EditPart childEditPart) {
- if(childEditPart instanceof SubstitutionNameEditPart) {
- return true;
- }
- if(childEditPart instanceof SubstitutionAppliedStereotypeEditPart) {
- return true;
- }
- return false;
- }
-
-
- /**
- * @generated
- */
- protected void removeChildVisual(EditPart childEditPart) {
- if(removeFixedChild(childEditPart)) {
- return;
- }
- super.removeChildVisual(childEditPart);
- }
-
-
- /**
- * Creates figure for this edit part.
- *
- * Body of this method does not depend on settings in generation model
- * so you may safely remove <i>generated</i> tag and modify it.
- *
- * @generated
- */
- protected Connection createConnectionFigure() {
- return new InterfaceRealizationFigure();
- }
-
- /**
- * @generated
- */
- public InterfaceRealizationFigure getPrimaryShape() {
- return (InterfaceRealizationFigure)getFigure();
- }
-
-}

Back to the top