disable certain plugins

Julian Bäume julian at svg4all.de
Fri Sep 10 23:06:22 UTC 2010

On Friday 10 September 2010 22:46:15 Andreas Pakulat wrote: 
> if a plugin is deselected (either by default or manually) this
> plugin must not be loaded, no matter what (the code that tries to load
> plugins needs to be able to handle that case).
> That being said, PluginController API that provides plugins (as
> extension, IPlugin instance or lists thereof) must not provide plugins
> that are disabled. I thought there was a check in loadPlugin to verify
> that the plugin to be loaded is enabled, but maybe I was wrong. Either
> that or the logic in initialize does have a flaw somewhere.

The api documentation for IPluginController::allPluginsForExtension() is 
somewhat misleading. Seems like a copy & paste issue, to me. Anyway, you are 
right, the Plugincontroller::loadPluginInternal() checks if the plugin is 
enabled. But the isEnabled method returns true, because the isUserSelectable 
method returns true. This is because no X-KDevelop-LoadMode has been set in 
the .desktop file for neither Qt help, nor CMake help.

bye then
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100911/0ec50f5b/attachment.sig>

More information about the KDevelop-devel mailing list