Egon,

I am still traveling in the US ... will be back in Spain next week.

Sounds great that you have thought out and implemented the plugin mechanism.

I don't have any experience with class loaders, but I am very interested
in learning about it. So I will look at it and give you my feedback later
next week.

Yes, it sounds like to me that this is a post release 8 feature.

Miguel

>
> Hi Miguel,
>
> something I wanted to do for quite some time now is a plugin based
> extension  mechanism of Jmol.
>
> A pluging would be defined as:
>
> - a self consistent jar file
> - which contains a XPlugin.class which implements JmolPluginInterface
> (JPI) - the JPI has a API like:
>   - getName()
>   - getPluginPanel() -> for a user window
>   - getConfigPanel() -> for a configuration window
>   - getMenu() -> for a custom menu in the Plugin menu
>   - start() / stop()
> - Jmol would instantiate a PluginManager which would load the plugins
> from
>    e.g. $HOME/.jmol/plugin by
>   - parsing each jar, looking for the XPlugin.class
>   - checking wether the plugin class instantiates the
> JmolPluginInterface - create a "Plugin Menu" with one entry for each
> plugin, for which the
>       submenu contains two entries to access the user and config window,
>      and a list of custom menu items (as defined by getMenu())
>
> Most of this I've implemented this weekend... It only lacks a custom
> ClassLoader to load all classes needed by the plugin from the
> plugin.jar... And it lacks a proper interface to Jmol... so that it can
> actually perform  editing operations...
>
> I am going to commit this against b6, but will not make it active... at
> least,  not untill the two problems are solved... which is probably not
> before  release v8 somewhere this week... I'll also commit a new module
> in which  plugins can be developed... (see commits)...
>
> All this is not final, but I need it for the one plugin that I am going
> to  commit... Comments/Ideas welcomed.
>
> Egon


--------------------------------------------------
Miguel Howard                   [EMAIL PROTECTED]
c/Pe�a Primera 11-13 esc dcha 6B
37002 Salamanca
Espa�a Spain
--------------------------------------------------
telefono casa 923 27 10 82 movil 650 52 54 58
--------------------------------------------------
To call from the US dial    9:00 am Pacific US   =
home 011 34 923 27 10 82   12:00 noon Eastern US =
cell 011 34 650 52 54 58    6:00 pm Spain
--------------------------------------------------




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to