Property | Type | Description | |
---|---|---|---|
ActivateAddin | void | ||
ActivateRoots | void | ||
CheckHostAssembly | void | ||
CheckInitialized | void | ||
CurrentDomainAssemblyResolve | |||
FindType | Mono.Addins.Description.ExtensionNodeType | ||
GetAddin | |||
GetAddinForAssembly | |||
GetAutoTypeExtensionPoint | string | ||
GetNodeTypeAddin | string | ||
Initialize | void | ||
InsertAddin | bool | ||
InsertExtensionPoint | void | ||
LoadAddin | bool | ||
OnAssemblyLoaded | void | ||
RegisterAssemblies | void | ||
RegisterAutoTypeExtensionPoint | void | ||
RegisterNodeSets | void | ||
ReportAddinLoad | void | ||
ReportAddinUnload | void | ||
ReportError | void | ||
ResetCachedData | void | ||
ResolveLoadDependencies | bool | ||
UnloadAddin | void | ||
UnregisterAddinNodeSets | void | ||
UnregisterAutoTypeExtensionPoint | void | ||
ValidateAddinRoots | void |
Method | Description | |
---|---|---|
AddinEngine ( ) : System |
Initializes a new instance of the Mono.Addins.AddinEngine class.
|
|
CheckInstalled ( string message ) : void |
Checks if the provided add-ins are installed, and requests the installation of those which aren't. This method checks if the specified add-ins are installed. If some of the add-ins are not installed, it will use the installer assigned to the DefaultAddinInstaller property to install them. If the installation fails, or if DefaultAddinInstaller is not set, an exception will be thrown. |
|
CreateExtensionContext ( ) : Mono.Addins.ExtensionContext |
Creates a new extension context. Extension contexts can be used to query the extension model using particular condition values. |
|
Initialize ( string configDir ) : void |
Initializes the add-in engine The add-in engine needs to be initialized before doing any add-in operation. When initialized with this method, it will look for add-in in the add-in registry located in the specified path. |
|
Initialize ( string configDir, string addinsDir ) : void |
Initializes the add-in engine. The add-in engine needs to be initialized before doing any add-in operation. Configuration information about the add-in registry will be stored in the provided location. The add-in engine will look for add-ins in the provided 'addinsDir' directory. When specifying a path, it is possible to use a special folder name as root. For example: [Personal]/.config/MyApp. In this case, [Personal] will be replaced by the location of the Environment.SpecialFolder.Personal folder. Any value of the Environment.SpecialFolder enumeration can be used (always between square brackets) |
|
Initialize ( string configDir, string addinsDir, string databaseDir ) : void |
Initializes the add-in engine. The add-in engine needs to be initialized before doing any add-in operation. Configuration information about the add-in registry will be stored in the provided location. The add-in engine will look for add-ins in the provided 'addinsDir' directory. Cached information about add-ins will be stored in the 'databaseDir' directory. When specifying a path, it is possible to use a special folder name as root. For example: [Personal]/.config/MyApp. In this case, [Personal] will be replaced by the location of the Environment.SpecialFolder.Personal folder. Any value of the Environment.SpecialFolder enumeration can be used (always between square brackets) |
|
InitializeDefaultLocalizer ( IAddinLocalizer localizer ) : void |
Sets the default localizer to be used for this add-in engine
|
|
IsAddinLoaded ( string id ) : bool |
Checks if an add-in has been loaded.
|
|
LoadAddin ( IProgressStatus statusMonitor, string id ) : void |
Forces the loading of an add-in. This method loads all assemblies that belong to an add-in in memory. All add-ins on which the specified add-in depends will also be loaded. Notice that in general add-ins don't need to be explicitly loaded using this method, since the add-in engine will load them on demand. |
|
Shutdown ( ) : void |
Finalizes the add-in engine.
|
Method | Description | |
---|---|---|
ActivateAddin ( string id ) : void | ||
ActivateRoots ( ) : void | ||
CheckHostAssembly ( |
||
CheckInitialized ( ) : void | ||
CurrentDomainAssemblyResolve ( object sender, |
||
FindType ( Mono.Addins.Description.ExtensionNodeSet nset, string name, string callingAddinId ) : Mono.Addins.Description.ExtensionNodeType | ||
GetAddin ( string id ) : |
||
GetAddinForAssembly ( |
||
GetAutoTypeExtensionPoint ( |
||
GetNodeTypeAddin ( Mono.Addins.Description.ExtensionNodeSet nset, string type, string callingAddinId ) : string | ||
Initialize ( |
||
InsertAddin ( IProgressStatus statusMonitor, |
||
InsertExtensionPoint ( |
||
LoadAddin ( IProgressStatus statusMonitor, string id, bool throwExceptions ) : bool | ||
OnAssemblyLoaded ( object s, |
||
RegisterAssemblies ( |
||
RegisterAutoTypeExtensionPoint ( |
||
RegisterNodeSets ( string addinId, |
||
ReportAddinLoad ( string id ) : void | ||
ReportAddinUnload ( string id ) : void | ||
ReportError ( string message, string addinId, |
||
ResetCachedData ( ) : void | ||
ResolveLoadDependencies ( |
||
UnloadAddin ( string id ) : void | ||
UnregisterAddinNodeSets ( string addinId ) : void | ||
UnregisterAutoTypeExtensionPoint ( |
||
ValidateAddinRoots ( ) : void |
public CheckInstalled ( string message ) : void | ||
message | string | /// Message to show to the user when new add-ins have to be installed. /// |
return | void |
public CreateExtensionContext ( ) : Mono.Addins.ExtensionContext | ||
return | Mono.Addins.ExtensionContext |
public Initialize ( string configDir ) : void | ||
configDir | string | /// Location of the add-in registry. /// |
return | void |
public Initialize ( string configDir, string addinsDir ) : void | ||
configDir | string | /// Location of the add-in registry. /// |
addinsDir | string | /// Add-ins directory. If the path is relative, it is considered to be relative /// to the configDir directory. /// |
return | void |
public Initialize ( string configDir, string addinsDir, string databaseDir ) : void | ||
configDir | string | /// Location of the add-in registry. /// |
addinsDir | string | /// Add-ins directory. If the path is relative, it is considered to be relative /// to the configDir directory. /// |
databaseDir | string | /// Location of the add-in database. If the path is relative, it is considered to be relative /// to the configDir directory. /// |
return | void |
public InitializeDefaultLocalizer ( IAddinLocalizer localizer ) : void | ||
localizer | IAddinLocalizer | /// The add-in localizer /// |
return | void |
public IsAddinLoaded ( string id ) : bool | ||
id | string | /// Full identifier of the add-in. /// |
return | bool |
public LoadAddin ( IProgressStatus statusMonitor, string id ) : void | ||
statusMonitor | IProgressStatus | /// Status monitor to keep track of the loading process. /// |
id | string | /// Full identifier of the add-in to load. /// |
return | void |