I am trying to use the configurer.setSaveAndRestore(true);
feature of perspectives in RCP (Eclipse 3) to save the layout of the views, but I want it always to start up on a specific perspective.
What I am after is a place during startup (possibly overriding something in the activation classes somewhere) where I can safely call:
PlatformUI.getWorkbench().showPerspective(id,
PlatformUI.getWorkbench().getActiveWorkbenchWindow());
such that the application will switch to that perspective and the user won't know anything happened.
Edit:
I've tried to to i in the postWindowOpen method and this does switch, but you can see it doing it and it initialises all the views on the original perspective first, which I don't really want to happen.