Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-11-08 21:07:37 +0000
committerMichael Valenta2004-11-08 21:07:37 +0000
commitb1e0b61b1a4daffd48ec42551fb21242744673d7 (patch)
treeae225824135dccaf6b8795ee941c19f67d14c113
parentd9f52d4d37de9dc4c1fad6ae40d9edda00edcd3c (diff)
downloadeclipse.platform.team-b1e0b61b1a4daffd48ec42551fb21242744673d7.tar.gz
eclipse.platform.team-b1e0b61b1a4daffd48ec42551fb21242744673d7.tar.xz
eclipse.platform.team-b1e0b61b1a4daffd48ec42551fb21242744673d7.zip
Fixed getShell to use the shell from the target partI20041108
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java
index 2a6057c8d..8f92eb7cf 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java
@@ -165,6 +165,8 @@ public abstract class TeamAction extends ActionDelegate implements IObjectAction
protected Shell getShell() {
if (shell != null) {
return shell;
+ } else if (targetPart != null) {
+ return targetPart.getSite().getShell();
} else {
IWorkbench workbench = TeamUIPlugin.getPlugin().getWorkbench();
if (workbench == null) return null;

Back to the top