blob: 4a5bd49a048cf00ee608e53bfebec5aa755df79b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<title>
Restoring a deleted workbench element
</title>
</head>
<body>
<h1>
Restoring a deleted workbench element
</h1>
<ol>
<li>
Ensure that a Java view that show Java elements inside files (such as the Outline view) is visible.
</li>
<li>
Open the compilation unit to which you want to add a previously removed Java element from the local history.
</li>
<li>
Activate the editor by clicking its tab in the editor area, and the Java view shows the content of the Java file.
</li>
<li>
In the Java view, select the element to whose container type you want to restore the deleted element.
</li>
<li>
From the type's pop-up menu in the Java view, select <strong>Restore from Local History</strong>.
</li>
<li>
In the upper left pane of the resulting dialog, all available editions of the selected element in the local history are displayed.
</li>
<li>
In the left pane check all elements that you want to replace.
</li>
<li>
For every checked element select an edition in the right hand pane and view its content in the bottom pane.
</li>
<li>
When you have identified the edition that you want to restore, press <strong>Restore</strong>.
The local history editions are loaded into the editor.
</li>
</ol>
<p>
<img src="../images/ngrelc.png" alt="Related concepts" border="0">
</p>
<p>
<a href="../concepts/concepts-7.htm">Java editor</a>
</p>
<p>
<img border="0" src="../images/ngrelt.png" alt="Related tasks">
</p>
<p>
<a href="tasks-62.htm">Using the local history</a>
</p>
<p>
<img border="0" src="../images/ngrelr.png" alt="Related reference">
</p>
<p>
<a href="../reference/ref-view-outline.htm">Java outline</a>
</p>
</body>
</html>