Editors

Depending on the type of file you are editing, the appropriate editor is displayed in the editor area. For example, if you are editing a .TXT file, a text editor displays 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 you attempt to close the editor or exit the Workbench with unsaved changes you will be prompted to save your editor's changes.

Eclipse Workbench, one editor 

When an editor is active the Workbench menubar and toolbar contain operations applicable to the editor. When a view becomes active, the editor operations are disabled. However, in some cases, certain editor may be appropriate in the context of a view and will remain enabled.

You can stack editors in the editor area and activate individual editors by clicking the tab for the editor. You can also tile editors 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. We will discuss how you can rearrange views and editors later in this tutorial.

Eclipse Workbench, two editors

If you open a resource that does not have an associated editor, the Workbench will attempt to launch an external editor registered with your platform.  These external editors are not tightly integrated with the Workbench and are not embedded into the Workbench's editor area. 

Windows only 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 you have Microsoft Word installed on your machine. If you have not installed Microsoft Word, Wordpad will open instead.

Next topic Views

Back to previous topic Editors and views

 Copyright IBM Corporation 2000, 2002. All Rights Reserved.