Exemplo n.º 1
0
 void ChangesetsViewMenu.IMenuOperations.DiffBranch()
 {
     LaunchDiffOperations.DiffBranch(
         ChangesetsSelection.GetSelectedRepository(mChangesetsListView),
         ChangesetsSelection.GetSelectedChangeset(mChangesetsListView),
         mIsGluonMode);
 }
Exemplo n.º 2
0
 void IChangesetMenuOperations.DiffChangeset()
 {
     LaunchDiffOperations.DiffChangeset(
         ChangesetsSelection.GetSelectedRepository(mChangesetsListView),
         ChangesetsSelection.GetSelectedChangeset(mChangesetsListView),
         mIsGluonMode);
 }
Exemplo n.º 3
0
        void OnSelectionChanged()
        {
            if (!ChangesetsSelection.IsSingleSelection(mChangesetsListView))
            {
                return;
            }

            mDiffPanel.UpdateInfo(
                MountPointWithPath.BuildWorkspaceRootMountPoint(
                    ChangesetsSelection.GetSelectedRepository(mChangesetsListView)),
                ChangesetsSelection.GetSelectedChangeset(mChangesetsListView));
        }
Exemplo n.º 4
0
        void IChangesetMenuOperations.DiffSelectedChangesets()
        {
            List <RepObjectInfo> selectedChangesets =
                ChangesetsSelection.GetSelectedRepObjectInfos(mChangesetsListView);

            if (selectedChangesets.Count < 2)
            {
                return;
            }

            LaunchDiffOperations.DiffSelectedChangesets(
                ChangesetsSelection.GetSelectedRepository(mChangesetsListView),
                (ChangesetExtendedInfo)selectedChangesets[0],
                (ChangesetExtendedInfo)selectedChangesets[1],
                mIsGluonMode);
        }