blob: eb161b2714dc7bc30ac40e0e7a02e1dbcbb56e8f [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>Editors and views</title>
</HEAD>
<BODY BGCOLOR="#ffffff">
<h2>
Editors and views</h2>
<P CLASS="Intro">Prior to commencing the Workbench tutorials found in this section,
it is important to first be familiar with the various elements of the Workbench.
A Workbench consists of:</p>
<ul>
<li>
perspectives</li>
<li>
views</li>
<li>
editors</li>
</ul>
<p CLASS="Intro">A perspective is a group of views and editors in
the Workbench window. One or more perspectives can exist in a single Workbench
window. Each perspective contains one or more views and editors. Within a
window, each perspective may have a different set of views but all perspectives
share the same set of editors.</p>
<p CLASS="Intro">A view is a visual component within the Workbench. It is typically
used to navigate a list or hierarchy of information (such as the resources in the Workbench),
or display properties for the active editor. Modifications made in a view are saved immediately.</p>
<p CLASS="Intro">An editor is also a visual component within the Workbench. It is typically used to edit or browse a
resource. The visual presentation might be text or a diagram.
Typically, editors are launched by clicking on a resource in a view.
Modifications made in an editor follow an open-save-close lifecycle model.
</p>
<p CLASS="Intro">Some features are common to both views and editors. We use the
term &quot;part&quot; to mean either a view or an editor. Parts can be active
or inactive, but only one part can be active at any one time.&nbsp; The active
part is the one whose title bar is highlighted. The active part is the target
for common operations like cut, copy and paste. The active part also determines
the contents of the status line. If an editor tab is not highlighted it indicates
the editor is not active, however views may show information based on the last
active editor.</p>
<p CLASS="Intro">In the image below, the Project Explorer view is active. </p>
<p CLASS="Intro"><img src="../images/Image2_active_view.png" alt="Workbench" border="0"></p>
<P CLASS="Intro">Clicking on the Outline view causes the Outline's title bar to
become highlighted and the Project Explorer's title bar to no longer be highlighted,
as shown below. The Outline view is now active. </p>
<P CLASS="Intro"><img src="../images/Image2_active_editor.png" alt="Welcome page selected" border="0">
</p>
</BODY>
</HTML>