Examples of ViewMemberHistoryAPICommand


Examples of org.intellij.vcs.mks.sicommands.api.ViewMemberHistoryAPICommand


    }

  public void testIDEACommand() {
        ViewMemberHistoryAPICommand command =
        new ViewMemberHistoryAPICommand(new ArrayList<VcsException>(), getMksCLIConfiguration(),
                        MEMBER_FOR_HISTORY)
        ;
    command.execute();
    for (MksMemberRevisionInfo revisionInfo : command.getRevisionsInfo()) {
      System.out.println(revisionInfo);
    }
    command =
        new ViewMemberHistoryAPICommand(new ArrayList<VcsException>(), getMksCLIConfiguration(),
                        MEMBER_FOR_HISTORY)
        ;
    command.execute();
    for (MksMemberRevisionInfo revisionInfo : command.getRevisionsInfo()) {
      System.out.println(revisionInfo);
    }


  }
View Full Code Here

Examples of org.intellij.vcs.mks.sicommands.api.ViewMemberHistoryAPICommand

        return (VcsRevisionNumber.NULL == state.workingRevision) ? null : state.workingRevision;

    }

    private List<VcsFileRevision> getRevisions(FilePath filePath) {
        final ViewMemberHistoryAPICommand command =
                new ViewMemberHistoryAPICommand(new ArrayList<VcsException>(), vcs, filePath.getPath());
        command.execute();
        if (command.foundError()) {
            for (VcsException error : command.errors) {
                if (GetRevisionInfo.NOT_A_MEMBER.equals(error.getMessage())) {
                    Runnable runnable = new Runnable() {
                        public void run() {
                    Messages.showMessageDialog("Not (or not any more) a member", "title",
                            Messages.getInformationIcon());
                        }
                    };
                    MksVcs.invokeLaterOnEventDispatchThread(runnable);
                } else {
                    LOGGER.warn(error);
                }
            }
        }
        final List<MksMemberRevisionInfo> revisions = command.getRevisionsInfo();
        final ArrayList<VcsFileRevision> vcsRevisions = new ArrayList<VcsFileRevision>(revisions.size());
        for (MksMemberRevisionInfo revision : revisions) {
            vcsRevisions.add(new MksVcsFileRevision(vcs, filePath, revision));
        }
        return vcsRevisions;
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.