Package com.intellij.openapi.vcs.versionBrowser

Examples of com.intellij.openapi.vcs.versionBrowser.CommittedChangeList


{
  @Override
  protected DefaultActionGroup createActionGroup(AnActionEvent e)
  {
    ChangeList[] changeLists = e.getData(VcsDataKeys.CHANGE_LISTS);
    CommittedChangeList firstChangeList = ((changeLists == null)
      || (changeLists.length == 0) || (!(changeLists[0] instanceof CommittedChangeList))) ? null :
      (CommittedChangeList) changeLists[0];

    DefaultActionGroup actionGroup = new DefaultActionGroup();
    actionGroup.add(new CreateReviewAction(false, firstChangeList));
View Full Code Here


    bnVcsBeforeRev.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        CommittedChangeList changeList = selectChangeList();
        if (changeList != null)
        {
          tfVcsBeforeRev.setText(String.valueOf(changeList.getNumber()));
        }
      }
    });
    bnVcsAfterRev.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        CommittedChangeList changeList = selectChangeList();
        if (changeList != null)
        {
            try {
                if (changeList instanceof GitCommittedChangeList) {
                    final VcsRevisionNumber revisionNumber = ((GitCommittedChangeList) changeList).getRevisionNumber();
                    tfVcsAfterRev.setText(null == revisionNumber ? null : revisionNumber.asString());
                } else {
                    tfVcsAfterRev.setText(String.valueOf(changeList.getNumber()));
                }
            } catch (NoClassDefFoundError ex) {
                tfVcsAfterRev.setText(String.valueOf(changeList.getNumber()));
            }
        }
      }
    });
  }
View Full Code Here

    bnVcsBeforeRev.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        CommittedChangeList changeList = selectChangeList();
        if (changeList != null)
        {
          tfVcsBeforeRev.setText(String.valueOf(changeList.getNumber()));
        }
      }
    });
    bnVcsAfterRev.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        CommittedChangeList changeList = selectChangeList();
        if (changeList != null)
        {
          tfVcsAfterRev.setText(String.valueOf(changeList.getNumber()));
        }
      }
    });
  }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.vcs.versionBrowser.CommittedChangeList

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.