aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael de Hoog2013-06-24 13:48:17 (EDT)
committerPaul Webster2013-06-24 13:48:17 (EDT)
commitbc46de3e025b5da8d0ce3bf9c69414ccc3e18577 (patch)
treee6bee0013e07ed9295e34578453255e91b777690
parentf8df51502b1c801fd23198ad34123f0994633ce7 (diff)
downloadeclipse.platform.ui-bc46de3e025b5da8d0ce3bf9c69414ccc3e18577.zip
eclipse.platform.ui-bc46de3e025b5da8d0ce3bf9c69414ccc3e18577.tar.gz
eclipse.platform.ui-bc46de3e025b5da8d0ce3bf9c69414ccc3e18577.tar.bz2
Bug 411468 - ClassCastException in WorkbenchPage when showing E4 partI20130625-0800refs/changes/15/14015/1
using EPartService.showPart Shouldn't need to case when we do instance checks immediately afterwards.
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
index ff441ba..9f44399 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
@@ -2807,7 +2807,7 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
private EventHandler selectionHandler = new EventHandler() {
public void handleEvent(Event event) {
- MUIElement changedElement = (MUIElement) event.getProperty(UIEvents.EventTags.ELEMENT);
+ Object changedElement = event.getProperty(UIEvents.EventTags.ELEMENT);
if (!(changedElement instanceof MPerspectiveStack)) {
return;
@@ -4956,7 +4956,7 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
private EventHandler firingHandler = new EventHandler() {
public void handleEvent(Event event) {
- MUIElement element = (MUIElement) event.getProperty(UIEvents.EventTags.ELEMENT);
+ Object element = event.getProperty(UIEvents.EventTags.ELEMENT);
Object value = event.getProperty(UIEvents.EventTags.NEW_VALUE);
if (value instanceof CompatibilityPart && element instanceof MPart) {
Integer events = partEvents.remove(element);