Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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