Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » optional plugin dependencies?
optional plugin dependencies? [message #152374] Mon, 03 November 2003 09:03 Go to next message
Eclipse UserFriend
As far as I understand plugins only have access to classes that are on
the classpath created from the <runtime> and <requires> parts in the
plugin manifest (plugin.xml) and to the classes of the JRE of course. If
there is a plugin missing, that I have specified to be depending on, my
plugin is disabled.

Now I have a plugin that _optionally_ depends on another plugin. I.e:
When the other plugin is available, my plugin supports the complete set
of features by also using classes from the other plugin. When the other
plugin is not available, some buttons will be disabled, but the plugin
will still work.

Detecting the availability of the other plugins classes at runtime is no
problem, but is there a way to specify this optional depedency in the
plugin.xml?

Thanks,
Markus
--
http://www.jdemo.de - Demonstrating for better code
Re: optional plugin dependencies? [message #152397 is a reply to message #152374] Mon, 03 November 2003 09:34 Go to previous messageGo to next message
Eclipse UserFriend
<requires>
<import plugin="another.plugin" optional="true"/>
</requires>

"Markus Gebhard" <markus@jave.de> wrote in message
news:bo5n45$aji$1@eclipse.org...
> As far as I understand plugins only have access to classes that are on
> the classpath created from the <runtime> and <requires> parts in the
> plugin manifest (plugin.xml) and to the classes of the JRE of course. If
> there is a plugin missing, that I have specified to be depending on, my
> plugin is disabled.
>
> Now I have a plugin that _optionally_ depends on another plugin. I.e:
> When the other plugin is available, my plugin supports the complete set
> of features by also using classes from the other plugin. When the other
> plugin is not available, some buttons will be disabled, but the plugin
> will still work.
>
> Detecting the availability of the other plugins classes at runtime is no
> problem, but is there a way to specify this optional depedency in the
> plugin.xml?
>
> Thanks,
> Markus
> --
> http://www.jdemo.de - Demonstrating for better code
>
Re: optional plugin dependencies? [message #152481 is a reply to message #152397] Mon, 03 November 2003 11:18 Go to previous message
Eclipse UserFriend
Jerome Lanneluc wrote:

> <requires>
> <import plugin="another.plugin" optional="true"/>
> </requires>

Great! Thanks.
Markus
Previous Topic:Setting a Custom Browser for Help in OS X
Next Topic:[ANNOUNCE] Spectrum Announces Integration between SpectrumSCM and the Eclipse platform
Goto Forum:
  


Current Time: Fri May 02 09:45:30 EDT 2025

Powered by FUDForum. Page generated in 8.02236 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top