diff options
author | Tomasz Zarna | 2010-08-24 11:47:45 +0000 |
---|---|---|
committer | Tomasz Zarna | 2010-08-24 11:47:45 +0000 |
commit | fd143b0acb1bcb6df9e4a08dba0c792fa3b1b36b (patch) | |
tree | d83b70bfacb54615e88124d39c6648dbb1efd03d /bundles | |
parent | 3915445affd30aa81d7e5c3ba7ffb9cd5230db10 (diff) | |
download | eclipse.platform.team-fd143b0acb1bcb6df9e4a08dba0c792fa3b1b36b.tar.gz eclipse.platform.team-fd143b0acb1bcb6df9e4a08dba0c792fa3b1b36b.tar.xz eclipse.platform.team-fd143b0acb1bcb6df9e4a08dba0c792fa3b1b36b.zip |
bug 323481: Remove activeWorkbenchWindow parameter from TeamAction.updateSelection(IWorkbenchWindow, IWorkbenchPart, ISelection)
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java | 9 |
1 files changed, 4 insertions, 5 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 bbf9cce45..286337019 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 @@ -548,7 +548,7 @@ public abstract class TeamAction extends AbstractHandler implements IObjectActio final public void runWithEvent(IAction action, Event event) { run(action); } - + /* (non-Javadoc) * @see org.eclipse.core.commands.AbstractHandler#setEnabled(java.lang.Object) */ @@ -564,12 +564,11 @@ public abstract class TeamAction extends AbstractHandler implements IObjectActio } IWorkbenchPart part = (IWorkbenchPart) HandlerUtil.getVariable( evaluationContext, ISources.ACTIVE_PART_NAME); - updateSelection(activeWorkbenchWindow, part, selection); + updateSelection(part, selection); } } - - private void updateSelection(IWorkbenchWindow activeWorkbenchWindow, - IWorkbenchPart part, ISelection selection) { + + private void updateSelection(IWorkbenchPart part, ISelection selection) { // If the action is run from within an editor, try and find the // file for the given editor. setActivePart(null, part); |