diff options
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/MergeTargetSelectionDialog.java')
-rw-r--r-- | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/MergeTargetSelectionDialog.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/MergeTargetSelectionDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/MergeTargetSelectionDialog.java new file mode 100644 index 0000000000..0c9fcd4d94 --- /dev/null +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/MergeTargetSelectionDialog.java @@ -0,0 +1,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; + } + +} |