Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
            public Walker(CachedEnumerable <T> cache)
            {
                if (cache == null)
                {
                    throw new ArgumentNullException("cache");
                }

                _cache = cache;
            }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 protected IEnumerable <SelectionItem> GetSelectedItemsRecursive()
 {
     return(_selectionItemsRecursive ?? (_selectionItemsRecursive = new CachedEnumerable <SelectionItem>(InternalGetSelectedItemsRecursive(), Disposer)));
 }
Exemplo n.º 5
0
 protected IEnumerable <SccProject> GetSelectedProjectsRecursive()
 {
     return(_selectedProjectsRecursive ?? (_selectedProjectsRecursive = new CachedEnumerable <SccProject>(InternalGetSelectedProjects(true), Disposer)));
 }
Exemplo n.º 6
0
 public IEnumerable <SccHierarchy> GetSelectedHierarchies()
 {
     return(_selectedHierarchies ?? (_selectedHierarchies = new CachedEnumerable <SccHierarchy>(InternalGetSelectedHierarchies(false), Disposer)));
 }
Exemplo n.º 7
0
 public IEnumerable <SccProject> GetOwnerProjects()
 {
     return(_ownerProjects ?? (_ownerProjects = new CachedEnumerable <SccProject>(InternalGetOwnerProjects(), Disposer)));
 }
Exemplo n.º 8
0
 protected IEnumerable <SccProject> GetSelectedProjects()
 {
     return(_selectedProjects ?? (_selectedProjects = new CachedEnumerable <SccProject>(InternalGetSelectedProjects(false), Disposer)));
 }
Exemplo n.º 9
0
 protected IEnumerable <GitItem> GetSelectedGitItems()
 {
     return(_gitItems ?? (_gitItems = new CachedEnumerable <GitItem>(InternalGetSelectedGitItems(false), Disposer)));
 }
Exemplo n.º 10
0
 protected IEnumerable <GitItem> GetSelectedGitItemsRecursive()
 {
     return(_gitItemsRecursive ?? (_gitItemsRecursive = new CachedEnumerable <GitItem>(InternalGetSelectedGitItems(true), Disposer)));
 }
Exemplo n.º 11
0
 protected IEnumerable <string> GetSelectedFiles()
 {
     return(_filenames ?? (_filenames = new CachedEnumerable <string>(InternalGetSelectedFiles(false), Disposer)));
 }
Exemplo n.º 12
0
 protected IEnumerable <string> GetSelectedFilesRecursive()
 {
     return(_filenamesRecursive ?? (_filenamesRecursive = new CachedEnumerable <string>(InternalGetSelectedFiles(true), Disposer)));
 }
Exemplo n.º 13
0
 protected IEnumerable <SvnItem> GetSelectedSvnItems()
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     return(_svnItems ?? (_svnItems = new CachedEnumerable <SvnItem>(InternalGetSelectedSvnItems(false), Disposer)));
 }
Exemplo n.º 14
0
 protected IEnumerable <string> GetSelectedFilesRecursive()
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     return(_filenamesRecursive ?? (_filenamesRecursive = new CachedEnumerable <string>(InternalGetSelectedFiles(true), Disposer)));
 }
Exemplo n.º 15
0
 public IEnumerable <SccHierarchy> GetSelectedHierarchies()
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     return(_selectedHierarchies ?? (_selectedHierarchies = new CachedEnumerable <SccHierarchy>(InternalGetSelectedHierarchies(false), Disposer)));
 }
Exemplo n.º 16
0
 protected IEnumerable <SccProject> GetSelectedProjectsRecursive()
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     return(_selectedProjectsRecursive ?? (_selectedProjectsRecursive = new CachedEnumerable <SccProject>(InternalGetSelectedProjects(true), Disposer)));
 }
Exemplo n.º 17
0
 protected IEnumerable <SccProject> GetSelectedProjects()
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     return(_selectedProjects ?? (_selectedProjects = new CachedEnumerable <SccProject>(InternalGetSelectedProjects(false), Disposer)));
 }
Exemplo n.º 18
0
 public IEnumerable <SccProject> GetOwnerProjects()
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     return(_ownerProjects ?? (_ownerProjects = new CachedEnumerable <SccProject>(InternalGetOwnerProjects(), Disposer)));
 }
Exemplo n.º 19
0
 protected IEnumerable <SvnItem> GetSelectedSvnItemsRecursive()
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     return(_svnItemsRecursive ?? (_svnItemsRecursive = new CachedEnumerable <SvnItem>(InternalGetSelectedSvnItems(true), Disposer)));
 }