Missing Source for plugins in PDE

Whilst writing an RCP application in Eclipse 3.2.1 I found it quite strange that some of the referenced Eclipse plugins that I was using had their source attached, while some didn’t. The problem isn’t helped by the fact that you (quite rightly) can’t update the Plug-in Dependencies library to attach the source. Whilst I haven’t got the complete, final and correct answer, I’ve got a little short term hack workaround.

For brevity below, I’ll replace org.eclipse.swt.win32.win32.x86_3.2.1.v3235 with swt321 and org.eclipse.swt.win32.win32.x86_3.2.2.v3235a with swt322

The plugin that was messing me around was SWT. Delving into the Eclipse plugins directory I noticed that there were two SWT Jars swt321.jar and swt322.jar. Looking into the relevant source location (i.e. the ...rcp.source.win32... directory) there was only source for swt321.

If I’d done this properly I’d have downloaded the correct source for the SWT version I was now using (i.e. the 3.2.2 update), create a swt322 directory and place the src.zip in there. To be honest, I was merely experimenting and the SWT code I was looking for was probably going to be pretty stable anyway, so I just copied the swt321 ;-).

Either way, after an Eclipse restart, it worked and the source could now be found.

Leave a Reply

You must be logged in to post a comment.