Procházet zdrojové kódy

https://code.google.com/a/eclipselabs.org/p/yakindu/issues/detail?id=27

Andreas Mülder před 11 roky
rodič
revize
7d1aa8666c

+ 14 - 0
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/editparts/StateFigureCompartmentEditPart.java

@@ -54,6 +54,19 @@ public class StateFigureCompartmentEditPart extends CompartmentEditPart {
 		removeEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE);
 	}
 
+	@Override
+	protected void addNotationalListeners() {
+		super.addNotationalListeners();
+		  addListenerFilter("ParentView", this,((View)getModel()).eContainer());
+		
+	}
+	
+	@Override
+	protected void removeNotationalListeners() {
+		super.removeNotationalListeners();
+		removeListenerFilter("ParentView"); 
+	}
+	
 	@Override
 	public boolean isSelectable() {
 		return false;
@@ -84,6 +97,7 @@ public class StateFigureCompartmentEditPart extends CompartmentEditPart {
 
 	@Override
 	protected void handleNotificationEvent(Notification event) {
+		System.out.println();
 		if (event.getFeature() == NotationPackage.Literals.BOOLEAN_VALUE_STYLE__BOOLEAN_VALUE) {
 			updateLayout();
 		}