blob: 329ce1f0f40dae8f4e3c9fcf4bc295b7c2993cd6 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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>Editors</title>
</head>
<body bgcolor="#ffffff">
<h3>
Editors</h3>
<p class="Para"> Depending on the type of file that is being edited, the appropriate
editor is displayed in the editor area. For example, if a .TXT file is being
edited, a text editor is displayed in the editor area. The figure below shows
an editor open on the file sample.txt. The name of the file appears in the tab
of the editor. If an asterisk (*) appears at the left side of the tab this indicates
that the editor has unsaved changes. If an attempt is made to close the editor
or exit the Workbench with unsaved changes a prompt to save the editor's changes
will appear.</p>
<p><img src="../images/Image5_text_editor.png" alt="Eclipse Workbench, one editor" border="0" />
</p>
<p class="Para">When an editor is active the Workbench menu bar and toolbar contain
operations applicable to the editor. When a view becomes active, the editor
operations are disabled. However, certain operations may be appropriate
in the context of a view and will remain enabled.</p>
<p class="Para"> The editors can be stacked in the editor area and individual
editors can be activated by clicking the tab for the editor. Editors can also
be tiled side-by-side in the editor area so their content can be viewed simultaneously.
In the figure below, editors for sample.txt and otherFile.txt have been placed
one above the other. Instructions will be given later in this tutorial explaining
how to rearrange views and editors.</p>
<p><img src="../images/Image6_two_editors.png" alt="Eclipse Workbench, two editors" border="0" />
</p>
<p>If a resource that does not have an associated editor is opened, the Workbench
will attempt to launch an external editor registered with the platform. These
external editors are not tightly integrated with the Workbench and are not embedded
into the Workbench's editor area. </p>
<p>Also, the editors can be cycled through using the back and forward arrow buttons
in the toolbar and by using the Ctrl+F6 accelerator. The arrow buttons move
through the last mouse selection points and permits moving through several points
in a file before moving to another one. Ctrl+F6 pops up a list of currently
selected editors, by default, the editor used before the current one is selected.
(On the Macintosh, the accelerator is Command+F6.)</p>
<p filter="ws=win32"><img src="../images/win_only.png" alt="Windows only" border="0" />
On Windows the Workbench will also attempt to launch the editor in-place as an
OLE document editor. For example, editing a DOC file will cause Microsoft Word
to be opened in-place within the Workbench if Microsoft Word is installed on
the machine. If Microsoft Word has not been installed, Word Pad will open instead.</p>
</body>
</html>