Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2013-07-24 09:49:37 -0400
committerTom Schindl2013-07-24 09:49:37 -0400
commitc8ed0495a715bd21da847b8021e288f753ff24b4 (patch)
treef02f86adee37dfecbdc8de1b7a6ae2717bd95fd9
parent87910110e44c3dd7a1fef74a02545054b10cb28f (diff)
downloadorg.eclipse.efxclipse-c8ed0495a715bd21da847b8021e288f753ff24b4.tar.gz
org.eclipse.efxclipse-c8ed0495a715bd21da847b8021e288f753ff24b4.tar.xz
org.eclipse.efxclipse-c8ed0495a715bd21da847b8021e288f753ff24b4.zip
Bug 413 643 - [e4] MApplicationElement#elementId has to escape "."
through "-"
-rwxr-xr-xbundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/BaseRenderer.java2
-rw-r--r--bundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/Util.java3
2 files changed, 4 insertions, 1 deletions
diff --git a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/BaseRenderer.java b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/BaseRenderer.java
index 993b9522c..e2e40fb07 100755
--- a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/BaseRenderer.java
+++ b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/BaseRenderer.java
@@ -277,7 +277,7 @@ public abstract class BaseRenderer<M extends MUIElement, W extends WWidget<M>> e
}
if( me.getElementId() != null ) {
- widget.setStyleId(me.getElementId());
+ widget.setStyleId(Util.toCSSId(me.getElementId()));
}
me.setWidget(widget);
}
diff --git a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/Util.java b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/Util.java
index 18614b539..4ea1e2049 100644
--- a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/Util.java
+++ b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.base/src/org/eclipse/fx/ui/workbench/renderers/base/Util.java
@@ -15,4 +15,7 @@ public class Util {
.singleton((E) o);
}
+ public static String toCSSId(String id) {
+ return id.replace('.', '-');
+ }
}

Back to the top