Git Repositories View: Simple fetch and push
[egit.git] / org.eclipse.egit.ui / src / org / eclipse / egit / ui / internal / actions / Untrack.java
blobddfd9f2addedbb553b03db983fb93b306853bf97
1 /*******************************************************************************
2 * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
3 * Copyright (C) 2007, Shawn O. Pearce <spearce@spearce.org>
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *******************************************************************************/
10 package org.eclipse.egit.ui.internal.actions;
12 import java.util.List;
14 import org.eclipse.core.resources.IResource;
15 import org.eclipse.egit.core.op.IEGitOperation;
16 import org.eclipse.egit.core.op.UntrackOperation;
17 import org.eclipse.egit.ui.UIText;
19 /**
20 * An action to remove files from a Git repository. The removal does not alter
21 * history, only future commits on the same branch will be affected.
23 * @see UntrackOperation
25 public class Untrack extends AbstractResourceOperationAction {
26 protected IEGitOperation createOperation(final List<IResource> sel) {
27 return sel.isEmpty() ? null : new UntrackOperation(sel);
30 @Override
31 protected String getJobName() {
32 return UIText.Untrack_untrack;