Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Duplicate plug-in entries in "Plug-in Details"
Duplicate plug-in entries in "Plug-in Details" [message #334134] Wed, 21 January 2009 20:27 Go to next message
Raymond Mising name is currently offline Raymond Mising nameFriend
Messages: 59
Registered: July 2009
Member
Hey,

Our plug-in has several sub plug-ins. When I updated our plug-in from
its update site, one of the sub plug-ins did not work (lets call it
plug-in A). After investigation, I found both the old and the latest
versions of plug-in A were displayed in the list popped up by clicking
the "plug-in Details" button on the "About Eclipse SDE" dialog. All other
sub plug-ins only have their latest versions displayed there. When I
manually
delete the old version of plug-in A from the eclipse/plugins folder and
restarted eclipse, it worked.

I checked the manifest file of plug-in A but did not find any difference
from others. I have no idea why only this sub plug-in has two versions in
the
list. Does anyone know what can cause this problem?

Thanks.
Re: Duplicate plug-in entries in "Plug-in Details" [message #334185 is a reply to message #334134] Fri, 23 January 2009 19:25 Go to previous messageGo to next message
Raymond Mising name is currently offline Raymond Mising nameFriend
Messages: 59
Registered: July 2009
Member
Can anyone help on this issue?
Re: Duplicate plug-in entries in "Plug-in Details" [message #334186 is a reply to message #334134] Fri, 23 January 2009 19:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

It's valid to have multiple versions of the same plugin installed in
OSGi and providing classes (to different plugins, of course).

But eclipse plugins (especially those that contribute or use extension
points) set the singleton flag, and then OSGi picks the highest version.
ex:

Bundle-SymbolicName: org.eclipse.e4.ui.workbench;singleton:=true

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


Re: Duplicate plug-in entries in "Plug-in Details" [message #334187 is a reply to message #334186] Fri, 23 January 2009 20:56 Go to previous messageGo to next message
Raymond Mising name is currently offline Raymond Mising nameFriend
Messages: 59
Registered: July 2009
Member
Paul Webster wrote:

> It's valid to have multiple versions of the same plugin installed in
> OSGi and providing classes (to different plugins, of course).

> But eclipse plugins (especially those that contribute or use extension
> points) set the singleton flag, and then OSGi picks the highest version.
> ex:

> Bundle-SymbolicName: org.eclipse.e4.ui.workbench;singleton:=true

> PW


Thanks Paul. I know eclipse allows to have multiple version of the same
plug-in. However, we did not mean to have multiple versions for that sub
plug-in and actually we meant to have only one version for all our sub
plug-ins. Its singleton flag was set. The strange thing is that all other
sub plug-ins are fine but only this one has multiple versions. The
following is how the manifest file looks like:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: XXXXXXXXXX
Bundle-SymbolicName: XXX.XXX.XXX.XXX;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: XXX.XXX.XXX.XXX.Activator
Bundle-Vendor: XXXXXXXXXX
Bundle-Localization: plugin
Import-Package: org.osgi.framework;version="1.4.0"
Bundle-RequiredExecutionEnvironment: J2SE-1.4
Require-Bundle: org.eclipse.osgi,
org.eclipse.core.resources,
org.eclipse.core.runtime,
Export-Package: XXX.XXX.XXX.XXX
Bundle-ClassPath: .
Eclipse-LazyStart: true
Re: Duplicate plug-in entries in "Plug-in Details" [message #334191 is a reply to message #334187] Sun, 25 January 2009 15:41 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Raymond wrote:
>
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: XXXXXXXXXX
> Bundle-SymbolicName: XXX.XXX.XXX.XXX;singleton:=true
> Bundle-Version: 1.0.0
> Bundle-Activator: XXX.XXX.XXX.XXX.Activator
> Bundle-Vendor: XXXXXXXXXX
> Bundle-Localization: plugin
> Import-Package: org.osgi.framework;version="1.4.0"
> Bundle-RequiredExecutionEnvironment: J2SE-1.4
> Require-Bundle: org.eclipse.osgi,
> org.eclipse.core.resources,
> org.eclipse.core.runtime,
> Export-Package: XXX.XXX.XXX.XXX
> Bundle-ClassPath: .
> Eclipse-LazyStart: true
>

I can't see anything wrong with it ... is the other version identical
(except for the version number)?

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


Previous Topic:activeWhen and enabledWhen problem
Next Topic:Problem with key bindings on newly-opened document
Goto Forum:
  


Current Time: Wed Jul 17 19:24:00 GMT 2024

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

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

Back to the top