Action Reactoring (AbstractOperationAction)
[egit.git] / org.eclipse.egit.ui / src / org / eclipse / egit / ui / internal / actions / SetQuickdiffBaselineAction.java
blob37a5f72db45f5ca38528b5c28079b6dec09a0213
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 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9 package org.eclipse.egit.ui.internal.actions;
11 import java.util.List;
13 import org.eclipse.egit.core.op.IEGitOperation;
14 import org.eclipse.egit.ui.UIText;
15 import org.eclipse.jgit.revwalk.RevCommit;
17 /**
18 * Changes the reference for the quickdiff
20 public class SetQuickdiffBaselineAction extends AbstractRevCommitOperationAction {
22 @Override
23 protected IEGitOperation createOperation(List<RevCommit> selection) {
24 return new QuickdiffBaselineOperation(getActiveRepository(), selection.get(0).getId().name());
27 @Override
28 protected String getJobName() {
29 return UIText.SetQuickdiffBaselineAction_setQuickdiffBaseline;