Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Plugin Required-Bundle
Plugin Required-Bundle [message #326684] Fri, 28 March 2008 13:50 Go to next message
Eclipse UserFriend
Originally posted by: douglas.wieland.osv.fedex.com

Hello,

Is there a way that 2 plugins “A” and “B” requiring different conflicting
versions of a common plugin can work in the same RCP plugin environment?

Plugin “A” has a requirement:
Require-Bundle: com.common.plugin;bundle-version="[1.0.0,2.0.0)”

Plugin “B” has a requirement:
Require-Bundle: com.common.plugin;bundle-version="[2.0.0,3.0.0)”

When plugin “B” is installed plugin “A” quits working. Is there a way
plugin “A” can use one version of the common plugin and “B” can use
another version?

Thanks,
Doug
Re: Plugin Required-Bundle [message #326688 is a reply to message #326684] Fri, 28 March 2008 14:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Doug,

I think this can only work if the common plugin isn't a singleton (which
means it can't use or introduce extension points).


Doug wrote:
> Hello,
>
> Is there a way that 2 plugins �A� and �B� requiring different
> conflicting versions of a common plugin can work in the same RCP
> plugin environment?
>
> Plugin �A� has a requirement:
> Require-Bundle: com.common.plugin;bundle-version="[1.0.0,2.0.0)�
>
> Plugin �B� has a requirement:
> Require-Bundle: com.common.plugin;bundle-version="[2.0.0,3.0.0)�
>
> When plugin �B� is installed plugin �A� quits working. Is there a way
> plugin �A� can use one version of the common plugin and �B� can use
> another version?
>
> Thanks,
> Doug
>
Re: Plugin Required-Bundle [message #326689 is a reply to message #326684] Fri, 28 March 2008 14:32 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Bundles can do that ... plugins with plugin.xml cannot (since they have
the singleton:=true directive).

if your com.common.plugin doesn't have a plugin.xml it might be do-able.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Implementing A custom content compare/merge viewer
Next Topic:[Databinding] databinding arrays and lists of strings
Goto Forum:
  


Current Time: Fri Jul 12 08:51:35 GMT 2024

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

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

Back to the top