Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 323481
Collapse All | Expand All

(-)src/org/eclipse/team/internal/ui/actions/TeamAction.java (-5 / +4 lines)
Lines 548-554 Link Here
548
    final public void runWithEvent(IAction action, Event event) {
548
    final public void runWithEvent(IAction action, Event event) {
549
        run(action);
549
        run(action);
550
    }
550
    }
551
    
551
552
	/* (non-Javadoc)
552
	/* (non-Javadoc)
553
	 * @see org.eclipse.core.commands.AbstractHandler#setEnabled(java.lang.Object)
553
	 * @see org.eclipse.core.commands.AbstractHandler#setEnabled(java.lang.Object)
554
	 */
554
	 */
Lines 564-575 Link Here
564
			}
564
			}
565
			IWorkbenchPart part = (IWorkbenchPart) HandlerUtil.getVariable(
565
			IWorkbenchPart part = (IWorkbenchPart) HandlerUtil.getVariable(
566
					evaluationContext, ISources.ACTIVE_PART_NAME);
566
					evaluationContext, ISources.ACTIVE_PART_NAME);
567
			updateSelection(activeWorkbenchWindow, part, selection);
567
			updateSelection(part, selection);
568
		}
568
		}
569
	}
569
	}
570
	
570
571
	private void updateSelection(IWorkbenchWindow activeWorkbenchWindow,
571
	private void updateSelection(IWorkbenchPart part, ISelection selection) {
572
			IWorkbenchPart part, ISelection selection) {
573
		// If the action is run from within an editor, try and find the
572
		// If the action is run from within an editor, try and find the
574
		// file for the given editor.
573
		// file for the given editor.
575
		setActivePart(null, part);
574
		setActivePart(null, part);

Return to bug 323481