Bookmarks View

Purpose: To test the Bookmark view in Eclipse.  We will open the view, add a number of bookmarks to some files, open the source file for each bookmark and then delete those bookmarks.

Setup:

  1. Install Eclipse Platform.
  2. Create a java project containing three java files and a text file.
Method:
  1. Start the workbench.
  2. Invoke Perspective > Show View > Bookmarks and verify that the Bookmarks view appears.
  3. Select a java file in the navigator and invoke Edit > Add Bookmark.  Verify that a new bookmark appears in the Bookmarks view for the selected java file.
  4. Double click the bookmark in the bookmarks view and verify that an editor opens on the source file.
  5. Select the 10th line of text in the editor and invoke Add Bookmark in the context menu.  A dialog should appear where you can type the bookmark label.  Enter "Line 10" and press OK.  Verify that another bookmark appears in the Bookmarks view with the label "Line 10".  A bookmark icon should also appear in the editor to the left of line 10.
  6. Close the editor.
  7. Select "Line 10" in the bookmarks view and press the "Go to File" button in the toolbar.  Verify that an editor opens on the source file and that line 10 is selected.
  8. Right click on the bookmark icon in the editor and invoke "Remove Bookmark".  Verify that the bookmark disappears in the editor and the bookmarks view.
  9. In the navigator select all three java files, verify that "Add Bookmark" is enabled, and then invoke it.  Verify that 3 bookmarks are appear in the bookmarks view.
  10. Select a project, folder, or any combination of project | folder with file.  Verify that "Add Bookmark is disabled.
  11. Go to the bookmarks view and invoke "Select All" from the context menu.  Verify that everything is selected.
  12. Then press "Return" in the bookmarks view and verify that all of the bookmarks are opened in editors.
  13. Invoke "Delete" in the bookmarks view and verify that all bookmarks are deleted.