Replacing a Java Element With a Local History Edition
    
    
      - Make sure that a Java view is visible.
      
- Open a Java editor for the Java file in which you want to replace a
      Java element with an edition from the local history.
      
- Activate the editor by clicking its tab in the editor area. The
      Outline view also displays the Java file. Note: The Package Explorer
      can be configured to show or not show Java elements in files. Use the
      Show Members in Package Explorer checkbox on the
      
         Java >
        Appearance preference page to set your preference. Java >
        Appearance preference page to set your preference.
- Select the element that you want to replace in the Outline or the
      Package Explorer.
      
- From the element's pop-up menu, select Replace With >
      Element from Local History.
      
- In the upper pane of the resulting dialog, all available editions of
      the selected element in the local history are displayed.
      
- Select an edition in the upper pane to view the differences between
      the selected edition and the edition in the workbench.
      
- When you have identified the edition with which you want to replace
      the existing Java element, click Replace.
      
- The local history edition replaces the current one in the editor.
      Note: The changed compilation unit has not yet been saved at this
      point.
      
Java views
      Java editor
    
      Using the local history
    
      Java outline