attaching source to plugin in eclipse [message #605567] |
Tue, 13 April 2010 02:18 |
matt kerle Messages: 10 Registered: April 2010 |
Junior Member |
|
|
Hi all
newcomer to PDE here so please be gentle.. ;-) I hope this is the right place to post this...
TL;DR how do you attach source to a plugin in a PDE project if it doesn't provide a source bundle?
I'm working on a project that uses OSGi/Equinox for it's dep. management, it's a geospatial middleware (I know...) so it uses a whole swag of 3rd party FOSS libraries. In trying to get my head around it I'm linking in all the source I can find, but I'm learning that in PDE it's not trivial...
Normally in eclipse to attach source I just open project properties, Java Build Path, select the library I want to browse, edit-> attach source, it's that easy.
but I'm learning that when your dependencies are plugins eclipse throws all that out the window and requires you know the intricacies of OSGi to be able to browse your source, if you're unlucky enough to want a library that isn't already exported as a plugin with source.
So, from googling it looks like the only way to browse the source of a plugin dependency is to build a plugin that is a source plugin for the target bundle, and add that to your target platform. eg:
http://rajakannappan.blogspot.com/2010/03/automating-eclipse -source-bundle.html
Am I missing something? can someone comment on why things have to be like this? why eclipse disables the existing attach-source functionality for plugins?
also, is there an easier way to attach source than having to rebuild the source as a plugin?
thanks for any insight!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02905 seconds