Examples of showHistoryFor()


Examples of org.eclipse.team.ui.history.IHistoryView.showHistoryFor()

    if (!repository.isBare()) {
      String sourcePath = revision.getSourcePath();
      File file = new File(repository.getWorkTree(), sourcePath);
      BlameHistoryPageInput input = new BlameHistoryPageInput(repository,
          revision.getCommit(), file);
      part.showHistoryFor(input);
    } else {
      HistoryPageInput input = new BlameHistoryPageInput(repository,
          revision.getCommit());
      part.showHistoryFor(input);
    }
View Full Code Here

Examples of org.eclipse.team.ui.history.IHistoryView.showHistoryFor()

          revision.getCommit(), file);
      part.showHistoryFor(input);
    } else {
      HistoryPageInput input = new BlameHistoryPageInput(repository,
          revision.getCommit());
      part.showHistoryFor(input);
    }
  }

  private void blameParent(RevCommit parent, Diff diff, Integer sourceLine) {
    try {
View Full Code Here

Examples of org.eclipse.team.ui.history.IHistoryView.showHistoryFor()

    // Show history view for path
    try {
      IHistoryView part = (IHistoryView) page.showView(
          IHistoryView.VIEW_ID, null, IWorkbenchPage.VIEW_VISIBLE);
      HistoryPageInput input = createHistoryPageInputWhenEditorOpened();
      part.showHistoryFor(input);
    } catch (PartInitException e) {
      Activator.handleError("Error displaying blame annotations", e, //$NON-NLS-1$
          false);
    }
View Full Code Here

Examples of org.eclipse.team.ui.history.IHistoryView.showHistoryFor()

        input = new BlameHistoryPageInput(revision.getRepository(),
            revision.getCommit(), nonResourceFile);
      else
        input = new BlameHistoryPageInput(revision.getRepository(),
            revision.getCommit());
      part.showHistoryFor(input);
    }

  }

  private Repository repository;
View Full Code Here

Examples of org.eclipse.team.ui.history.IHistoryView.showHistoryFor()

      try {
        IHistoryView view = (IHistoryView) PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getActivePage()
            .showView(IHistoryView.VIEW_ID);
        view.showHistoryFor(repoCommit);
      } catch (PartInitException e) {
        throw new ExecutionException(e.getMessage(), e);
      }
    }
    return null;
View Full Code Here

Examples of org.eclipse.team.ui.history.IHistoryView.showHistoryFor()

      view = (IHistoryView) PlatformUI.getWorkbench()
          .getActiveWorkbenchWindow().getActivePage().showView(
              IHistoryView.VIEW_ID);
      IResource[] resources = getSelectedResources(event);
      if (resources.length == 1) {
        view.showHistoryFor(resources[0]);
        return null;
      }
      HistoryPageInput list = new HistoryPageInput(repo, resources);
      view.showHistoryFor(list);
    } catch (PartInitException e) {
View Full Code Here

Examples of org.eclipse.team.ui.history.IHistoryView.showHistoryFor()

      if (resources.length == 1) {
        view.showHistoryFor(resources[0]);
        return null;
      }
      HistoryPageInput list = new HistoryPageInput(repo, resources);
      view.showHistoryFor(list);
    } catch (PartInitException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.