Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortfaure2012-02-28 11:23:12 -0500
committertfaure2012-02-28 11:23:12 -0500
commitf477927b36ef509cc66c558566c0a31a54a35acb (patch)
tree59d1d5ce19f62cabadb7de1cfd2bfbda6f8016a3 /plugins
parent22897c2cc93fa91240c1c7985c75ff9f276d3fb8 (diff)
downloadorg.eclipse.papyrus-f477927b36ef509cc66c558566c0a31a54a35acb.tar.gz
org.eclipse.papyrus-f477927b36ef509cc66c558566c0a31a54a35acb.tar.xz
org.eclipse.papyrus-f477927b36ef509cc66c558566c0a31a54a35acb.zip
ASSIGNED - bug 363701: [Class Diagram] properties (isStatic...) of Operations, Properties ... are not managed graphically
https://bugs.eclipse.org/bugs/show_bug.cgi?id=363701 backport to the trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndSourceEditPart.java10
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndTargetEditPart.java11
2 files changed, 20 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndSourceEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndSourceEditPart.java
index f4eb4381db8..5266f452d39 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndSourceEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndSourceEditPart.java
@@ -13,11 +13,13 @@
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.clazz.custom.edit.part;
+import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.uml.diagram.clazz.custom.helper.AssociationEndTargetLabelHelper;
import org.eclipse.papyrus.uml.diagram.clazz.edit.parts.AssociationTargetNameEditPart;
import org.eclipse.ui.views.properties.IPropertySource;
+import org.eclipse.uml2.uml.UMLPackage;
/**
@@ -37,6 +39,14 @@ public class AssociationEndSourceEditPart extends AssociationTargetNameEditPart
// TODO Auto-generated constructor stub
}
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ if(UMLPackage.Literals.FEATURE__IS_STATIC.equals(event.getFeature())) {
+ refreshUnderline();
+ }
+ super.handleNotificationEvent(event);
+ }
+
/**
* @see org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart#resolveSemanticElement()
*
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndTargetEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndTargetEditPart.java
index 2be9fe3a600..780919bfcad 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndTargetEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/edit/part/AssociationEndTargetEditPart.java
@@ -13,11 +13,13 @@
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.clazz.custom.edit.part;
+import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.papyrus.uml.diagram.clazz.custom.helper.AssociationEndSourceLabelHelper;
import org.eclipse.papyrus.uml.diagram.clazz.edit.parts.AssociationSourceNameEditPart;
import org.eclipse.ui.views.properties.IPropertySource;
+import org.eclipse.uml2.uml.UMLPackage;
/**
@@ -37,7 +39,14 @@ public class AssociationEndTargetEditPart extends AssociationSourceNameEditPart
// TODO Auto-generated constructor stub
}
-
+ @Override
+ protected void handleNotificationEvent(Notification event) {
+ if(UMLPackage.Literals.FEATURE__IS_STATIC.equals(event.getFeature())) {
+ refreshUnderline();
+ }
+ super.handleNotificationEvent(event);
+ }
+
/**
* @see org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart#resolveSemanticElement()
*

Back to the top