Base class for all tree node types.
Inheritance: Microsoft.VisualStudio.ExtensionsExplorer.UI.VsExtensionsProvider, ILogger, IDisposable
Beispiel #1
0
 public PackageItem(PackagesProviderBase provider, IPackage package, IEnumerable <Project> referenceProjectNames, bool isUpdateItem = false)
 {
     _provider              = provider;
     _packageIdentity       = package;
     _isUpdateItem          = isUpdateItem;
     _isPrerelease          = !package.IsReleaseVersion();
     _referenceProjectNames = new ObservableCollection <Project>(referenceProjectNames);
 }
Beispiel #2
0
 public PackageItem(PackagesProviderBase provider, IPackage package, IEnumerable<Project> referenceProjectNames, bool isUpdateItem = false)
 {
     _provider = provider;
     _packageIdentity = package;
     _isUpdateItem = isUpdateItem;
     _isPrerelease = !package.IsReleaseVersion();
     _referenceProjectNames = new ObservableCollection<Project>(referenceProjectNames);
 }
        protected PackagesTreeNodeBase(IVsExtensionsTreeNode parent, PackagesProviderBase provider)
        {
            Debug.Assert(provider != null);

            Parent   = parent;
            Provider = provider;
            PageSize = DefaultItemsPerPage;
        }
Beispiel #4
0
        protected PackagesTreeNodeBase(IVsExtensionsTreeNode parent, PackagesProviderBase provider)
        {
            Debug.Assert(provider != null);

            Parent = parent;
            Provider = provider;
            PageSize = DefaultItemsPerPage;
        }
 public OnlineTreeNode(
     PackagesProviderBase provider,
     string category,
     IVsExtensionsTreeNode parent,
     IPackageRepository repository) :
     base(provider, category, parent, repository)
 {
 }
Beispiel #6
0
 public PackageItem(PackagesProviderBase provider, IPackage package, IEnumerable <Project> referenceProjectNames, SemanticVersion oldPackageVersion = null)
 {
     _provider              = provider;
     _packageIdentity       = package;
     _isUpdateItem          = oldPackageVersion != null;
     _oldPackageVersion     = oldPackageVersion;
     _isPrerelease          = !package.IsReleaseVersion();
     _referenceProjectNames = new ObservableCollection <Project>(referenceProjectNames);
 }
Beispiel #7
0
        public EmptyTreeNode(PackagesProviderBase provider, string category, IVsExtensionsTreeNode parent)
            : base(parent, provider)
        {
            if (category == null) {
                throw new ArgumentNullException("category");
            }

            _category = category;
        }
        protected PackagesTreeNodeBase(IVsExtensionsTreeNode parent, PackagesProviderBase provider, bool collapseVersions = true)
        {
            Debug.Assert(provider != null);

            _collapseVersions = collapseVersions;
            Parent            = parent;
            Provider          = provider;
            PageSize          = DefaultItemsPerPage;
        }
Beispiel #9
0
 public PackageItem(PackagesProviderBase provider, IPackage package, IEnumerable<Project> referenceProjectNames, SemanticVersion oldPackageVersion = null)
 {
     _provider = provider;
     _packageIdentity = package;
     _isUpdateItem = oldPackageVersion != null;
     _oldPackageVersion = oldPackageVersion;
     _isPrerelease = !package.IsReleaseVersion();
     _referenceProjectNames = new ObservableCollection<Project>(referenceProjectNames);
 }
Beispiel #10
0
 public UpdatesTreeNode(
     PackagesProviderBase provider,
     string category,
     IVsExtensionsTreeNode parent,
     IPackageRepository localRepository,
     IPackageRepository sourceRepository) :
     base(provider, category, parent, sourceRepository)
 {
     _localRepository = localRepository;
 }
Beispiel #11
0
        /// <summary>
        /// The reference item is used within the Add Package dialog.
        /// It will "house" the actual reference item that we'll use for the act of adding references
        /// </summary>
        public PackageItem(PackagesProviderBase provider, IPackage package, BitmapSource thumbnail)
        {
            _provider        = provider;
            _packageIdentity = package;

            Priority             = 0;
            ThumbnailImage       = thumbnail;
            MediumThumbnailImage = thumbnail;
            SmallThumbnailImage  = thumbnail;
        }
Beispiel #12
0
        public EmptyTreeNode(PackagesProviderBase provider, string category, IVsExtensionsTreeNode parent) :
            base(parent, provider)
        {
            if (category == null)
            {
                throw new ArgumentNullException("category");
            }

            _category = category;
        }
Beispiel #13
0
 public UpdatesTreeNode(
     PackagesProviderBase provider,
     string category,
     IVsExtensionsTreeNode parent,
     IPackageRepository localRepository,
     IPackageRepository sourceRepository) :
     base(provider, category, parent, sourceRepository)
 {
     _localRepository = localRepository;
 }
Beispiel #14
0
        /// <summary>
        /// The reference item is used within the Add Package dialog.
        /// It will "house" the actual reference item that we'll use for the act of adding references
        /// </summary>
        public PackageItem(PackagesProviderBase provider, IPackage package, BitmapSource thumbnail)
        {
            _provider = provider;
            _packageIdentity = package;

            Priority = 0;
            ThumbnailImage = thumbnail;
            MediumThumbnailImage = thumbnail;
            SmallThumbnailImage = thumbnail;
        }
Beispiel #15
0
        public PackagesSearchNode(PackagesProviderBase provider, IVsExtensionsTreeNode parent, PackagesTreeNodeBase baseNode, string searchText)
            : base(parent, provider)
        {
            if (baseNode == null) {
                throw new ArgumentNullException("baseNode");
            }

            _searchText = searchText;
            _baseNode = baseNode;

            // Mark this node as a SearchResults node to assist navigation in ExtensionsExplorer
            IsSearchResultsNode = true;
        }
Beispiel #16
0
        public SimpleTreeNode(PackagesProviderBase provider, string category, IVsExtensionsTreeNode parent, IPackageRepository repository)
            : base(parent, provider)
        {
            if (category == null) {
                throw new ArgumentNullException("category");
            }
            if (repository == null) {
                throw new ArgumentNullException("repository");
            }

            _category = category;
            _repository = repository;
        }
Beispiel #17
0
        public PackagesSearchNode(PackagesProviderBase provider, IVsExtensionsTreeNode parent, PackagesTreeNodeBase baseNode, string searchText) :
            base(parent, provider, baseNode.CollapseVersions)
        {
            if (baseNode == null)
            {
                throw new ArgumentNullException("baseNode");
            }

            _searchText = searchText;
            _baseNode   = baseNode;

            // Mark this node as a SearchResults node to assist navigation in ExtensionsExplorer
            IsSearchResultsNode = true;
        }
Beispiel #18
0
        public SimpleTreeNode(PackagesProviderBase provider, string category, IVsExtensionsTreeNode parent, IPackageRepository repository) :
            base(parent, provider)
        {
            if (category == null)
            {
                throw new ArgumentNullException("category");
            }
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }

            _category   = category;
            _repository = repository;
        }
Beispiel #19
0
 /// <summary>
 /// Copy constructor for PackagesProviderBase
 /// </summary>
 protected PackagesProviderBase(PackagesProviderBase other) :
     this(other._localRepository, other._resources, other._providerServices, other._progressProvider, other._solutionManager)
 {
 }
Beispiel #20
0
 public PackageItem(PackagesProviderBase provider, IPackage package, SemanticVersion oldPackageVersion = null) :
     this(provider, package, new Project[0], oldPackageVersion)
 {
 }
Beispiel #21
0
        public MockTreeNode(IVsExtensionsTreeNode parent, PackagesProviderBase provider, IEnumerable<IPackage> packages, bool collapseVersions)
            : base(parent, provider, collapseVersions)
        {

            _packages = packages;
        }
Beispiel #22
0
 public MockTreeNode(IVsExtensionsTreeNode parent, PackagesProviderBase provider, IEnumerable<IPackage> packages, bool collapseVersions, bool supportsPrereleasePackages = true)
     : base(parent, provider, collapseVersions)
 {
     _supportsPrereleasePackages = supportsPrereleasePackages;
     _packages = packages;
 }
Beispiel #23
0
 public MockTreeNode(IVsExtensionsTreeNode parent, PackagesProviderBase provider, int numberOfPackages, bool collapseVersions, bool supportsPrereleasePackages = true)
     : base(parent, provider, collapseVersions)
 {
     _numberOfPackages = numberOfPackages;
     _supportsPrereleasePackages = supportsPrereleasePackages;
 }
Beispiel #24
0
 public OnlineSearchProvider(PackagesProviderBase baseProvider)
     : base(baseProvider)
 {
     _baseProvider = baseProvider;
 }
Beispiel #25
0
 public OnlineSearchProvider(PackagesProviderBase baseProvider)
     : base(baseProvider)
 {
     _baseProvider = baseProvider;
 }
Beispiel #26
0
 public PackageItem(PackagesProviderBase provider, IPackage package, SemanticVersion oldPackageVersion = null) :
     this(provider, package, new Project[0], oldPackageVersion)
 {
 }
Beispiel #27
0
 public MockTreeNode(IVsExtensionsTreeNode parent, PackagesProviderBase provider, IEnumerable<IPackage> packages)
     : base(parent, provider)
 {
     _packages = packages;
 }
Beispiel #28
0
 public MockTreeNode(IVsExtensionsTreeNode parent, PackagesProviderBase provider, int numberOfPackages)
     : base(parent, provider)
 {
     _numberOfPackages = numberOfPackages;
 }
 /// <summary>
 /// Copy constructor for PackagesProviderBase
 /// </summary>
 protected PackagesProviderBase(PackagesProviderBase other) :
     this(other._localRepository, other._resources, other._providerServices, other._progressProvider, other._solutionManager)
 {
 }
Beispiel #30
0
 public PagedPackagesSearchNode(PackagesProviderBase provider, IVsExtensionsTreeNode parent, PackagesTreeNodeBase baseNode, string searchText) :
     base(provider, parent, baseNode, searchText)
 {
 }
Beispiel #31
0
        public MockTreeNode(IVsExtensionsTreeNode parent, PackagesProviderBase provider, int numberOfPackages, bool collapseVersions)
            : base(parent, provider, collapseVersions)
        {

            _numberOfPackages = numberOfPackages;
        }
Beispiel #32
0
 public PackageItem(PackagesProviderBase provider, IPackage package, bool isUpdateItem = false) :
     this(provider, package, new Project[0], isUpdateItem)
 {
 }
Beispiel #33
0
 public PackageItem(PackagesProviderBase provider, IPackage package, bool isUpdateItem = false) :
     this(provider, package, new Project[0], isUpdateItem)
 {
 }