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 330797
Collapse All | Expand All

(-)src/org/eclipse/team/internal/ui/TeamUIPlugin.java (+7 lines)
Lines 70-75 Link Here
70
	
70
	
71
	// manages synchronize participants
71
	// manages synchronize participants
72
	private SynchronizeManager synchronizeManager;
72
	private SynchronizeManager synchronizeManager;
73
74
	/**
75
	 * ID of the 'Remove from View' action.
76
	 * Value: <code>"org.eclipse.team.internal.ui.RemoveFromView"</code>
77
	 */
78
	public static final String REMOVE_FROM_VIEW_ACTION_ID = "org.eclipse.team.internal.ui.RemoveFromView"; //$NON-NLS-1$
79
	
73
	
80
	
74
	/**
81
	/**
75
	 * Creates a new TeamUIPlugin.
82
	 * Creates a new TeamUIPlugin.
(-)src/org/eclipse/team/internal/ui/mapping/RemoveFromViewAction.java (-1 / +2 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2006 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 36-41 Link Here
36
	public RemoveFromViewAction(ISynchronizePageConfiguration configuration) {
36
	public RemoveFromViewAction(ISynchronizePageConfiguration configuration) {
37
		super(null, configuration);
37
		super(null, configuration);
38
		Utils.initAction(this, "action.removeFromView."); //$NON-NLS-1$
38
		Utils.initAction(this, "action.removeFromView."); //$NON-NLS-1$
39
		setId(TeamUIPlugin.REMOVE_FROM_VIEW_ACTION_ID);
39
	}
40
	}
40
41
41
	/* (non-Javadoc)
42
	/* (non-Javadoc)
(-)src/org/eclipse/team/internal/ui/synchronize/NavigationActionGroup.java (-1 / +8 lines)
Lines 14-19 Link Here
14
import org.eclipse.jface.action.*;
14
import org.eclipse.jface.action.*;
15
import org.eclipse.jface.viewers.AbstractTreeViewer;
15
import org.eclipse.jface.viewers.AbstractTreeViewer;
16
import org.eclipse.jface.viewers.Viewer;
16
import org.eclipse.jface.viewers.Viewer;
17
import org.eclipse.team.internal.ui.TeamUIPlugin;
17
import org.eclipse.team.internal.ui.Utils;
18
import org.eclipse.team.internal.ui.Utils;
18
import org.eclipse.team.internal.ui.synchronize.actions.ExpandAllAction;
19
import org.eclipse.team.internal.ui.synchronize.actions.ExpandAllAction;
19
import org.eclipse.team.internal.ui.synchronize.actions.NavigateAction;
20
import org.eclipse.team.internal.ui.synchronize.actions.NavigateAction;
Lines 58-64 Link Here
58
		}
59
		}
59
	}
60
	}
60
	public void fillContextMenu(IMenuManager manager) {
61
	public void fillContextMenu(IMenuManager manager) {
61
		appendToGroup(manager, ISynchronizePageConfiguration.NAVIGATE_GROUP, expandAllAction);
62
		if (manager == null || expandAllAction == null)
63
			return;
64
65
		if (manager.find(TeamUIPlugin.REMOVE_FROM_VIEW_ACTION_ID) != null)
66
			manager.insertBefore(TeamUIPlugin.REMOVE_FROM_VIEW_ACTION_ID, expandAllAction);
67
		else
68
			appendToGroup(manager, ISynchronizePageConfiguration.NAVIGATE_GROUP, expandAllAction);
62
	}
69
	}
63
	public void fillActionBars(IActionBars actionBars) {
70
	public void fillActionBars(IActionBars actionBars) {
64
		IToolBarManager manager = actionBars.getToolBarManager();
71
		IToolBarManager manager = actionBars.getToolBarManager();
(-)src/org/eclipse/team/internal/ui/synchronize/actions/RemoveFromViewAction.java (-7 / +5 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2006 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 23-41 Link Here
23
import org.eclipse.team.internal.core.subscribers.WorkingSetFilteredSyncInfoCollector;
23
import org.eclipse.team.internal.core.subscribers.WorkingSetFilteredSyncInfoCollector;
24
import org.eclipse.team.internal.ui.*;
24
import org.eclipse.team.internal.ui.*;
25
import org.eclipse.team.internal.ui.synchronize.SubscriberParticipantPage;
25
import org.eclipse.team.internal.ui.synchronize.SubscriberParticipantPage;
26
import org.eclipse.team.ui.synchronize.ISynchronizePage;
26
import org.eclipse.team.ui.synchronize.*;
27
import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration;
28
import org.eclipse.team.ui.synchronize.SynchronizeModelAction;
29
import org.eclipse.team.ui.synchronize.SynchronizeModelOperation;
30
27
31
/**
28
/**
32
 * Remove the selected elemements from the page
29
 * Remove the selected elements from the page
33
 */
30
 */
34
public class RemoveFromViewAction extends SynchronizeModelAction {
31
public class RemoveFromViewAction extends SynchronizeModelAction {
35
32
	
36
	public RemoveFromViewAction(ISynchronizePageConfiguration configuration) {
33
	public RemoveFromViewAction(ISynchronizePageConfiguration configuration) {
37
		super(null, configuration);
34
		super(null, configuration);
38
		Utils.initAction(this, "action.removeFromView."); //$NON-NLS-1$
35
		Utils.initAction(this, "action.removeFromView."); //$NON-NLS-1$
36
		setId(TeamUIPlugin.REMOVE_FROM_VIEW_ACTION_ID);
39
	}
37
	}
40
38
41
	/* (non-Javadoc)
39
	/* (non-Javadoc)

Return to bug 330797