Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/diagram/clazz/custom/policies/DisplayAssociationEndSourceEditPolicy.java')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/diagram/clazz/custom/policies/DisplayAssociationEndSourceEditPolicy.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/diagram/clazz/custom/policies/DisplayAssociationEndSourceEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/diagram/clazz/custom/policies/DisplayAssociationEndSourceEditPolicy.java
new file mode 100644
index 00000000000..ad61b6687a4
--- /dev/null
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/diagram/clazz/custom/policies/DisplayAssociationEndSourceEditPolicy.java
@@ -0,0 +1,42 @@
+/*****************************************************************************
+ * Copyright (c) 2009 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.diagram.clazz.custom.policies;
+
+import org.eclipse.papyrus.diagram.clazz.custom.helper.AssociationEndSourceLabelHelper;
+import org.eclipse.papyrus.umlutils.ICustomAppearence;
+
+/**
+ * Mask Managed label edit policy for association ends (source role)
+ */
+public class DisplayAssociationEndSourceEditPolicy extends DisplayAssociationEndEditPolicy {
+
+ public void addAdditionalListeners() {
+ super.addAdditionalListeners();
+ // adds a listener to the element itself, and to linked elements, like Type
+ if(getView().eContainer() != null) {
+ getDiagramEventBroker().addNotificationListener(getView().eContainer(), this);
+
+ }
+ }
+
+ /**
+ * Instantiates a new display association end source edit policy.
+ */
+ public DisplayAssociationEndSourceEditPolicy() {
+ super();
+ propertyLabelHelper = AssociationEndSourceLabelHelper.getInstance();
+ }
+
+
+}

Back to the top