Proof of Concept to automatically fetch missing source bundles from enabled p2 repositories, when opening a bundle jar (similar to m2e).
It's also possible to fetch all sources from the Plug-in Dependencies
classpath container, with a right-click and selecting Download Bundle Sources
.
Sources are cached to ~/.eclipse/org.jboss.tools.pde.sourcelookup.core/sources
. That folder can be changed in Preferences
> Plug-in Development
> Source Lookup
.
Because the Plug-in Dependencies
classpath container doesn't keep new attached sources on workspace restart,
the PDE Source Lookup plugin automatically reattaches thoses sources upon restart.
This behavior can be disabled in Preferences
> Plug-in Development
> Source Lookup
.
- Requires an Eclipse Mars.2 or more recent installation (might work on older versions)
- Requires Java 8 to run.
PDE Source Lookup is available in the Eclipse Marketplace. Drag the following button to your running Eclipse workspace. (
Alternatively, in Eclipse:
- open Help > Install New Software...
- work with:
https://github.com/fbricon/pde.source.lookup/releases/download/latest/
- expand the category and select the
PDE Source Lookup
Eclipse Feature - proceed with the installation
- restart Eclipse
Licensed under the EPL-2.0.