Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318994

Summary: No source bundles in PDE launches
Product: [Eclipse Project] PDE Reporter: Konstantin Scheglov <Konstantin.Scheglov>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ankur_sharma, curtis.windatt.public
Version: 3.6   
Target Milestone: 3.7 M1   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Konstantin Scheglov CLA 2010-07-06 07:51:21 EDT
Build Identifier: I20100608-0911

In the past all plugins have had source bundles attached. But since 3.6 when I select plugins on "Plug-ins" page of launch configuration dialog, source bundles are not available in runned Eclipse instance.

I've added hack into org.eclipse.pde.internal.launching.launcher.BundleLauncherHelper to include them, but this is not nice IMHO.

Do I miss something? How to include source bundles, but still be able to choose plugins to include into launch?

		while (tok.hasMoreTokens()) {
			String token = tok.nextToken();
			processSingleBundleToken(set, map, token, null);
			// XXX
			processSingleBundleToken(set, map, token, ".source");
		}


Reproducible: Always
Comment 1 Ankur Sharma CLA 2010-07-06 10:28:58 EDT
The source plug-ins will show up as before if the preference 'Plug-in Development' -> 'Show source plug-ins' is selected. It is unchecked by default.
Comment 2 Curtis Windatt CLA 2010-07-06 12:03:22 EDT
Why do you need source bundles in your launched target?  Usually you only need source bundles in the IDE where you are debugging/developing.
Comment 3 Konstantin Scheglov CLA 2010-07-06 14:06:18 EDT
I work on WindowBuilder, WYSIWYG GUI builder for Eclipse.
One of its small features is displaying JavaDoc of setX() method as tooltip for property. But if SWT/JFace is without sources, then I will not have JavaDoc. Or even easier - I will not see JavaDoc for SWT components in Java editor.
Comment 4 Curtis Windatt CLA 2010-07-06 14:11:12 EDT
Then you are best off using the workaround Ankur mentioned, changing the preference back.  The majority of users are not developing applications that use the source bundles, so source bundles are not visible in the launch configs by default.
Comment 5 Konstantin Scheglov CLA 2010-07-06 14:19:26 EDT
OK, now I understand why this change was done.
Thank you both for help.