Package org.eclipse.egit.ui.internal.dialogs

Examples of org.eclipse.egit.ui.internal.dialogs.CompareTreeView


    return resources;
  }

  private static void openGitTreeCompare(IResource[] resources,
      String srcRev, String dstRev, boolean includeLocal) {
    CompareTreeView view;
    try {
      view = (CompareTreeView) PlatformUI.getWorkbench()
          .getActiveWorkbenchWindow().getActivePage()
          .showView(CompareTreeView.ID);
      if (includeLocal)
        view.setInput(resources, dstRev);
      else
        view.setInput(resources, srcRev, dstRev);
    } catch (PartInitException e) {
      Activator.handleError(e.getMessage(), e, true);
    }
  }
View Full Code Here


        final String commit2Path = getRenamedPath(gitPath, commit2);

        CompareUtils.openInCompare(commit1, commit2, commit1Path,
            commit2Path, repo, workBenchPage);
      } else if (input instanceof IResource) {
        CompareTreeView view;
        try {
          view = (CompareTreeView) PlatformUI.getWorkbench()
              .getActiveWorkbenchWindow().getActivePage()
              .showView(CompareTreeView.ID);
          view.setInput(new IResource[] { (IResource) input },
              commit1.getId().name(), commit2.getId().name());
        } catch (PartInitException e) {
          Activator.handleError(e.getMessage(), e, true);
        }
      } else if (input == null) {
        CompareTreeView view;
        try {
          view = (CompareTreeView) PlatformUI.getWorkbench()
              .getActiveWorkbenchWindow().getActivePage()
              .showView(CompareTreeView.ID);
          view.setInput(repository, commit1.getId().name(), commit2
              .getId().name());
        } catch (PartInitException e) {
          Activator.handleError(e.getMessage(), e, true);
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.dialogs.CompareTreeView

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.