Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-12-10 09:17:25 +0000
committerCamille Letavernier2014-12-10 09:21:40 +0000
commit929678a2ca71b21983f6cbf8dd8e81b9f97a4a0c (patch)
treee410effc7881048839e595bff632ab071962bd58
parent5c7dd9c031fe0ba0fab49817f3aeaea095537013 (diff)
downloadorg.eclipse.papyrus-929678a2ca71b21983f6cbf8dd8e81b9f97a4a0c.tar.gz
org.eclipse.papyrus-929678a2ca71b21983f6cbf8dd8e81b9f97a4a0c.tar.xz
org.eclipse.papyrus-929678a2ca71b21983f6cbf8dd8e81b9f97a4a0c.zip
454604: [Activity Diagram] Impossible to define CSS styles from this
diagram https://bugs.eclipse.org/bugs/show_bug.cgi?id=454604
-rw-r--r--plugins/infra/gmfdiag/css/org.eclipse.papyrus.infra.gmfdiag.css.configuration/src/org/eclipse/papyrus/infra/gmfdiag/css/configuration/handler/AbstractStyleHandler.java6
1 files changed, 5 insertions, 1 deletions
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);
+ }
}
}

Back to the top