blob: 0398fce0cbf8c9c354dd3d39cf0c1be82268b1f2 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="copyright" content=
"Copyright (c) IBM Corporation and others 2000, 2011. 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=utf-8" />
<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>
<h3 class="related">Related concepts</h3>
<a href="../concepts/concept-java-editor.htm">Java editor</a>
<h3 class="related">Related tasks</h3>
<a href="tasks-62.htm">Using the local history</a>
<h3 class="related">Related references</h3>
<a href="../reference/views/ref-view-outline.htm">Java outline</a>
</body>
</html>