aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Rolka2013-05-16 09:34:26 (EDT)
committerGerrit Code Review @ Eclipse.org2013-05-16 12:05:45 (EDT)
commit4a3db876b2e2f2d3a8863c8961735d25ec549a81 (patch)
tree55375b7e4e0bd9fc3d4ad5e6ec9477fd5e1f3a0b
parent79edb4f59d20dcc3a8cd40c67d1366efed04cdff (diff)
downloadeclipse.platform.ui-4a3db876b2e2f2d3a8863c8961735d25ec549a81.zip
eclipse.platform.ui-4a3db876b2e2f2d3a8863c8961735d25ec549a81.tar.gz
eclipse.platform.ui-4a3db876b2e2f2d3a8863c8961735d25ec549a81.tar.bz2
Bug 407199 - CCE when assigning a different key binding to a commandrefs/changes/81/12881/2
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
index e3ebe3d..700c49c 100644
--- a/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
+++ b/bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/ui/workbench/renderers/swt/StackRenderer.java
@@ -1494,8 +1494,7 @@ public class StackRenderer extends LazyStackRenderer {
@SuppressWarnings("javadoc")
public class TabStateHandler implements EventHandler {
public void handleEvent(Event event) {
- MUIElement element = (MUIElement) event
- .getProperty(UIEvents.EventTags.ELEMENT);
+ Object element = event.getProperty(UIEvents.EventTags.ELEMENT);
Object newValue = event.getProperty(UIEvents.EventTags.NEW_VALUE);
Object oldValue = event.getProperty(UIEvents.EventTags.OLD_VALUE);
@@ -1527,7 +1526,7 @@ public class StackRenderer extends LazyStackRenderer {
reapplyStyles(cti.getParent());
}
- public boolean validateElement(MUIElement element) {
+ public boolean validateElement(Object element) {
return element instanceof MPart || element instanceof MPartStack;
}