Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Leveraging OSGi and dynamic bundle loading
Leveraging OSGi and dynamic bundle loading [message #50229] Thu, 12 March 2009 09:52 Go to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030503000803050600040301
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi all,

I am searching for a way to dynamically load the bundles defined in my
Eclipse workspace in the currently running Eclipse instance so as to
have their extension points and exported packages registered. I have had
some success with code inspired from the org.eclipse.ui.tools project in
platform-incubator/ui . The problem I face now is ... The projects
loaded dynamically need to have the "Bundle-Classpath" header
positionned in their MANIFEST.MF so as to avoid classloading issues.
Whar I am looking for would be a way to dynamically position this value
or tell the loaded bundle (or the PackageAdmin? don't really know where
I should enter the API here) without forcing my users to set their
Bundle-Classpath.

org.eclipse.pde.internal.core.ibundle.IManifestHeader and other
interfaces/classes I could find when trying to do this are all internal
so ... is there a way to do this through public API?

Thanks,

Laurent Goubet
Obeo

--------------030503000803050600040301
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr/">Obeo</a>
email;internet:laurent.goubet@obeo.fr
url:http://www.obeo.fr
version:2.1
end:vcard


--------------030503000803050600040301--
Re: Leveraging OSGi and dynamic bundle loading [message #50259 is a reply to message #50229] Thu, 12 March 2009 13:42 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030802060301040402070104
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Sorry for cross-posting this, I just thought this might be more of an
equinox question than PDE.

laurent Goubet a
Re: Leveraging OSGi and dynamic bundle loading [message #53502 is a reply to message #50259] Fri, 03 April 2009 09:21 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030001010308070309050607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi all,

Shamelessly bumping this question up in case someone who'd know how to
use Manifest-related API hadn't seen it.

Laurent Goubet
Obeo

laurent Goubet a
Re: Leveraging OSGi and dynamic bundle loading [message #53528 is a reply to message #53502] Fri, 03 April 2009 16:08 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
laurent Goubet wrote:
> Hi all,
>
> Shamelessly bumping this question up in case someone who'd know how to
> use Manifest-related API hadn't seen it.

In Eclipse 3.5, PDE added support to export in your running host via the
export wizard. Can you use that?

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Leveraging OSGi and dynamic bundle loading [message #53555 is a reply to message #53528] Mon, 06 April 2009 07:55 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000408070308000805010502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Chris,

Unfortunately I cannot make use of this action as I need to do this
through code and it isn't opened enough for clients to leverage it. I
did look at it in order to write the code I use to dynamically load
plugins, the only remaining problem being this Bundle-Classpath entry
that is necessary for clients to manually add to their MANIFEST.MF for now.

I'd like to have a way to alter the bundleModel to add this entry when
installing from the workspace, but as far as I went in the API, I
couldn't find any way of doing this without using internal classes. If
not through pde code, I'd have at least expected equinox to offer such APIs.

Laurent Goubet
Obeo

Chris Aniszczyk a
Re: Leveraging OSGi and dynamic bundle loading [message #593155 is a reply to message #50229] Thu, 12 March 2009 13:42 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030802060301040402070104
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Sorry for cross-posting this, I just thought this might be more of an
equinox question than PDE.

laurent Goubet a
Re: Leveraging OSGi and dynamic bundle loading [message #594596 is a reply to message #50259] Fri, 03 April 2009 09:21 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030001010308070309050607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi all,

Shamelessly bumping this question up in case someone who'd know how to
use Manifest-related API hadn't seen it.

Laurent Goubet
Obeo

laurent Goubet a
Re: Leveraging OSGi and dynamic bundle loading [message #594603 is a reply to message #53502] Fri, 03 April 2009 16:08 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
laurent Goubet wrote:
> Hi all,
>
> Shamelessly bumping this question up in case someone who'd know how to
> use Manifest-related API hadn't seen it.

In Eclipse 3.5, PDE added support to export in your running host via the
export wizard. Can you use that?

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Leveraging OSGi and dynamic bundle loading [message #594607 is a reply to message #53528] Mon, 06 April 2009 07:55 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000408070308000805010502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Chris,

Unfortunately I cannot make use of this action as I need to do this
through code and it isn't opened enough for clients to leverage it. I
did look at it in order to write the code I use to dynamically load
plugins, the only remaining problem being this Bundle-Classpath entry
that is necessary for clients to manually add to their MANIFEST.MF for now.

I'd like to have a way to alter the bundleModel to add this entry when
installing from the workspace, but as far as I went in the API, I
couldn't find any way of doing this without using internal classes. If
not through pde code, I'd have at least expected equinox to offer such APIs.

Laurent Goubet
Obeo

Chris Aniszczyk a
Previous Topic:Long delay + UI locked when saving MANIFESTs
Next Topic:Ho to get rid of XML warnings on build.xml?
Goto Forum:
  


Current Time: Fri Apr 26 09:12:44 GMT 2024

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

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

Back to the top