diff options
author | Mike Rennie | 2012-04-12 19:10:55 +0000 |
---|---|---|
committer | Paul Webster | 2012-04-16 18:09:45 +0000 |
commit | 0c2287b25d3d76d620025cecf8adbcf0f57b4742 (patch) | |
tree | cb75c0144551657cd4cc6a982a9f4a96dac65968 | |
parent | 89540eee88979a5b5dd6cd6a03916a865186e670 (diff) | |
download | eclipse.platform.ui-0c2287b25d3d76d620025cecf8adbcf0f57b4742.tar.gz eclipse.platform.ui-0c2287b25d3d76d620025cecf8adbcf0f57b4742.tar.xz eclipse.platform.ui-0c2287b25d3d76d620025cecf8adbcf0f57b4742.zip |
Bug 356209 - [Compatibility] HandlerUtil.getActiveShell gives me alwaysv20120416-1809N20120416-1918I20120417-0334I20120417-0255I20120417-0235I20120417-0211I20120417-0142I20120416-2327I20120416-1738I20120416-1719I20120416-1643I20120416-1623I20120416-1600I20120416-1508
the parent (Workbench) Shell
-rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/services/WorkbenchSourceProvider.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/services/WorkbenchSourceProvider.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/services/WorkbenchSourceProvider.java index 1f8d3c07154..ebccbb84e7e 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/services/WorkbenchSourceProvider.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/services/WorkbenchSourceProvider.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009 IBM Corporation and others. + * Copyright (c) 2009, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -676,14 +676,6 @@ public class WorkbenchSourceProvider extends AbstractSourceProvider implements } return; } - - Shell theShell = (Shell) event.widget; - if (theShell != null && theShell.getParent() != null) - return; - - if (display.getActiveShell() != null && display.getActiveShell().getParent() != null) - return; - if (DEBUG) { logDebuggingInfo("\tWSP:lastActiveShell: " + lastActiveShell); //$NON-NLS-1$ logDebuggingInfo("\tWSP:lastActiveWorkbenchWindowShell" + lastActiveWorkbenchWindowShell); //$NON-NLS-1$ |