Restoring a deleted workbench element
- Ensure that a Java view that show Java elements inside files (such as the Outline view) is visible.
- Open the compilation unit to which you want to add a previously removed Java element from the local history.
- Activate the editor by clicking its tab in the editor area, and the Java view shows the content of the Java file.
- In the Java view, select the element to whose container type you want to restore the deleted element.
- From the type's pop-up menu in the Java view, select Restore from Local History.
- In the upper left pane of the resulting dialog, all available editions of the selected element in the local history are displayed.
- In the left pane check all elements that you want to replace.
- For every checked element select an edition in the right hand pane and view its content in the bottom pane.
- When you have identified the edition that you want to restore, press Restore. The local history editions are loaded into the editor.