Persistence
Purpose: To test persistence in the workbench.
Setup:
-
Install Eclipse Platform.
-
Delete the metadata for org.eclipse.ui.
Method:
-
Start the workbench. Confirm that the default perspective (Resource)
and welcome editor both appear.
-
Create a project with 3 files, one.txt, two.txt, and three.txt. Open
one.txt in the default perspective.
-
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.
-
Open two.txt in the Java perspective.
-
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.
-
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.
-
Invoke File > Exit. Then restart the workbench and verify that the
window, perspective and editor state of the workbench is restored.