blob: c1925208aef1fa9a2af5d16c1392747379861938 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html 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=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" type="text/javascript"> </script>
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>Replacing a resource with local history</H1>
<p>To replace an unmanaged 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>To replace a Workbench resource managed by CVS 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>History...</b>.
The History View opens.</li>
<li>Put the History View into <em>Local Revision</em> mode by clicking on the Local Revision
toolbar button. This will display only Local History revisions in the History View.</li>
<li>Select the revision you want to replace the current revision and select <b>Get Contents</b>
from the context menu. </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" alt="command link">
<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>