blob: 4efbb42f2be3736f6367a8b68c9719752cd2e012 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//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>Replacing a resource with local history</title>
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>Replacing a resource with local history</H1>
<p>To replace a Workbench resource with a state in the local history:
</p>
<ol>
<li>In one of the navigation views, select the resource that you want to replace with
a local history state.</li>
<li>From the resources pop-up menu, select <b>Replace with</b> &gt; <b>Local
History</b>. The Replace from Local History page opens.</li>
<li>Select a state from the <b>Local History</b> list. The Text Compare editor opens.</li>
<li>Click the <b>Select Next Change</b> and <b>Select Previous Change</b> buttons
to browse through the changes made between states in the local history and
the Workbench resource.</li>
<li>Select the state you want to replace, and click <b>Replace</b>.</li>
</ol>
<P><em>Tip</em>: You can configure your general preferences to specify how many
days to keep files, or how many entries per file you want to keep, or the maximum
file size for files to be kept with the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ui.preferencePages.FileStates)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png">
<b>General &gt; Workspace &gt; Local History</b></a> preference page.
</P>
<p><img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br>
<a href="../concepts/concepts-17a.htm">Local history</a><br>
<a href="../concepts/concepts-12.htm">Resources</a>
</p>
<p><img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br>
<a href="tasks-70.htm">Comparing resources with the local history</a><br>
<a href="tasks-87b.htm">Restoring deleted resources from the local history</a><br>
<a href="tasks-88.htm">Setting local history preferences</a>
</p>
</BODY>
</HTML>