Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plug-in not available as bundle
Plug-in not available as bundle [message #318248] Mon, 23 July 2007 18:51 Go to next message
Eclipse UserFriend
Originally posted by: davidhuebel.example.net

At run-time I need to access the bundles for some of my plug-in
dependencies. I can access all the bundles loaded in the Eclipse framework
using the following code:

ArrayList<Bundle> bundleList = new ArrayList<Bundle>();
for(IBundleGroupProvider provider : Platform.getBundleGroupProviders()) {
for(IBundleGroup group : provider.getBundleGroups()) {
for(Bundle bundle : group.getBundles()) {
bundleList.add(bundle);
// debugging code:
System.out.println("bundle: " + bundle.getSymbolicName());
}
}
}

One of the plugins I'm using doesn't show up as a bundle in this list. It
is one of several plugins I've created to wrap external jar files. The
others show up as plugins, but this one (which wraps the Apache Derby lib
jar derby.jar) does not. I have verified that the Derby plugin is present
at runtime by checking Help/About Eclipse SDK/Plug-in Details, and I have
carefully compared the MANIFEST.MF and layouts of the working and
nonworking plugins without finding any meaningful differences.

I'm pretty stuck. Any suggestions?

Thanks,
David
Re: Plug-in not available as bundle [message #318260 is a reply to message #318248] Tue, 24 July 2007 03:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

They're almost certainly not in an IBundleGroup, which is why you're not seeing them. You should be able to get a list of all bundles using BundleContext.getBundles(), which is handed to you during start() of the bundle itself.

Alex.
Re: Plug-in not available as bundle [message #318281 is a reply to message #318260] Tue, 24 July 2007 11:01 Go to previous message
Eclipse UserFriend
Originally posted by: davidhuebel.example.net

Alex Blewitt wrote:

> They're almost certainly not in an IBundleGroup, which is why you're not
> seeing them. You should be able to get a list of all bundles using
> BundleContext.getBundles(), which is handed to you during start() of the
> bundle itself.
>
> Alex.

Thanks; this did the trick.

-David
Previous Topic:[Compare] Change Request
Next Topic:Missing Resource Exception
Goto Forum:
  


Current Time: Mon Jul 21 21:19:54 EDT 2025

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

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

Back to the top