return null;
if (!checkMergeIsPossible(repository, getShell(event)))
return null;
BasicConfigurationDialog.show(repository);
MergeTargetSelectionDialog mergeTargetSelectionDialog = new MergeTargetSelectionDialog(
getShell(event), repository);
if (mergeTargetSelectionDialog.open() == IDialogConstants.OK_ID) {
final String refName = mergeTargetSelectionDialog.getRefName();
String jobname = NLS.bind(UIText.MergeAction_JobNameMerge, refName);
final MergeOperation op = new MergeOperation(repository, refName);
op.setSquash(mergeTargetSelectionDialog.isMergeSquash());
op.setFastForwardMode(mergeTargetSelectionDialog.getFastForwardMode());
op.setCommit(mergeTargetSelectionDialog.isCommit());
Job job = new WorkspaceJob(jobname) {
@Override
public IStatus runInWorkspace(IProgressMonitor monitor) {
try {
op.execute(monitor);