1. |
Make sure that either the Outline view or the Hierarchy view is visible. |
2. |
Open a Java editor for the Java file in which you want to replace a Java element with a copy from the local history. |
3. |
Activate the editor by clicking its tab in the editor area. The Outline and/or Hierarchy views also display the Java file. |
4. |
In either the Outline view or the Hierarchy view, select the element that you want to replace. |
5. |
From the element's context menu, select Replace 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 a version in the upper pane to view the differences between the selected version and the version in the workbench. |
8. |
When you have identified the edition with which you want to replace the existing Java element, click OK. |
9. |
The local history edition replaces the current one in the editor and is displayed in the Outline view. Note: The changed compilation unit has not yet been saved at this point. |