Persistence

Purpose: To test persistence in the workbench.

Setup:

  1. Install Eclipse Platform.
  2. Delete the metadata for org.eclipse.ui.
Method:
  1. Start the workbench.  Confirm that the default perspective (Resource) and welcome editor both appear.
  2. Create a project with 3 files, one.txt, two.txt, and three.txt.  Open one.txt in the default perspective.
  3. In the navigator select the project and invoke Open Perspective > Java from the context menu.  Verify that a new Java perspective appears in the current window.  The input for the Packages view and navigator should be the project.
  4. Open two.txt in the Java perspective.
  5. Change the Workbench Preferences for "Open Perspective" to "Open in New Window".  Then open a Java perspective and verify that a new window is created.
  6. Now we have two windows.  The first window has two perspectives (resource and java).  In the resource perspective one.txt is open in an editor.  In the java perspective two.txt is open in an editor.  In the second window here is one Java perspective with no open editors.
  7. Invoke File > Exit.  Then restart the workbench and verify that the window, perspective and editor state of the workbench is restored.