Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2014-05-13 16:42:54 -0400
committerTom Schindl2014-05-13 16:42:54 -0400
commitd0778d1c9cc590a908f64da5107536db0a2ae432 (patch)
tree60df9e819f638d6888553fd86c69f694a090bcd4
parentf0260a5a7590ac31d6b90b810dcde517ddf97736 (diff)
downloadorg.eclipse.efxclipse-d0778d1c9cc590a908f64da5107536db0a2ae432.tar.gz
org.eclipse.efxclipse-d0778d1c9cc590a908f64da5107536db0a2ae432.tar.xz
org.eclipse.efxclipse-d0778d1c9cc590a908f64da5107536db0a2ae432.zip
Bug 434803 - Upgrade to jdt.annotation 2.0
-rwxr-xr-xbundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefToolBarRenderer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefToolBarRenderer.java b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefToolBarRenderer.java
index b428a185d..b00b7b08a 100755
--- a/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefToolBarRenderer.java
+++ b/bundles/runtime/org.eclipse.fx.ui.workbench.renderers.fx/src/org/eclipse/fx/ui/workbench/renderers/fx/DefToolBarRenderer.java
@@ -51,8 +51,9 @@ public class DefToolBarRenderer extends BaseToolBarRenderer<ToolBar> {
}
private void syncOrientation(Observable o) {
- if (getDomElement() != null && ((EObject) getDomElement()).eContainer() instanceof MTrimBar) {
- MTrimBar bar = (MTrimBar) ((EObject) getDomElement()).eContainer();
+ MToolBar element = getDomElement();
+ if (element != null && ((EObject) element).eContainer() instanceof MTrimBar) {
+ MTrimBar bar = (MTrimBar) ((EObject) element).eContainer();
switch (bar.getSide()) {
case LEFT:
case RIGHT:

Back to the top