Re: [anjuta-devel] Adding some filtering mechanism for plugin



Hi Johannes,


Le 10/02/2013 00:37, Johannes Schmid a écrit :
* Add an additional attribute to all .plugin files, like
PluginCategory=gnome-c,gnome-python,gnome-js
* Whitelist the plugins in the session file

I plan to use the first solution, adding an attribute to all .plugin file. I think it's useful to allow third parties to add their own plugins.


Maybe
it's better to define the session type in the session file and have
additional metadata files that lists the plugins that should be
supported in that session.

There are two objects involved in configuring Anjuta profile and session.

The profile is the list of loaded plugins which is composed of a default list and a user defined list. Then a anjuta project file is in fact another profile which is loaded instead of the current one.

The session contains the settings for all plugins, it is loaded when a new profile is loaded.


In my idea, I'm using only a custom profile for gnome, I don't change anything in the session, at least for the moment.


Is there anything else beside the session
name that needs to be considered by other plugins?

We need at least a name perhaps not the session name though, I don't know if we need more. Using a plugin allows to easily add more and doesn't change the core of Anjuta which is another important point for me.


Regards,

Sébastien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]