C# Class NuGet.Dialog.Providers.PackagesProviderBase

Base class for all tree node types.
Inheritance: Microsoft.VisualStudio.ExtensionsExplorer.UI.VsExtensionsProvider, ILogger, IDisposable
Mostrar archivo Open project: themotleyfool/NuGet Class Usage Examples

Private Properties

Property Type Description
AddSearchNode void
ClearProgressMessages void
CollapseNodes void
CreateExtensionsTree void
Execute void
FindProjectFromFileSystem Project
GetTargetFrameworkForPackage FrameworkName
OnPackageInstalled void
OnPackageReferenceAdded void
OnPackageReferenceRemoving void
OnProgressAvailable void
OnRunWorkerCompleted void
OnRunWorkerDoWork void
OpenReadMeFile void
PrepareOpenReadMeFile void
RemoveSearchNode void
SaveExpandedNodes void

Public Methods

Method Description
CanExecute ( PackageItem item ) : bool
CreateExtension ( IPackage package ) : IVsExtension
Dispose ( ) : void
Log ( MessageLevel level, string message ) : void
Search ( string searchText ) : IVsExtensionsTreeNode
ToString ( ) : string

Protected Methods

Method Description
AddFailedProject ( Project project, Exception exception ) : void
CheckInstallPSScripts ( IPackage package, IPackageRepository sourceRepository, FrameworkName targetFramework, bool includePrerelease, IList &operations ) : void
CheckInstallPSScripts ( IPackage package, IPackageRepository localRepository, IPackageRepository sourceRepository, FrameworkName targetFramework, bool includePrerelease, IList &operations ) : void
CloseProgressWindow ( ) : void
CreateSortDescriptors ( ) : IList
ExecuteCore ( PackageItem item ) : bool

This method is called on background thread.

FillRootNodes ( ) : void
GetProgressMessage ( IPackage package ) : string
HideProgressWindow ( ) : void
OnExecuteCompleted ( PackageItem item ) : void
PackagesProviderBase ( IPackageRepository localRepository, System.Windows.ResourceDictionary resources, ProviderServices providerServices, IProgressProvider progressProvider, ISolutionManager solutionManager ) : System
RegisterPackageOperationEvents ( IPackageManager packageManager, IProjectManager projectManager ) : void
SelectNode ( NuGet.Dialog.Providers.PackagesTreeNodeBase node ) : void
ShowLicenseAgreement ( IVsPackageManager packageManager, IEnumerable operations ) : bool
ShowProgress ( string operation, int percentComplete ) : void
ShowProgressWindow ( ) : void
UnregisterPackageOperationEvents ( IPackageManager packageManager, IProjectManager projectManager ) : void
WriteLineToOutputWindow ( string message = "" ) : void

Private Methods

Method Description
AddSearchNode ( ) : void
ClearProgressMessages ( ) : void
CollapseNodes ( ) : void
CreateExtensionsTree ( ) : void
Execute ( PackageItem item ) : void
FindProjectFromFileSystem ( IFileSystem fileSystem ) : Project
GetTargetFrameworkForPackage ( string packageId ) : FrameworkName
OnPackageInstalled ( object sender, NuGet.VisualStudio.PackageOperationEventArgs e ) : void
OnPackageReferenceAdded ( object sender, NuGet.VisualStudio.PackageOperationEventArgs e ) : void
OnPackageReferenceRemoving ( object sender, NuGet.VisualStudio.PackageOperationEventArgs e ) : void
OnProgressAvailable ( object sender, ProgressEventArgs e ) : void
OnRunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
OnRunWorkerDoWork ( object sender, DoWorkEventArgs e ) : void
OpenReadMeFile ( ) : void
PrepareOpenReadMeFile ( NuGet.VisualStudio.PackageOperationEventArgs e ) : void
RemoveSearchNode ( ) : void
SaveExpandedNodes ( ) : void

Method Details

AddFailedProject() protected method

protected AddFailedProject ( Project project, Exception exception ) : void
project Project
exception System.Exception
return void

CanExecute() public abstract method

public abstract CanExecute ( PackageItem item ) : bool
item PackageItem
return bool

CheckInstallPSScripts() protected method

protected CheckInstallPSScripts ( IPackage package, IPackageRepository sourceRepository, FrameworkName targetFramework, bool includePrerelease, IList &operations ) : void
package IPackage
sourceRepository IPackageRepository
targetFramework FrameworkName
includePrerelease bool
operations IList
return void

CheckInstallPSScripts() protected method

protected CheckInstallPSScripts ( IPackage package, IPackageRepository localRepository, IPackageRepository sourceRepository, FrameworkName targetFramework, bool includePrerelease, IList &operations ) : void
package IPackage
localRepository IPackageRepository
sourceRepository IPackageRepository
targetFramework FrameworkName
includePrerelease bool
operations IList
return void

CloseProgressWindow() protected method

protected CloseProgressWindow ( ) : void
return void

CreateExtension() public abstract method

public abstract CreateExtension ( IPackage package ) : IVsExtension
package IPackage
return IVsExtension

CreateSortDescriptors() protected method

protected CreateSortDescriptors ( ) : IList
return IList

Dispose() public method

public Dispose ( ) : void
return void

ExecuteCore() protected method

This method is called on background thread.
protected ExecuteCore ( PackageItem item ) : bool
item PackageItem
return bool

FillRootNodes() protected method

protected FillRootNodes ( ) : void
return void

GetProgressMessage() protected method

protected GetProgressMessage ( IPackage package ) : string
package IPackage
return string

HideProgressWindow() protected method

protected HideProgressWindow ( ) : void
return void

Log() public method

public Log ( MessageLevel level, string message ) : void
level MessageLevel
message string
return void

OnExecuteCompleted() protected method

protected OnExecuteCompleted ( PackageItem item ) : void
item PackageItem
return void

PackagesProviderBase() protected method

protected PackagesProviderBase ( IPackageRepository localRepository, System.Windows.ResourceDictionary resources, ProviderServices providerServices, IProgressProvider progressProvider, ISolutionManager solutionManager ) : System
localRepository IPackageRepository
resources System.Windows.ResourceDictionary
providerServices ProviderServices
progressProvider IProgressProvider
solutionManager ISolutionManager
return System

RegisterPackageOperationEvents() protected method

protected RegisterPackageOperationEvents ( IPackageManager packageManager, IProjectManager projectManager ) : void
packageManager IPackageManager
projectManager IProjectManager
return void

Search() public method

public Search ( string searchText ) : IVsExtensionsTreeNode
searchText string
return IVsExtensionsTreeNode

SelectNode() protected method

protected SelectNode ( NuGet.Dialog.Providers.PackagesTreeNodeBase node ) : void
node NuGet.Dialog.Providers.PackagesTreeNodeBase
return void

ShowLicenseAgreement() protected method

protected ShowLicenseAgreement ( IVsPackageManager packageManager, IEnumerable operations ) : bool
packageManager IVsPackageManager
operations IEnumerable
return bool

ShowProgress() protected method

protected ShowProgress ( string operation, int percentComplete ) : void
operation string
percentComplete int
return void

ShowProgressWindow() protected method

protected ShowProgressWindow ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

UnregisterPackageOperationEvents() protected method

protected UnregisterPackageOperationEvents ( IPackageManager packageManager, IProjectManager projectManager ) : void
packageManager IPackageManager
projectManager IProjectManager
return void

WriteLineToOutputWindow() protected method

protected WriteLineToOutputWindow ( string message = "" ) : void
message string
return void