Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318994 - No source bundles in PDE launches
Summary: No source bundles in PDE launches
Status: RESOLVED WORKSFORME
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.7 M1   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 07:51 EDT by Konstantin Scheglov CLA
Modified: 2010-07-06 14:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.