blob: 7eb7784263b52012f27934f389161bbcd0519497 [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, 2013. 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>Closing an editor</title>
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
</HEAD>
<BODY BGCOLOR="#ffffff">
<h1>Closing an editor</h1>
<P CLASS="Para"> Now that there are a couple of editors open, here's how to close
them.&nbsp;</P>
<ol>
<li>
<P CLASS="Para">
Select the JanesFile.txt editor tab.&nbsp;</P>
</li>
<li>
<p CLASS="Para">
In the text area add a 6th line of text:</p>
<blockquote>
<p CLASS="Para">This is a 6th line</p>
</blockquote>
</li>
<li>
<P CLASS="Para"> To close the editor, choose one of the following options:</P>
<ul>
<li>
<p CLASS="Para">
Click the close button (&quot;X&quot;)
<img src="../images/Image19_close_on_tab.png" alt="Editor Tab" border="0">
in the tab of the editor.</p>
</li>
<li>
<p CLASS="Para"> Select <b>File &gt; Close</b> from the menu bar.</p></li>
</ul>
</li>
<li>
<P CLASS="Para"> Note the prompt to save the file before the editor is closed.</P>
</li>
<li>
<P CLASS="Para"> Click OK to save any changes and close the editor.</P>
</li>
</ol>
<P>If the editor was closed using <b>File &gt; Close</b>, notice that the option
<b>File &gt; Close All</b> was also displayed. This is a quick way to close
all of the open editors. If <b>File &gt; Close All</b> is chosen, a prompt will
appear to choose which editors with unsaved changes should be saved. </P>
<P>The preference to close editors automatically can be found in the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ui.preferencePages.Editors)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="command link">
<b>General &gt; Editors</b></a> preference page. There you can configure the number of editors that
can be opened prior to editors being reused and what should occur when all editors
have unsaved changes.</P>
</BODY>
</HTML>