From 929678a2ca71b21983f6cbf8dd8e81b9f97a4a0c Mon Sep 17 00:00:00 2001 From: Camille Letavernier Date: Wed, 10 Dec 2014 10:17:25 +0100 Subject: 454604: [Activity Diagram] Impossible to define CSS styles from this diagram https://bugs.eclipse.org/bugs/show_bug.cgi?id=454604 --- .../gmfdiag/css/configuration/handler/AbstractStyleHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/AbstractStyleHandler.java b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/AbstractStyleHandler.java index c2febff7c7f..a433250fa35 100644 --- a/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/AbstractStyleHandler.java +++ b/plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/AbstractStyleHandler.java @@ -270,7 +270,11 @@ public abstract class AbstractStyleHandler extends AbstractHandler { Object currentValue = style.eGet(feature); Object defaultValue = feature.getDefaultValue(); boolean check = currentValue == null ? currentValue != defaultValue : !currentValue.equals(defaultValue); - declarations.put(handleStyleFeature(style, feature), check); + + Declaration declaration = handleStyleFeature(style, feature); + if (declaration.getExpression() != null) { // If expression is null, the type of this property is not supported + declarations.put(declaration, check); + } } } -- cgit v1.2.3