Improve error reporting in the branch dialog
[egit/imyousuf.git] / org.spearce.egit.ui / src / org / spearce / egit / ui / internal / actions / ResetQuickdiffBaselineAction.java
blobd7097bafda6c4ce47809b3aac345784fd78c8108
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.spearce.egit.ui.internal.actions;
10 import java.util.List;
12 import org.eclipse.core.resources.IWorkspaceRunnable;
13 import org.eclipse.jface.action.IAction;
14 import org.spearce.jgit.lib.Constants;
16 /**
17 * Changes the reference for the quickdiff to HEAD
19 public class ResetQuickdiffBaselineAction extends AbstractRevObjectAction {
21 @Override
22 protected IWorkspaceRunnable createOperation(IAction act, List selection) {
23 return new QuickdiffBaselineOperation(getActiveRepository(), Constants.HEAD);