Perspective Layouts – Programmatic vs Declarative

One issue that developers new to RCP face is whether to add UI elements programmatically or declaratively. In my experience, most initially choose the programmatic approach because it seems more familiar. You know, why mess with extension points when you can just code it up and be done with it. But it’s almost always better… Continue reading Perspective Layouts – Programmatic vs Declarative

Running Unit Tests for RCP and OSGi Applications

Eclipse provides great tools for testing RCP and OSGi applications using JUnit, but there a few areas that are problematic. It’s not easy to run all the tests in a set of plug-ins. The test launcher allows you to run all the tests in a single project, but RCP and OSGi developers are usually working… Continue reading Running Unit Tests for RCP and OSGi Applications

RCP Target Platform Tips

Setting up a target platform for an Eclipse Rich Client Platform application is fairly simple. You simply download the RCP SDK, extract it to a directory, and then use the Target platform preferences page to point to the new directory. But managing target platforms over time can be more complicated, and I’d like to pass… Continue reading RCP Target Platform Tips

Testing Plug-ins with Fragments

As Eclipse plug-in and Rich Client Platform developers, we face unique challenges in how we structure and execute our unit tests. In this article, I suggest an approach to unit testing based on Eclipse fragments that can help us overcome these challenges. If you find yourself frustrated with your current plug-in testing options, read on!

An RCP Code Encyclopedia

One suggestion I always make to developers getting started with the Rich Client Platform is to set up a research workspace containing all of the Eclipse IDE plug-ins. The Eclipse IDE (along with the PDE and JDT) is the ultimate RCP application and examining this code is the best way to learn how things should… Continue reading An RCP Code Encyclopedia