Package com.intellij.openapi.vcs.annotate

Examples of com.intellij.openapi.vcs.annotate.AnnotationProvider


    if (vcs == null)
    {
      return;
    }

    final AnnotationProvider annotationProvider = vcs.getAnnotationProvider();
    if (annotationProvider == null)
    {
      return;
    }

    final Ref<FileAnnotation> fileAnnotationRef = new Ref<FileAnnotation>();
    final Ref<VcsException> exceptionRef = new Ref<VcsException>();

    final BackgroundableActionEnabledHandler handler =
      ((ProjectLevelVcsManagerImpl) plVcsManager).getBackgroundableActionHandler(
        VcsBackgroundableActions.ANNOTATE);
    handler.register(file.getPath());

    ProgressManager.getInstance()
      .run(new Task.Backgroundable(project, VcsBundle.message("retrieving.annotations"), true,
        BackgroundFromStartOption.getInstance())
      {
        public void run(@NotNull ProgressIndicator indicator)
        {
          try
          {
            fileAnnotationRef.set(annotationProvider.annotate(file));
          }
          catch (VcsException e)
          {
            exceptionRef.set(e);
          }
View Full Code Here


    AbstractVcs vcs = plVcsManager.getVcsFor(file);
    if (vcs == null)
    {
      return;
    }
    final AnnotationProvider annotationProvider = vcs.getAnnotationProvider();

    final Ref<FileAnnotation> fileAnnotationRef = new Ref<FileAnnotation>();
    final Ref<VcsException> exceptionRef = new Ref<VcsException>();

    final BackgroundableActionEnabledHandler handler =
      ((ProjectLevelVcsManagerImpl) plVcsManager).getBackgroundableActionHandler(
        VcsBackgroundableActions.ANNOTATE);
    handler.register(file.getPath());

    ProgressManager.getInstance()
      .run(new Task.Backgroundable(project, VcsBundle.message("retrieving.annotations"), true,
        BackgroundFromStartOption.getInstance())
      {
        public void run(@NotNull ProgressIndicator indicator)
        {
          try
          {
            fileAnnotationRef.set(annotationProvider.annotate(file));
          }
          catch (VcsException e)
          {
            exceptionRef.set(e);
          }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.vcs.annotate.AnnotationProvider

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.