[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[equinox-dev] Getting an instance of a source bundle
- From: Andrew Eisenberg <andrew@xxxxxxxxxxxx>
- Date: Tue, 23 Apr 2013 11:35:33 -0700
- Delivered-to: firstname.lastname@example.org
I would like to get a handle on a source bundle, but they do not seem to be installed in the running Eclipse. For example, I would like to be able to do this:
Bundle jdtUiSource = Platform.getBundle("org.eclipse.jdt.ui.source");
However, this always returns null.
Indeed, when I look use the OSGi console, I see something like this, even though the source bundle is available:
osgi> ss org.eclipse.jdt.ui
"Framework is launched."
id State Bundle
243 ACTIVE org.eclipse.jdt.ui_3.8.2.v20130107-165834
What I really need is a way to find the filesystem path to a source bundle (or null if not available). So, I don't need the bundle instance, but this just seems like a handy way to get the path.
Does anyone have some ideas on what I can do?