コード例 #1
0
 internal static void SaveItems(string[] fileNames)
 {
     if (!IsActive)
     {
         return;
     }
     TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.SaveItems;  fileNames={0}{1}",
                                 (object)fileNames, (object)string.Empty);
     HandleComReturn(GetProvider().SaveItems(fileNames));
 }
コード例 #2
0
 internal static void RefreshProject(IVsHierarchy projectHierarchy)
 {
     if (!IsActive)
     {
         return;
     }
     TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshProject starts");
     HandleComReturn(GetProvider().RefreshProject(projectHierarchy));
     TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshProject ends");
 }
コード例 #3
0
 internal static void RefreshGlyphs(string[] fileNames, bool immediate = false)
 {
     if (!IsActive)
     {
         return;
     }
     TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration,
                                 "VssProvider.RefreshGlyphs starts; fileNames={0}{1}", (object)fileNames, (object)string.Empty);
     HandleComReturn(GetProvider().RefreshGlyphs(fileNames, immediate));
     TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshGlyphs ends");
 }
コード例 #4
0
        internal static bool IsFolderPartOfSolution(string fullFolderPath)
        {
            var isPartOfSolution = false;

            if (IsActive)
            {
                HandleComReturn(GetProvider().IsFolderPartOfSolution(fullFolderPath, out isPartOfSolution));
                TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration,
                                            "VssProvider.IsFolderPartOfSolution; fullFolderPath={0} isControlled={1}", (object)fullFolderPath,
                                            (object)(isPartOfSolution ? 1 : 0));
            }
            return(isPartOfSolution);
        }
コード例 #5
0
        internal static bool IsSolutionControlledByHatteras(string solutionFile)
        {
            var isControlled = false;

            if (IsActive)
            {
                HandleComReturn(GetProvider().IsSolutionControlledByHatteras(solutionFile, out isControlled));
                TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration,
                                            "VssProvider.IsSolutionControlledByHatteras; solutionFile={0} isControlled={1}", (object)solutionFile,
                                            (object)(isControlled ? 1 : 0));
            }
            return(isControlled);
        }
コード例 #6
0
 internal static string[] GetExcludedItemsForProject(string projectFile)
 {
     string[] fileNames = null;
     if (IsActive)
     {
         TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration,
                                     "VssProvider.GetExcludedItemsForProject starts;  projectFile={0}", (object)projectFile);
         HandleComReturn(GetProvider().GetExcludedItemsForProject(projectFile, out fileNames));
         TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration,
                                     "VssProvider.GetExcludedItemsForProject ends;  fileNames={0}{1}", (object)fileNames, (object)string.Empty);
     }
     return(fileNames ?? new string[0]);
 }
コード例 #7
0
        //internal static void RefreshStatus()
        //{
        //	if (!VssProvider.IsActive)
        //		return;
        //	TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshStatus starts");
        //	SolutionManager.Instance.ClearAllStatusCaches();
        //	VssProvider.HandleComReturn(VssProvider.GetProvider().RefreshStatus());
        //	SolutionManager.Instance.RefreshStatusOfOpenedDocuments();
        //	TeamFoundationTrace.Info(VCTraceKeywordSets.SolutionIntegration, "VssProvider.RefreshStatus ends");
        //}

        internal static void GetSelectedItemsList(VersionControlCommand command, out string[] fileNames)
        {
            fileNames = new string[0];
            if (!IsActive)
            {
                return;
            }
            HandleComReturn(GetProvider().GetSelectedItemsList(command, out fileNames));
            TeamFoundationTrace.Verbose(VCTraceKeywordSets.SolutionIntegration, "VssProvider.GetSelectedItemsList");
            if (fileNames != null)
            {
                return;
            }
            fileNames = new string[0];
        }