Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0c9fcd4d94d17954eab95b012ce79db39a6896c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************************************
 * Copyright (c) 2010 SAP AG.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Stefan Lay (SAP AG) - initial implementation
 *******************************************************************************/
package org.eclipse.egit.ui.internal.dialogs;

import org.eclipse.egit.ui.UIText;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;

/**
 * Dialog for selecting a merge target.
 *
 */
public class MergeTargetSelectionDialog extends BranchSelectionDialog {

	/**
	 * Construct a dialog to select a branch to reset to or check out
	 *
	 * @param parentShell
	 * @param repo
	 */
	public MergeTargetSelectionDialog(Shell parentShell, Repository repo) {
		super(parentShell, repo);
	}

	@Override
	protected void createButtonsForButtonBar(Composite parent) {
		confirmationBtn = createButton(parent, IDialogConstants.OK_ID,
				UIText.MergeTargetSelectionDialog_ButtonMerge, true);
		createButton(parent, IDialogConstants.CANCEL_ID,
				IDialogConstants.CANCEL_LABEL, false);
	}

	@Override
	protected String getRefsLabel() {
		return UIText.MergeTargetSelectionDialog_SelectRef
				+ " " + UIText.MergeTargetSelectionDialog_OnlyFastForward; //$NON-NLS-1$
	}

	@Override
	protected String getTitle() {
		return UIText.MergeTargetSelectionDialog_TitleMerge;
	}

}

Back to the top