Profiles and "disabled plugins"

Jens Dagerbo jens.dagerbo at swipnet.se
Fri Oct 20 21:42:59 UTC 2006


On Friday 20 October 2006 20:14, Vladimir Prus wrote:
> Hi,
> for quite some time, it was possible to specify a set of disabled plugins
> for a given KDevelop profile. This no longer works in SVN head. This was
> changed in revision r525148, by Jens. Log message was:
>
>      r525148 | dagerbo | 2006-04-01 02:46:23 +0400 (Sat, 01 Apr 2006) | 1
> line
>
>      Use Alexander Dymo's ProfileEngine to specify the default plugin set
> for a freshly created or imported project
>
> and the actual diff is attached. The only functional change is commenting
> out the code that handles disabled plugins, with comment that says:
>
>        /* Wrong, this is not what we want to do.
>

> Jens, can you tell what was wrong with original behaviour, 

There was nothing wrong with the original behaviour (except maybe that it was 
somewhat redundant) UNTIL people started using the disable list to "clean up 
the ui" which wasn't at all what it was designed to do.

The enable list tells Develop that a plugin CAN be loaded.
The disable list _told_ KDevelop that a plugin CANNOT be loaded. 

In effect a disabled plugin was blocked and for all practical purposes did not 
exist (for that profile). Using this system  to "clean up the ui"meant you 
limited what parts of KDevelop the user was allowed to use by your preference 
of what was nice to see in the UI.


The current behaviour is, imho, the better way. And at least back in april, 
when I changed the behaviour, Alexander Dymo agreed with me. I hope he still 
does. :)


> and what's  required in order to revive the disabled plugins functionality?

As a project template writer, to impose your preference as to what should be 
loaded by default - use the "<ignoreparts>" section of the 
template's .kdevelop file.

As a user: Settings->Configure Plugins. "Save as Default" - that will make 
sure that any projects you create (of that profile type) will come up with 
the set of plugins that YOU decide you want, as a user.


// jens







More information about the KDevelop-devel mailing list