Archive for March, 2007

Missing Source for plugins in PDE

Friday, March 30th, 2007

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.
(more…)

Why have all your eggs in one basket?

Thursday, March 8th, 2007

I’m a great fan of Eclipse but sometimes I’m disappointed with how people use it. I’ll give you a simple example; when you create a Java project you get the option to “Create separate source and output folders“. In my opinion, it’s good practice to always do this - and hopefully there are few these days who would try to argue that having source and generated artefacts together is a good thing.

But why do so many developers stop there; why put your test cases in the same directories as your application classes, why put the configuration in there too? The simple answer is don’t - create additional source folders. Right click the project and select “New->Source Folder” - it’s as simple as that.
(more…)