GetSelectedChanges() static private méthode

static private GetSelectedChanges ( Unity.PlasticSCM.Editor.Views.PendingChanges.PendingChangesTreeView treeView ) : List
treeView Unity.PlasticSCM.Editor.Views.PendingChanges.PendingChangesTreeView
Résultat List
        void IPendingChangesMenuOperations.UndoChanges()
        {
            List <ChangeInfo> changesToUndo = PendingChangesSelection
                                              .GetSelectedChanges(mPendingChangesTreeView);

            List <ChangeInfo> dependenciesCandidates =
                mPendingChangesTreeView.GetDependenciesCandidates(changesToUndo, true);

            UndoChangesForMode(mIsGluonMode, changesToUndo, dependenciesCandidates);
        }
Exemple #2
0
        void IPendingChangesMenuOperations.ApplyLocalChanges()
        {
            List <ChangeInfo> selectedChanges = PendingChangesSelection
                                                .GetSelectedChanges(mPendingChangesTreeView);

            if (selectedChanges.Count == 0)
            {
                return;
            }

            ApplyLocalChangesOperation operation = new ApplyLocalChangesOperation(
                mWkInfo, mPlasticClient, mPlasticClient,
                mProgressControls, mDeveloperNewIncomingChangesUpdater);

            operation.ApplyLocalChanges(
                selectedChanges,
                PendingChangesSelection.GetAllChanges(mPendingChangesTreeView));
        }
        internal static List<string> GetSelectedMetaPaths(
            PendingChangesTreeView treeView)
        {
            List<ChangeInfo> selectedChanges = PendingChangesSelection
                .GetSelectedChanges(treeView);

            List<string> result = new List<string>();

            foreach (ChangeInfo change in selectedChanges)
            {
                string path = change.GetFullPath();

                if (!MetaPath.IsMetaPath(path))
                    continue;

                result.Add(path);
            }

            return result;
        }