Package org.eclipse.egit.ui.internal.history

Examples of org.eclipse.egit.ui.internal.history.CommitSelectionDialog


    final Repository repo = getRepository(true, event);
    if (repo == null)
      return null;
    IResource[] resources = getSelectedResources(event);

    CommitSelectionDialog dlg = new CommitSelectionDialog(getShell(event),
        repo, resources);
    if (dlg.open() != Window.OK)
      return null;

    final String commitId = dlg.getCommitId().getName();

    IWorkbenchPage workBenchPage = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage();
    try {
      CompareUtils.compare(resources, repo, Constants.HEAD, commitId,
View Full Code Here


public class ReplaceWithCommitActionHandler extends DiscardChangesActionHandler {

  @Override
  protected String gatherRevision(ExecutionEvent event) throws ExecutionException {
    IResource[] resources = gatherResourceToOperateOn(event);
    CommitSelectionDialog dlg = new CommitSelectionDialog(getShell(event),
        getRepository(true, event), resources);
    if (dlg.open() == Window.OK)
      return dlg.getCommitId().name();
    else
      throw new OperationCanceledException();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.history.CommitSelectionDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.