Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Same Plugin with multiple versions
Same Plugin with multiple versions [message #507918] Fri, 15 January 2010 08:15 Go to next message
Aniruddha Shevade is currently offline Aniruddha ShevadeFriend
Messages: 14
Registered: July 2009
Junior Member
I am using eclipse 3.4
Is it possible to have same plugin with multiple versions? If so which version would be loaded ?

I have plugins with multiple versions, and it seems to be loading the older versions. Is there any way to force it to use the latest version of a plugin?

Would the behavior change if a plugin contributes an extension or defines a extension point.

thanks
- Ani
Re: Same Plugin with multiple versions [message #508012 is a reply to message #507918] Fri, 15 January 2010 09:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

Whether there can be more than one version of a plugin active at a time
depends on the MANIFEST.MF entry

Bundle-SymbolicName: yada;singleton:=true

If it sees the singleton=true then only the latest version will be active.

If this is not set, then it depends on the plugin.xml. If a plugin.xml
contributes no extensions then there can be multiple copies active.
Which one chosen depends on the criteria of the plugin that depends on
it. If the dependent plugin says it requires the older one then it will
use the older one.

If the plugin.xml has extensions or extension points defined then it
must be a singleton.


Aniruddha Shevade wrote:
> I am using eclipse 3.4
> Is it possible to have same plugin with multiple versions? If so which
> version would be loaded ?
> I have plugins with multiple versions, and it seems to be loading the
> older versions. Is there any way to force it to use the latest version
> of a plugin?
>
> Would the behavior change if a plugin contributes an extension or
> defines a extension point.
>
> thanks
> - Ani
>

--
Thanks,
Rich Kulp
Re: Same Plugin with multiple versions [message #508078 is a reply to message #508012] Fri, 15 January 2010 18:58 Go to previous messageGo to next message
Aniruddha Shevade is currently offline Aniruddha ShevadeFriend
Messages: 14
Registered: July 2009
Junior Member
HI Rich
Thanks for your reply
In my case I have the singleton=true; but still I do not see the latest plugin getting loaded. It always loads the old plugin.
Is there any way I can debug why this is happening? Any help is appreciated.

Would this have anything to do with the feature.xml, which specifies a particular version number for a plugin?


thanks
- Ani
Re: Same Plugin with multiple versions [message #508341 is a reply to message #508078] Mon, 18 January 2010 13:43 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

How did the higher version plugin get in your install? In 3.4 you can
no longer just drop a plugin in the eclipse/plugins folder, that doesn't
work any more. There is the dropins[1] folder, but that might not work
for a plugin that's actually part of one of your features.

http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins

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/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Same Plugin with multiple versions [message #508416 is a reply to message #508341] Mon, 18 January 2010 17:10 Go to previous messageGo to next message
Aniruddha Shevade is currently offline Aniruddha ShevadeFriend
Messages: 14
Registered: July 2009
Junior Member
HI
I did put the plugins in the Dropins folder , but it is not getting picked up. Do I need to also need to update the feature.xml with the new plugin version number, and add it to the dropins folder?

thanks
Re: Same Plugin with multiple versions [message #508429 is a reply to message #508416] Mon, 18 January 2010 18:10 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Aniruddha Shevade wrote:
> HI
> I did put the plugins in the Dropins folder , but it is not getting
> picked up. Do I need to also need to update the feature.xml with the new
> plugin version number, and add it to the dropins folder?

That's where I'm less sure. For a while, a plugin in the dropins folder
could not override a fundamental part of the product (and if your
original is included in a feature, that's part of its baseline).

A possibility is to provide a feature patch on your feature, that points
to the higher version of the plugin ... that might even install through
dropins.

--
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/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:markerTypeCategory custom icon?
Next Topic:Click on marker in Problems View jumps to different marker
Goto Forum:
  


Current Time: Thu Apr 25 07:02:22 GMT 2024

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

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

Back to the top