View | Details | Raw Unified | Return to bug 32523
Collapse All | Expand All

(-)src/org/eclipse/team/internal/ccvs/ui/repo/RemoveRootAction.java (-1 / +1 lines)
Lines 46-52 Link Here
46
	 */
46
	 */
47
	protected ICVSRepositoryLocation[] getSelectedRemoteRoots() {
47
	protected ICVSRepositoryLocation[] getSelectedRemoteRoots() {
48
		ArrayList resources = null;
48
		ArrayList resources = null;
49
		if (!selection.isEmpty()) {
49
		if (!(selection==null) && !selection.isEmpty()) {
50
			resources = new ArrayList();
50
			resources = new ArrayList();
51
			Iterator elements = ((IStructuredSelection) selection).iterator();
51
			Iterator elements = ((IStructuredSelection) selection).iterator();
52
			while (elements.hasNext()) {
52
			while (elements.hasNext()) {
(-)src/org/eclipse/team/internal/ccvs/ui/repo/RepositoriesView.java (-2 / +3 lines)
Lines 143-148 Link Here
143
			}
143
			}
144
		});
144
		});
145
		removeRootAction = new RemoveRootAction(viewer.getControl().getShell());
145
		removeRootAction = new RemoveRootAction(viewer.getControl().getShell());
146
		removeRootAction.selectionChanged((IStructuredSelection)null);
147
		IActionBars bars = getViewSite().getActionBars();
148
		bars.setGlobalActionHandler(IWorkbenchActionConstants.DELETE, removeRootAction);
146
		super.contributeActions();
149
		super.contributeActions();
147
	}
150
	}
148
	
151
	
Lines 171-178 Link Here
171
		if (newAnonAction != null)
174
		if (newAnonAction != null)
172
			sub.add(newAnonAction);
175
			sub.add(newAnonAction);
173
		manager.add(removeRootAction);
176
		manager.add(removeRootAction);
174
		IActionBars bars = getViewSite().getActionBars();
175
		bars.setGlobalActionHandler(IWorkbenchActionConstants.DELETE, removeRootAction);
176
	}
177
	}
177
	
178
	
178
	/*
179
	/*

Return to bug 32523