Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Access source bundles for unpacked plugins with a code-jar
Access source bundles for unpacked plugins with a code-jar [message #1689858] Tue, 24 March 2015 09:56 Go to next message
Eclipse UserFriend
I'm integrating PyDev into an RCP product and hence am frequently accessing PyDev's classes. I do have source bundles generated by tycho for PyDev and they are part of the target platform but unfortunately Eclipse does not pick them up automatically like it does for other plugins (like the eclipse base plugins for rcp apps).

The PyDev plugins are a little special in that they are set to be unpacked when installed into an Eclipse instance (and this works fine) since they contain python source code that is being accessed when using PyDev by a python process. At the same time these plugins have all their actual java class files inside another jar thats placed inside the plugin jar. Again there's no issue using or loading this when using the final product or starting a launch config, but I think this somehow breaks Eclipse source-lookup feature.

I'm wondering wether there's something in the plugins metadata or a setting in Eclipse to help it figure out that the source bundles are meant to be set as source-location for the jar's inside the PyDev plugins?
Re: Access source bundles for unpacked plugins with a code-jar [message #1689880 is a reply to message #1689858] Tue, 24 March 2015 10:56 Go to previous messageGo to next message
Eclipse UserFriend
I don't know about the underlying details of the mapping (I'd suggest opening a bug against PDE), but you can explicitly set the source location for a jar from its properties:



  1. Open the project
  2. Navigate to the jar (e.g., Plug-in Dependencies)
  3. Right click and choose Properties and go to the Java Source Attachment

Re: Access source bundles for unpacked plugins with a code-jar [message #1689919 is a reply to message #1689880] Tue, 24 March 2015 12:24 Go to previous messageGo to next message
Eclipse UserFriend
Yeah thats my workaround for now, but its quite tedious to do this on multiple machines and for multiple plugins. Not to mention that we do update the plugins from time to time which means the mapping is gone again.

Given the lack of reply on another PDE bug I filed I thought I'd try here first in the hope that the forum has a bigger crowd of knowledgable people than the people reading PDE bugreports.
Re: Access source bundles for unpacked plugins with a code-jar [message #1689953 is a reply to message #1689919] Tue, 24 March 2015 14:06 Go to previous messageGo to next message
Eclipse UserFriend
What's the bug number?
Re: Access source bundles for unpacked plugins with a code-jar [message #1689969 is a reply to message #1689953] Tue, 24 March 2015 15:00 Go to previous messageGo to next message
Eclipse UserFriend
The bug I filed is also related to the PyDev plugins and the way they are packaged, PDE does not seem to fully unpack the plugin when launching an RCP application from inside Eclipse:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=459434
Re: Access source bundles for unpacked plugins with a code-jar [message #1690285 is a reply to message #1689969] Thu, 26 March 2015 06:49 Go to previous message
Eclipse UserFriend
I've filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=463183 now.
Previous Topic:Lazy Tree get/setExpandedElements not Working
Next Topic:Need help for styling Editor Area
Goto Forum:
  


Current Time: Mon Oct 27 01:37:10 EDT 2025

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

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

Back to the top