Ruben Laguna's blog

Apr 23, 2007 - 1 minute read - Comments - eclipse java problems rcp setSaveAndRestore troubleshoot view workspace.xml

New views don't show up when using Eclipse RCP setSaveAndRestore

If you add a new view to an Eclipse RCP and when launch it the new view is not there you probably hit the problem described in this CT Arrington’s Weblog post.

The IWorkbenchConfigurer.setSaveAndRestore(true) called from your WorkbenchAdvisor can be the source of the problem. The Eclipse RCP platform is trying to restore the perspective from the serialized version stored on disk so it fails to load you new changes. You have several solutions [from the CT Arrington’s Weblog post].

  1. Delete the target platform workspace data. tipically in ...runtime-EclipseApplication\.metadata\.plugins\org.eclipse.ui.workbench\workbench.xml
  2. Set the Clear workspace data before launching in the run configuration. Run -> Run… -> Eclipse Application -> Main -> Workspace Data -> Clear workspace data before launching

Firefox and file:// Windows UNC paths Silly Apache JMeter 2.2 bug