private void ClearCache() { _selectionItems = null; _selectionItemsRecursive = null; _filenames = null; _filenamesRecursive = null; _svnItems = null; _svnItemsRecursive = null; _gitItems = null; _gitItemsRecursive = null; _selectedProjects = null; _selectedProjectsRecursive = null; _selectedHierarchies = null; _ownerProjects = null; _isSolutionExplorer = null; _miscFiles = null; _checkedMisc = false; _selectedItemsMap = null; _isSolutionSelected = null; _isSingleNodeSelection = null; _solutionFilename = null; _hashCache.Clear(); if (_disposer != null) { Disposer d = _disposer; _disposer = null; d.Dispose(); } }
public Walker(CachedEnumerable <T> cache) { if (cache == null) { throw new ArgumentNullException("cache"); } _cache = cache; }
public IEnumerable <T> GetSelection <T>() where T : class { IEnumerable enumerable; if (_selectedItemsMap != null && _selectedItemsMap.TryGetValue(typeof(T), out enumerable)) { return((IEnumerable <T>)enumerable); } IEnumerable <T> v = new CachedEnumerable <T>(InternalGetSelection <T>(), Disposer); if (_selectedItemsMap == null) { _selectedItemsMap = new Dictionary <Type, IEnumerable>(); } _selectedItemsMap.Add(typeof(T), v); return(v); }
protected IEnumerable <SelectionItem> GetSelectedItemsRecursive() { return(_selectionItemsRecursive ?? (_selectionItemsRecursive = new CachedEnumerable <SelectionItem>(InternalGetSelectedItemsRecursive(), Disposer))); }
protected IEnumerable <SccProject> GetSelectedProjectsRecursive() { return(_selectedProjectsRecursive ?? (_selectedProjectsRecursive = new CachedEnumerable <SccProject>(InternalGetSelectedProjects(true), Disposer))); }
public IEnumerable <SccHierarchy> GetSelectedHierarchies() { return(_selectedHierarchies ?? (_selectedHierarchies = new CachedEnumerable <SccHierarchy>(InternalGetSelectedHierarchies(false), Disposer))); }
public IEnumerable <SccProject> GetOwnerProjects() { return(_ownerProjects ?? (_ownerProjects = new CachedEnumerable <SccProject>(InternalGetOwnerProjects(), Disposer))); }
protected IEnumerable <SccProject> GetSelectedProjects() { return(_selectedProjects ?? (_selectedProjects = new CachedEnumerable <SccProject>(InternalGetSelectedProjects(false), Disposer))); }
protected IEnumerable <GitItem> GetSelectedGitItems() { return(_gitItems ?? (_gitItems = new CachedEnumerable <GitItem>(InternalGetSelectedGitItems(false), Disposer))); }
protected IEnumerable <GitItem> GetSelectedGitItemsRecursive() { return(_gitItemsRecursive ?? (_gitItemsRecursive = new CachedEnumerable <GitItem>(InternalGetSelectedGitItems(true), Disposer))); }
protected IEnumerable <string> GetSelectedFiles() { return(_filenames ?? (_filenames = new CachedEnumerable <string>(InternalGetSelectedFiles(false), Disposer))); }
protected IEnumerable <string> GetSelectedFilesRecursive() { return(_filenamesRecursive ?? (_filenamesRecursive = new CachedEnumerable <string>(InternalGetSelectedFiles(true), Disposer))); }
protected IEnumerable <SvnItem> GetSelectedSvnItems() { ThreadHelper.ThrowIfNotOnUIThread(); return(_svnItems ?? (_svnItems = new CachedEnumerable <SvnItem>(InternalGetSelectedSvnItems(false), Disposer))); }
protected IEnumerable <string> GetSelectedFilesRecursive() { ThreadHelper.ThrowIfNotOnUIThread(); return(_filenamesRecursive ?? (_filenamesRecursive = new CachedEnumerable <string>(InternalGetSelectedFiles(true), Disposer))); }
public IEnumerable <SccHierarchy> GetSelectedHierarchies() { ThreadHelper.ThrowIfNotOnUIThread(); return(_selectedHierarchies ?? (_selectedHierarchies = new CachedEnumerable <SccHierarchy>(InternalGetSelectedHierarchies(false), Disposer))); }
protected IEnumerable <SccProject> GetSelectedProjectsRecursive() { ThreadHelper.ThrowIfNotOnUIThread(); return(_selectedProjectsRecursive ?? (_selectedProjectsRecursive = new CachedEnumerable <SccProject>(InternalGetSelectedProjects(true), Disposer))); }
protected IEnumerable <SccProject> GetSelectedProjects() { ThreadHelper.ThrowIfNotOnUIThread(); return(_selectedProjects ?? (_selectedProjects = new CachedEnumerable <SccProject>(InternalGetSelectedProjects(false), Disposer))); }
public IEnumerable <SccProject> GetOwnerProjects() { ThreadHelper.ThrowIfNotOnUIThread(); return(_ownerProjects ?? (_ownerProjects = new CachedEnumerable <SccProject>(InternalGetOwnerProjects(), Disposer))); }
protected IEnumerable <SvnItem> GetSelectedSvnItemsRecursive() { ThreadHelper.ThrowIfNotOnUIThread(); return(_svnItemsRecursive ?? (_svnItemsRecursive = new CachedEnumerable <SvnItem>(InternalGetSelectedSvnItems(true), Disposer))); }