JVCL Help:TJvPluginManager.LoadPlugins

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

Search in all projects


Scans a folder for and loads plugins.




LoadPlugins will scan a folder for plugin files and attempts to load them.
The PluginFolder property is read to determine the folder to scan. If the PluginFolder property is empty, the executable's folder will be used instead.
The Extensions property is read to determine the file extensions to consider as a plugin.
For each file found the following steps will take place:

  • The OnBeforeLoad event is called.
  • If OnBeforeLoad has not disallowed the file to be loaded, LoadPlugin is called to load theplugin (specifying PluginKind as the plugin type). This method will call the OnNewCommand event for each provided command.
  • The OnAfterLoad event is called.

If an exception occurred during the steps above, the OnLoadingError event will be called. Any additional files will still be loaded.

See Also

TJvPluginManager.Extension, TJvPluginManager.LoadPlugin, TJvPluginManager.OnAfterLoad, TJvPluginManager.OnBeforeLoad, TJvPluginManager.OnNewCommand, TJvPluginManager.OnPlugInError, TJvPluginManager.PluginFolder, TJvPluginManager.PluginKind


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page