Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Status of plugin.xml in Eclipse 3.0 in respect to OSGi bundle manifest
Status of plugin.xml in Eclipse 3.0 in respect to OSGi bundle manifest [message #259767] Thu, 08 July 2004 11:58 Go to next message
Eclipse UserFriend
Hello,

I have a question regarding the status of the plugin.xml and OSGI Manifest file:

I've noticed that some of the platform and sdk plugins in 3.0 only place extension
information inside the plugin.xml and everything else in the META-INT/MANIFEST.MF,
and other plugins place everything into the plugin.xml and don't use MANIFEST.MF at all.
The plugin.xml-Editor and the platform seem to handle this transparently.

So, will I have the choice for all times how to split this, or is the plugin.xml a sort
of 'deprecated' in the future?

Regards,

Peter Schaich
Re: Status of plugin.xml in Eclipse 3.0 in respect to OSGi bundle manifest [message #259801 is a reply to message #259767] Thu, 08 July 2004 13:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chaves.nospam.inf.ufsc.br.ok

> So, will I have the choice for all times how to split this, or is the
plugin.xml a sort
> of 'deprecated' in the future?

That is the direction, although nobody is required to provide bundle
manifests now (maybe ever). They are generated for plugins that don't
provide one and use the regular plugin manifests. As you noticed, even in
the Eclipse SDK, the majority of plug-ins still don't provide bundle
manifests.

Also, there are features that are/will be only available to plugins that
provide their own bundle manifests (such as exporting/importing packages).
Re: Status of plugin.xml in Eclipse 3.0 in respect to OSGi bundle manifest [message #259958 is a reply to message #259801] Thu, 08 July 2004 22:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rafael,

> Also, there are features that are/will be only available to plugins that
> provide their own bundle manifests (such as exporting/importing packages).

I've noticed docs about this, maybe you can help shed some light on this
for me. How does exporting a package in the bundle manifest differ from a

<runtime>
<library name="myplugin.jar">
<export name="org.ianp.myplugin.*"/>
</library>
</runtime>

section in a plugin.xml file.

Cheers,
Ian.

--
#ifndef __COMMON_SENSE__ | Ian Phillips
#include <std_disclaimer> | http://ianp.org
#endif
Re: Status of plugin.xml in Eclipse 3.0 in respect to OSGi bundle manifest [message #260834 is a reply to message #259958] Mon, 12 July 2004 14:02 Go to previous message
Eclipse UserFriend
Originally posted by: chaves.nospam.inf.ufsc.br.ok

Eclipse added the concept of *provided* packages to OSGi, which is
expected to be incorporated into the OSGi spec in the near future.
Provided packages correspond to package filters specified in the runtime
section of plug-in manifests (however there is no wildcard support - one
has to explicitly enumerate all packages to be provided). If A requires B,
A will have access to all public types declared in the packages explicitly
provided by B.

Exported packages have always been part of OSGi and are a different story.
They are only seen by plug-ins *importing* packages (instead of requiring
other plug-ins). They are globally available, and for every exported
package, there will be only one plug-in (or bundle, in OSGi) providing it
(if more than one are available, one will be picked). If C and D export
package foo, and E imports it, E (and C and D) will get the classes in
package foo provided by either C or D (note that when you export a
package, you implicitly import it as well).

The OSGi spec is available from osgi.org. Also, the equinox newsgroup and
mailing list are good places to learn more about new opportunities now
available with the move to OSGi.

HTH,

Rafael

Ian Phillips wrote:

> Hi Rafael,

> > Also, there are features that are/will be only available to plugins that
> > provide their own bundle manifests (such as exporting/importing packages).

> I've noticed docs about this, maybe you can help shed some light on this
> for me. How does exporting a package in the bundle manifest differ from a

> <runtime>
> <library name="myplugin.jar">
> <export name="org.ianp.myplugin.*"/>
> </library>
> </runtime>

> section in a plugin.xml file.

> Cheers,
> Ian.
Previous Topic:help needed with key bindings: can anyone send me a simple example?
Next Topic:Plug-in migration from 2.1 to 3.0.
Goto Forum:
  


Current Time: Sun Jul 27 11:08:10 EDT 2025

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

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

Back to the top