Restoring a deleted workbench element

  1. Ensure that a Java view that show Java elements inside files (such as the Outline view) is visible.

  2. Open the compilation unit to which you want to add a previously removed Java element from the local history.

  3. Activate the editor by clicking its tab in the editor area, and the Java view shows the content of the Java file.

  4. In the Java view, select the element to whose container type you want to restore the deleted element.

  5. From the type's pop-up menu in the Java view, select Restore from Local History.

  6. In the upper pane of the resulting dialog, all available editions of the selected element in the local history are displayed.

  7. Select an edition in the upper pane to view the content of the selected element.

  8. When you have identified the edition that you want to restore, press Restore. The local history edition is loaded into the editor.

Related concepts

Java editor

Related tasks

Using the local history
 

Related reference

Outline view for Java

 
Copyright IBM Corporation 2000, 2002. All Rights Reserved.