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

            mDiffPanel.UpdateInfo(
                MountPointWithPath.BuildWorkspaceRootMountPoint(
                    ChangesetsSelection.GetSelectedRepository(mChangesetsListView)),
                ChangesetsSelection.GetSelectedChangeset(mChangesetsListView));
        }
Beispiel #4
0
        void OnSelectionChanged()
        {
            List <RepObjectInfo> selectedChangesets = ChangesetsSelection.
                                                      GetSelectedRepObjectInfos(mChangesetsListView);

            if (selectedChangesets.Count != 1)
            {
                return;
            }

            mDiffPanel.UpdateInfo(
                MountPointWithPath.BuildWorkspaceRootMountPoint(
                    ChangesetsSelection.GetSelectedRepository(mChangesetsListView)),
                (ChangesetExtendedInfo)selectedChangesets[0]);
        }
Beispiel #5
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);
        }