blob: 6ee671df7db1ea1252fcbe1cccd17a46a9378a07 [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>Editor area</title>
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script>
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1 CLASS="Head">
Editor area</H1>
<P CLASS="Intro">
The editor area is where you modify the contents of files in the Workbench.</p>
<P CLASS="Para">
Here is what the editor area looks like when multiple files are open and a text
file is being edited:</P>
<P CLASS="Para">
<img src="../images/Image230_editor_area.png" alt="Editor Area" border="0" ></P>
<DIV CLASS="Topic" style="width: 559; height: 402">
<h2>
Marker bar</h2>
<P CLASS="Para">
The marker bar is the vertical bar located at the left of the editor area.&nbsp;&nbsp;</P>
<P CLASS="Para">
Here is what the marker bar looks like:</P>
<P CLASS="Para"> <img src="../images/Image231_marker_bar.png" alt="Marker Bar" border="0" ></P>
<h2>Markers</h2>
<P CLASS="Para">
Markers are displayed in the marker bar, to the left of the text editor.</P>
<P CLASS="Para">
Depending on the type of file displayed in the editor area, three kinds of markers
may be displayed:</P>
<UL CLASS="UnorderedList">
<LI CLASS="Item">
Bookmarks </LI>
<LI CLASS="Item">
Task markers (for associated tasks) </LI>
<LI CLASS="Item">
Debugging breakpoints </LI>
</UL>
<P CLASS="Para">
You can create and associate a marker with a specific line in a file by accessing the context menu from the marker bar,
which is directly to the left of that line. </P>
<P CLASS="Para">
Here is what the context menu of the marker bar looks like: </P>
<P CLASS="Para">
<img src="../images/Image232_marker_context.png" alt="Marker Bar Menu" border="1" > </P>
</DIV>
<DIV CLASS="Topic">
<h2>
Types of editors</h2>
<P CLASS="Para">
The Workbench uses three types of editors:</P>
<UL CLASS="UnorderedList">
<LI CLASS="Item">
Internal: These editors are launched inside the editor area in the Workbench window.</LI>
<LI CLASS="Item">
External: You can go outside the Workbench in the file system, edit a Workbench file outside the Workbench, and save the edited file. For example,
imagine that you add an SGML file to the Workbench. Later, you go into the file system and open the
file in an SGML editor, then save the file. The edited SGML file is still represented in the Workbench, even
though you did not edit the file in the Workbench. If you associate a file type with an external editor in
the Workbench
(<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.ui.preferencePages.FileEditors)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png">
<b>General &gt; Editors &gt; File Associations</b></a>
preference page), then the Workbench
will launch this external editor.</LI>
<LI CLASS="Item">
ActiveX: On Microsoft Windows platforms, the Workbench makes use of ActiveX controls for applications that allow for them. For example, Microsoft Word supports being embedded as an OLE
document. Thus if you have a <i>.doc</i> file in the Workbench, and Word is registered as the editor for
<i>.doc </i>files in your operating system, then opening the file will launch Word as an OLE document within the Workbench editor area. Notice how OLE documents also add such features as menus
and toolbar buttons.</LI>
</UL>
<p>The following illustrates Microsoft Word embedded as an OLE document:</p>
<DIV CLASS="Figure">
<DIV> <IMG SRC="../images/ref-7.png" alt="Workbench with OLE Editor" >
</DIV>
</DIV>
</DIV>
</BODY>
</HTML>