blob: b8fa692d932bfb1295ca4e2cf6ec68b0a54ffa0d [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, 2007. 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>
Comparing a Java element with a local history edition
</title>
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
</head>
<body>
<h1>
Comparing a Java element with a local history edition
</h1>
<ol>
<li>
Make sure that a Java view is visible.
</li>
<li>
Open a Java editor for the Java file in which you want to compare a Java element with an edition from the local history.
</li>
<li>
Activate the editor by clicking its tab in the editor area. The Outline view also displays the Java file.
<em>Note: The Package Explorer can be configured to show or not show
Java elements in files. Use the
<strong>Show Members in Package Explorer</strong> checkbox on the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.AppearancePreferencePage)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png" alt="Opens the Appearance preference page">
<strong>Java &gt; Appearance</strong></a> preference page to set your preference.</em>
</li>
<li>
Select the element that you want to compare in the Outline or the Package Explorer.
</li>
<li>
From the element's pop-up menu, select <strong>Compare With &gt; Element from Local History</strong>.
</li>
<li>
The <strong>History</strong> view opens and shows all editions of the selected element available in the local history.
</li>
<li>
Select an edition in the hitory view to see the differences between the selected edition and the edition in the workbench in a comparison editor.
</li>
<li>
If you are done with the comparison, click close the comparison editor.
</li>
</ol>
<p>
<img src="../images/ngrelc.png" alt="Related concepts" border="0">
</p>
<p>
<a href="../concepts/cjavaviews.htm">Java views</a><br>
<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>