System.setProperty(E4Workbench.CLEAR_PERSISTED_STATE, "true");
Too late for you but maybe usefull for other people.
As @Aiden says, we add -clearPersistedState
to the program arguments in run configurations.
It worked for us in e4 with Eclipse Neon 4.6.
public class Application implements IApplication {
public Object start(IApplicationContext content){
PlatformUI.getWorkbench().getPerspectiveRegistry().setDefaultPerspective("youperspective here");
//other code...
}
//other code...
}