donderdag 19 maart 2009

RCP Default Perspective and Workspace

Setting the default perspective in an RCP application is something I needed for a specialist toolset I'm developing.

I first came to Eclipse when I needed a specialist editor to edit EULUMDAT files, the standard photometric data format in the European lighting industry.


I needed to edit large sets, so I came to Eclipse and before I knew it I had my own editor and verification builder running and published it as an Eclipse plugin.

Many people are scared of by the magnitude of Eclipse, so I now offer an RCP version for Windows and Mac as well, but an RCP version based on the Eclipse IDE. Naturally I want to start up in my own perspective rather than the Resource perspective and store the projects in my own space:


You need to add the following directives to your products config.ini file:


#Product Runtime Configuration File

osgi.splashPath=platform:/base/plugins/com.fold1.eulumdat.tools.branding
eclipse.product=org.eclipse.platform.ide
org.eclipse.ui/defaultPerspectiveId=com.fold1.eulumdat.tools.perspective
osgi.bundles.defaultStartLevel=4
osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start
osgi.instance.area.default=@user.home/Documents/EulumdatTools