rename org.spearce.egit -> org.eclipse.egit and bump version to 0.5.0
[egit/imyousuf.git] / org.eclipse.egit.ui / src / org / eclipse / egit / ui / internal / actions / MixedResetToRevisionAction.java
blob34feade92e5cfc93ad723b105760173654851cdb
1 /*******************************************************************************
2 * Copyright (C) 2008, Robin Rosenberg <robin.rosenberg@dewire.com>
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * See LICENSE for the full license text, also available.
7 *******************************************************************************/
8 package org.eclipse.egit.ui.internal.actions;
10 import java.util.List;
12 import org.eclipse.core.resources.IWorkspaceRunnable;
13 import org.eclipse.egit.core.op.ResetOperation;
14 import org.eclipse.jface.action.IAction;
15 import org.spearce.jgit.lib.AnyObjectId;
17 /**
18 * Mixed reset to selected revision
20 public class MixedResetToRevisionAction extends AbstractRevObjectAction {
22 @Override
23 protected IWorkspaceRunnable createOperation(IAction act, List selection) {
24 return new ResetOperation(getActiveRepository(),
25 ((AnyObjectId) selection.get(0)).name(),
26 ResetOperation.ResetType.MIXED);