コード例 #1
0
        public void UpdateDeletedAddins(IProgressStatus monitor, AddinScanFolderInfo folderInfo, AddinScanResult scanResult)
        {
            ArrayList missing = folderInfo.GetMissingAddins();

            if (missing.Count > 0)
            {
                if (Directory.Exists(folderInfo.Folder))
                {
                    scanResult.ModifiedFolderInfos.Add(folderInfo);
                }
                scanResult.ChangesFound = true;
                if (scanResult.CheckOnly)
                {
                    return;
                }

                foreach (AddinFileInfo info in missing)
                {
                    if (info.IsRoot)
                    {
                        database.UninstallRootAddin(monitor, info.AddinId, info.File, scanResult);
                    }
                    else
                    {
                        database.UninstallAddin(monitor, info.AddinId, scanResult);
                    }
                }
            }
        }
コード例 #2
0
        public void UpdateDeletedAddins(IProgressStatus monitor, AddinScanFolderInfo folderInfo)
        {
            var missing = folderInfo.GetMissingAddins(FileSystem);

            if (missing.Count > 0)
            {
                if (FileSystem.DirectoryExists(folderInfo.Folder))
                {
                    scanResult.RegisterModifiedFolderInfo(folderInfo);
                }
                scanResult.ChangesFound = true;
                if (scanResult.CheckOnly)
                {
                    return;
                }

                foreach (AddinFileInfo info in missing)
                {
                    database.UninstallAddin(monitor, info.Domain, info.AddinId, info.File, scanResult);
                }
            }
        }
コード例 #3
0
ファイル: AddinScanner.cs プロジェクト: JamesChan/mono-addins
        public void UpdateDeletedAddins(IProgressStatus monitor, AddinScanFolderInfo folderInfo, AddinScanResult scanResult)
        {
            ArrayList missing = folderInfo.GetMissingAddins (fs);
            if (missing.Count > 0) {
                if (fs.DirectoryExists (folderInfo.Folder))
                    scanResult.RegisterModifiedFolderInfo (folderInfo);
                scanResult.ChangesFound = true;
                if (scanResult.CheckOnly)
                    return;

                foreach (AddinFileInfo info in missing) {
                    database.UninstallAddin (monitor, info.Domain, info.AddinId, info.File, scanResult);
                }
            }
        }
コード例 #4
0
		public void UpdateDeletedAddins (IProgressStatus monitor, AddinScanFolderInfo folderInfo, AddinScanResult scanResult)
		{
			ArrayList missing = folderInfo.GetMissingAddins ();
			if (missing.Count > 0) {
				if (Directory.Exists (folderInfo.Folder))
					scanResult.ModifiedFolderInfos.Add (folderInfo);
				scanResult.ChangesFound = true;
				if (scanResult.CheckOnly)
					return;
					
				foreach (AddinFileInfo info in missing) {
					if (info.IsRoot)
						database.UninstallRootAddin (monitor, info.AddinId, info.File, scanResult);
					else
						database.UninstallAddin (monitor, info.AddinId, scanResult);
				}
			}
		}