Abridged Eclipse Mars (4.5) Documentation Workbench User Guide
Abridged Eclipse Mars (4.5) Documentation Workbench User Guide
Contents
1. Eclipse platform overview
2. Getting started
2.1. Basic tutorial
2.1.1. The Workbench
2.1.2. Editors and views
2.1.2.1. Editors
2.1.2.2. Views
2.1.3. A simple project
2.1.3.1. Using the File menu
2.1.3.2. Using the popup
2.1.3.3. Using the New button
2.1.4. Closing an editor
2.1.5. Navigating resources
2.1.5.1. Opening resources in the Project Explorer
2.1.5.2. Go To
2.1.6. Files
2.1.7. Exporting files
2.1.8. Importing files
2.1.8.1. Drag and drop or copy and paste
2.1.8.2. Import wizard
2.1.9. Deleting resources
2.1.10. Working with other editors
2.1.10.1. External editors
2.1.10.2. Embedded editors
2.1.10.3. Editing files outside the Workbench
2.1.11. Copying, renaming and moving
2.1.11.1. Copying
2.1.11.2. Renaming
2.1.11.3. Moving
2.1.12. Searching
2.1.12.1. Starting a search
2.1.12.2. The Search view
2.1.13. Tasks and markers
2.1.13.1. Unassociated tasks
2.1.13.2. Associated tasks
2.1.13.3. Opening files
2.1.14. Bookmarks
2.1.14.1. Adding and viewing bookmarks
2.1.14.2. Using bookmarks
2.1.14.3. Removing bookmarks
2.1.15. Rearranging views and editors
2.1.15.1. Rearranging views
2.1.15.2. Tiling editors
2.1.15.3. Rearranging tabbed views
2.1.15.4. Maximizing and minimizing
2.1.16. Perspectives
2.1.16.1. New perspectives
2.1.16.2. New windows
2.1.16.3. Saving perspectives
2.1.16.4. Turning menu and tool bar items on and off
2.1.17. Comparing
2.1.17.1. Simple compare
2.1.17.2. Understanding the comparison
2.1.17.3. Working with the comparison
2.1.18. Local history
2.1.19. Responsive UI
2.1.20. Exiting the Workbench
2.3. External tools tutorial
2.3.3. External tools
2.3.3.1. Project builders
2.3.3.2. Stand-alone external tools
3. Concepts
3.1. Welcome
3.2. Workbench
3.2.1. Resources
3.2.2. Resource hierarchies
3.2.3. Linked resources
3.2.4. Virtual folders
3.2.5. Path variables
3.2.6. Resource filters
3.2.7. Working sets
3.2.8. Builds
3.2.9. Local history
3.3. Perspectives
3.5. Views
3.5.1. Detached views
3.5.3. Project Explorer view
3.5.5. Tasks view
3.5.6. Problems view
3.5.7. Outline view
3.5.8. Properties view
3.5.9. Search view
3.6. Toolbars
3.7. Markers
3.8. Bookmarks
3.9. Label decorations
3.11. External tools
3.11.2. External tools
3.13. Accessibility features in Eclipse
3.13.1. Navigating the user interface using the keyboard
3.13.2. Accessibility features in textual editors
3.13.3. Fonts and colors in Eclipse
3.14. Features
4. Tasks
4.3. Working with perspectives
4.3.1. Switching between perspectives
4.3.2. Specifying the default perspective
4.3.3. Opening perspectives
4.3.4. Changing where perspectives open
4.3.5. Showing and hiding menu items and toolbar buttons
4.3.6. Configuring perspective command groups
4.3.7. Configuring perspective shortcuts
4.3.8. Saving a user defined perspective
4.3.9. Deleting a user defined perspective
4.3.10. Resetting perspectives
4.4. Working with views and editors
4.4.1. Opening views
4.4.2. Moving and docking views
4.4.3. Rearranging tabbed views
4.4.4. Detaching views and editors
4.4.5. Opening files for editing
4.4.6. Associating editors with file types
4.4.7. Editing files outside the Workbench
4.4.8. Tiling editors
4.4.9. Maximizing and minimizing in the eclipse presentation
4.5. Customizing the Workbench
4.5.1. Customizing welcome
4.5.1.1. Customize Welcome Dialog
4.5.2. Rearranging the main toolbar
4.5.3. Changing the key bindings
4.5.4. Changing fonts and colors
4.5.5. Controlling single and double click behavior
4.5.6. Importing and exporting preferences
4.6. Working with projects, folders and files
4.6.1. Creating a project
4.6.2. Closing projects
4.6.3. Deleting projects
4.6.4. Creating a folder
4.6.5. Creating a file
4.6.6. Creating linked resources
4.6.7. Creating virtual folders
4.6.8. Moving resources
4.6.9. Copying resources
4.6.10. Renaming resources
4.6.11. Deleting resources
4.6.12. Viewing resources properties
4.6.13. Creating resource filters
4.7. Navigating and finding resources
4.7.1. Finding a resource quickly
4.7.2. Searching for files
4.7.3. Searching for text within a file
4.7.4. Showing or hiding files in the Project Explorer view
4.7.5. Linking the Project Explorer view to the active editor
4.8. Problems, bookmarks, tasks and other markers
4.8.1. Creating a bookmark within a file
4.8.2. Creating a bookmark for an entire file
4.8.3. Deleting a bookmark
4.8.4. Adding line items in the Tasks view
4.8.5. Associating a task with a resource
4.8.6. Deleting tasks
4.8.7. Filtering the Tasks and Problems views
4.8.8. Automatically fixing problems
4.9. Comparing resources
4.9.1. Setting preferences for comparing files
4.9.2. Understanding the comparison
4.9.3. Merging changes in the compare editor
4.10. Working with local history
4.10.1. Comparing resources with the local history
4.10.2. Replacing a resource with local history
4.10.3. Restoring deleted resources from local history
4.10.4. Setting local history preferences
4.11. Importing
4.11.1. Importing existing projects
4.11.2. Importing resources from the file system
4.11.3. Importing resources from an Archive file
4.12. Exporting
4.12.1. Exporting resources to the file system
4.12.2. Exporting resources to an Archive file
4.13. Building resources
4.13.1. Performing builds automatically
4.13.2. Performing builds manually
4.13.3. Saving resources automatically before a manual build
4.13.4. Changing build order
4.15. Running external tools
5. Reference
5.1. Minimizing data loss from crashes
5.2. Preferences
5.2.1. Accessibility
5.2.2. Annotations
5.2.9. Appearance
5.2.12. Build Order
5.2.13. Capabilities
5.2.14. Colors and Fonts
5.2.15. Compare/Patch
5.2.16. Content Types
5.2.26. Editors
5.2.27. External Tools
5.2.28. File Associations
5.2.29. General
5.2.30. Globalization
5.2.34. Keys
5.2.35. Label Decorations
5.2.36. Linked Resources
5.2.37. Local History
5.2.38. Network Connections
5.2.39. Perspectives
5.2.40. Quick Diff
5.2.41. Search
5.2.42. Secure Storage
5.2.43. Spelling
5.2.44. SSH2
5.2.45. Startup and Shutdown
5.2.50. Text Editors
5.2.51. Tracing
5.2.52. UI Responsiveness Monitoring
5.2.53. Web Browser
5.2.54. Workspace
5.2.55. Workspaces
5.4. Secure storage
5.4.1. How secure storage works
5.4.2. Password recovery
5.4.3. Life of a master password
5.4.4. Secure storage runtime options
5.5. User interface information
5.5.1. Development environment
5.5.1.1. Workbench toolbar
5.5.1.2. Perspective Bar
5.5.1.3. View toolbars
5.5.1.4. Builds
5.5.1.5. Perspectives
5.5.1.6. Local history
5.5.1.7. List of key bindings
5.5.1.8. Switching workspaces
5.5.2. Views and editors
5.5.2.1. Workbench window layout
5.5.2.2. Editor area
5.5.2.3. Compare editor
5.5.2.4. Search view
5.5.2.5. Project Explorer view
5.5.2.6. Bookmarks view
5.5.2.7. Properties view
5.5.2.8. Outline view
5.5.2.10. Tasks view
5.5.2.11. Problems view
5.5.2.14. Error Log view
5.5.3. Wizards
5.5.3.1. New Project wizard
5.5.3.2. New Folder wizard
5.5.3.3. New File wizard
5.5.3.5. Import wizard
5.5.3.6. Export wizard
5.5.5. Search
5.5.5.1. File search
5.5.5.2. Open Resource dialog
5.5.6. Workbench menus
5.5.6.1. File menu
5.5.6.2. Edit menu
5.5.6.3. Navigate menu
5.5.6.5. Window menu
5.5.7. Icons and buttons
5.5.7.1. Project Explorer view icons
5.5.7.2. Editor area marker bar
5.5.7.3. Tasks view
5.5.7.4. Toolbar buttons
5.5.7.5. External Tools Icons
6. Tips and tricks
6.1. Workbench
6.2. Editing
8. Legal
Workbench
The term Workbench refers to the desktop development environment. The Workbench aims to achieve seamless tool integration and controlled
openness by providing a common paradigm for the creation, management, and navigation of workspace resources.
Each Workbench window contains one or more perspectives. Perspectives contain views and editors and control what appears in certain menus and
tool bars. More than one Workbench window can exist on the desktop at any given time.
Features
Resources
Perspectives
Views
Editors
Opening perspectives
Opening views
Switching between perspectives
Showing and hiding menu items and toolbar buttons
Configuring perspective command groups
Configuring perspective shortcuts
Toolbar buttons
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.
2.1.2.1. Editors
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 file1.txt. The name of the file appears in the tab of the
editor. An asterisk (*) appearing at the left side of the tab 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.
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.
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 JanesFile.txt and JanesFile2.txt have been
placed above the editor for JanesText.txt. Instructions will be given later in this tutorial explaining how to rearrange views and editors.
If a resource does not have an associated editor, 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 in the Workbench's editor area.
Editors can be cycled through using the back and forward arrow buttons in the toolbar. These move through the last mouse selection points and
permit moving through several points in a file before moving to another one. Additionally, editors can be cycled by using the Ctrl+F6 accelerator.
Ctrl+F6 pops up a list of currently open editors. By default, the list will have selected the editor used before the current one, allowing you to easely go
back to the previous editor.
On Windows, if the associated editor is an external editor, the Workbench may 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.
2.1.2.2. Views
The primary use of Views is to provide navigation of the information in the Workbench. For example:
The Bookmarks view displays all bookmarks in the Workbench along with the names of the files with which the bookmarks are associated.
The Project Explorer view displays the Workbench projects, their folders and files.
A view might appear by itself or stacked with other views in a tabbed notebook.
To activate a view that is part of a tabbed notebook simply click its tab.
Views have two menus. The first, which is accessed by right clicking on the view's tab, allows the view to be manipulated in much the same manner as
the menu associated with the Workbench window.
The second menu, called the "view pull-down menu", is accessed by clicking the down arrow . The view pull-down menu typically contains
operations that apply to the entire contents of the view, but not to a specific item shown in the view. Operations for sorting and filtering are commonly
found in the view pull-down.
A view can be displayed by selecting it from the Window > Show View menu. A perspective determines which views may be required and displays
these on the Show View sub-menu. Additional views are available by choosing Other... at the bottom of the Show View sub-menu. This is just
one of the many features that provide for the creation of a custom work environment.
Through the normal course of using the Workbench you will open, move, resize, and close views. If you'd like to restore the perspective back to its
original state, you can select the Window > Perspective > Reset Perspective menu operation.
If you sneak a peek at the navigation view, you will see that it now contains the simple project we just created.
Create a second project called JaneQUser2 using the same steps, but instead of clicking Finish, click Next. At this point you can specify other
projects that project JaneQUser2 depends on. Since we want to create two independent projects we will not select any of the projects in the Project
References table. Click Finish to create your second simple project.
2. In the Workbench window's toolbar, activate the drop-down menu on the New Wizard button and select File. To activate the drop-
down menu simply click on the down arrow.
3. In the New File wizard, your folder's name and path already appear by default in the Enter or select the parent folder field. This is because
you chose to create the new file while this folder was selected in one of the navigation views and the view was active.
4. In the File name field, type a unique name for a new text file, including the .txt file extension, for example "JanesFile.txt".
5. Click Finish when you are done.
6. The Workbench has an editor capable of editing text files. A text editor is automatically opened on the newly created file.
7. In the text editor, type in the following five lines:
This is a sample text file.
There is not much else
we can really say about it other
than it has five lines of
text that are rather dull.
Notice that the editor tab has an asterisk (*) at the left of the filename. The asterisk indicates that the editor has unsaved changes.
8. In the Workbench window's toolbar, click the Save button to save your work.
9. In one of the navigation views ensure your folder is still selected and the navigation view is active.
10. Click New Wizard in the Workbench toolbar. Previously we clicked on the drop-down arrow of the New button. Here we clicked on the
button itself which has the same effect as choosing File > New > Other...
11. In the New wizard, select General > File. Then click Next.
12. Once again, your folder's name and path appears by default in the Enter or select the parent folder field.
13. In the File name field, type a unique name for an .ini file, for example "JanesINIFile.ini". Click Finish when you are done.
14. Since the Workbench does not have any editors registered for .ini files, it may launch an external editor on the file if one is registered with the
operating system. For the moment, close the editor.
Now that we have created our resources, one of the navigation views shows our two projects, the folder and its two files. To the right of one of the
navigation views is the text editor open on the first file we created (JanesFile.txt). To proceed with the following example create a second file
(JanesFile2.txt).
Click the new JanesFile2.txt editor tab. Now select the file JanesINIFile.ini in one of the navigation views. Then select the Link with Editor
button in the local toolbar or view menu of one of the navigation views. Lastly, click on the editor tab for JanesFile.txt. Notice how the navigation
view updated itself to select the file you are currently editing (JanesFile.txt). If you don't like this automatic update you can easily turn it off by
deselecting Link with Editor.
2.1.4. Closing an editor
Now that there are a couple of editors open, here's how to close them.
1. Select the JanesFile.txt editor tab.
2. In the text area add a 6th line of text:
This is a 6th line
3. To close the editor, choose one of the following options:
2.1.5.2. Go To
The Go To operation makes it easy to jump to a specific resource in the navigation views.
1. Select one of the navigation views. Its title bar will be highlighted (according to the operating system's color scheme).
2. From the menu bar choose Navigate > Go To > Resource....
3. In the Go To Resource dialog type "JanesF" into the pattern field at the top of the dialog.
As the filename is typed, the dialog filters the set of possible matches based on what has been entered so far.
4. Select JanesFile.txt from the Matching items field and click OK or simply press Enter.
2.1.6. Files
The projects, folders and files that you create with the Workbench are all stored under a single directory that represents your workspace. The location
of the workspace was set in the dialog that first opens when you start the Workbench.
If you have forgotten where that location is, you can find it by selecting File > Switch Workspace.... The workspace directory will be displayed in
the dialog that appears. IMPORTANT: After recording this location, hit Cancel to close the dialog, or the Workbench will exit and re-open on
whatever workspace was selected.
All of the projects, folders and files that you create with the Workbench are stored as normal directories and files on the machine. This allows the use
of other tools when working with the files. Those tools can be completely oblivious to the Workbench. A later section will look at how to work with
external editors that are not integrated into the Workbench.
Export wizard
The Export wizard can be used to export from the Workbench to the file system.
1. Select the project JaneQUser in the navigation view.
2. From the popup menu, select Export.
3. In the Export wizard, select File system, then click Next.
4. Expand JaneQUser project, and click on JanesFolder. In the right pane ensure that only JanesINIFile.ini is selected. Notice the folder and
project in the left pane now have a grayed checkbox indicating that some, but not all, of their contents will be exported.
The Filter Types button can be used to filter the types of resources to export.
Note: To export JanesINIFile.ini only, simply select it in the navigation view and choose File > Export. The Export wizard will automatically
ensure it is the only file selected for export.
5. In the To directory field, type or browse to select a location in the file system for the exported resources to reside.
If the name of a directory that does not exist is entered the Export wizard will offer to create it once Finish is selected.
6. In the Options area, options are given to:
Overwrite existing resources without warning
Create directory structure for files or Create only selected directories
7. Click Finish when done.
When dragging resources into one of the navigation views, the project/folder that the resource is being dropped into will be selected.
Drag the file over JaneQUser2 and release the mouse button.
3. Notice that the file is copied into the Workbench and placed into JaneQUser2.
4. This can also be achieved by copying the file in the file system explorer, then selecting the destination in the navigation view and choosing Edit >
Paste.
Generally, files and folders can be imported in a project by making copies under the project folder, or by linking to the original files and folders by
creating link files and folders. When folders are drag and dropped (not only files), the dialog also allows you to create a project hierarchy with virtual
folders. A virtual folder is a folder hierarchy in the Workspace whose files are all links referring to the original file system location.
The Workbench supports OLE document editors, and some editors provide OLE document support allowing it to be opened in its own
window, or embedded inside another window like the Workbench. This will be discussed in more detail in the next section.
2. Double click on JanesFile.txt and ensure that it contains the following text.
This is a sample text file
There is not much else
we can really say about it other
than it has five lines of
text that are rather dull.
3. Close the editor on JanesFile.txt.
4. Select the project JaneQUser. Using the project's pop-up menu create a folder named JanesOtherFolder.
2.1.11.1. Copying
You can copy JanesFile.txt to the new folder (JanesOtherFolder) using the following steps.
1. Ensure that the setup described in the introduction to this section has been performed.
2. In one of the navigation views, select JanesFile.txt.
3. From the file's context menu, select Copy (or Ctrl+C)
4. In one of the navigation views, select JanesOtherFolder as the destination.
5. From the folder's context menu, select Paste (or Ctrl+V).
As an alternative to copying files using the copy operation, it is also possible to copy files by holding down the Ctrl key while dragging a file from one
folder to another folder.
Once the file has been copied it can be renamed.
2.1.11.2. Renaming
Now that JanesFile.txt has been copied from JanesFolder to JanesOtherFolder it is ready to be renamed as something else.
1. In one of the navigation views, select JanesFile.txt in JanesOtherFolder.
2. From the file's context menu, select Rename.
3. The navigation view overlays the file's name with a text field. Type in JanesText.txt and press Enter.
To halt the renaming of a resource, Escape can be pressed to dismiss the text field.
Copy and rename works on folders as well.
1. In one of the navigation views, select the folder JanesOtherFolder.
2. From the folder's context menu choose Rename.
3. Once again the navigation view overlays the folder name with an entry field to allow the typing in of a new name. Change the folder name to be
JanesSecondFolder.
4. Rename the folder back to its original name (JanesOtherFolder).
2.1.11.3. Moving
Having copied and renamed several of the resources, now it's time to move some resources around. JanesOtherFolder and its file will be moved to be
a sub-folder of the original folder JanesFolder.
1. In the Project Explorer view, select JanesOtherFolder.
2. From the file's context menu, select Move.
3. In the Folder Selection dialog choose JanesFolder and click OK.
4. In the Project Explorer JanesFolder now contains JanesOtherFolder. Expand JanesOtherFolder and confirm that it contains JanesText.txt.
As an alternative to moving files using the move operation, it is also possible to move files by dragging a file from one folder to another folder.
Remember that to copy files from one folder to the other, Ctrl needs to be held down while performing the drag and drop operation.
2.1.12. Searching
Text strings and files can be searched for in the Workbench. In this section, Search will be used to perform a text search across the resources
that are shown in the navigation view. Instruction will also be given on how to use the Search view to work with the results.
3. The Case sensitive checkbox can be selected or unselected depending on whether or not a case sensitive or insensitive search is to be
performed. You can also select the Regular expression checkbox to enable more powerful searching capabilities. To see what is available in
regular expression mode, you can hit Ctrl-Space over the text field to get content assistance that lists the possibilities. For this example, just
check the Case sensitive box to search for lowercase "it".
4. The kinds of files to include in the search can be specified in the File name patterns field. Click Choose... to open the Select Types dialog.
This dialog provides a quick way to select from a list of registered extensions.
For the moment, the search will be confined to .txt files. Ensure *.txt is checked and click OK.
5. In the Scope field, specify the files and folders to include in the search. The choices are: the entire workspace, the currently selected resources
in the Workbench, or a working set which is a named, customized group of files and folders. Leave the scope as workspace.
6. Use the Customize button to choose what kinds of searches are available in the dialog. This setting may be left unchanged.
7. Click Search. At this point, the Search view will be made visible, and it will begin to fill in with the results of the search. The stop button in the
Search view can be clicked to cancel the search while it is in progress.
8. Observe that the Search view displays:
The next section will describe how to work with the Search view.
Within the Search view two files are shown and within each file there were 2 matches found.
1. Click the Show Next Match button to navigate to the first match of the search expression ("it").
Notice that the file JanesFile.txt is automatically selected and opened in the editor area.
Click Show Next Match button two more times. Once again the Search view automatically opens the file (JanesText.txt).
2. It is sometimes useful to remove uninteresting matches from the search results. The Search view's popup menu allows you to do this using
Remove Selected Matches which removes any selected file entries (and all matches in them) from the Search view. Note that this only
removes the entries in the Search view, it does not affect the files themselves. Select JanesFile.txt and choose Remove Selected Matches
from the popup menu. The Search view now shows only the matches for JanesText.txt.
3. Perform a second search for "that" by clicking on the Search button in the Workbench's toolbar.
4. The Search view updates to show the results of the new search.
Use the drop down button on the Search view's toolbar to move back and forth between the two search results.
5. In the drop down button choose 'it' - 1 match in workspace. The Search view switches back to show the original search. On the context
menu choose Search Again to repeat the initial search. Notice that once again there are four matches.
So far you have seen how to manage your search results and how to switch between different searches. However, it might happen that you do not
want the search view to change even if further searches are performed. For this you can pin the search view, which causes subsequent searches to be
shown in a second Search view.
4. In the Description field, type a brief description for the task that will be associated with that line in the text file.
7. After the new task has been added, click in the editor on the first line or any other line above the line with which the new task is associated.
8. Add several lines of text to the file at this point.
9. Notice that as lines of text are added above it, the task marker moves down in the marker bar in order to remain with the associated line in the
file. The line number in the Tasks view is updated when the file is saved.
10. In the Tasks view, access the context menu for the task that was just created.
11. Select Mark Completed.
12. Now select Delete Completed Tasks from the marker's context menu.
13. Notice that the task marker disappears from the marker bar and the task is removed from the Tasks view.
2.1.14. Bookmarks
Bookmarks are a simple way to navigate to resources that are used frequently. This section will look at setting and removing bookmarks and viewing
them in the Bookmarks view.
The Bookmarks view displays all bookmarks in the Workbench. To show the Bookmarks view select Window > Show View > Bookmarks while
in the Resource perspective.
When the Add Bookmark dialog opens type in a description for this bookmark. Type in "My Bookmark".
4. Notice that a new bookmark appears in the marker bar.
5. In one of the navigation views select the file JanesText.txt. From the main Workbench menu select Edit > Add Bookmark.
This will bookmark the file using the filename to describe the bookmark. Observe the Bookmarks view now contains two bookmarks.
2. There should be one remaining bookmark. This bookmark is associated with a line in the file JanesFile.txt. There are two other approaches to
removing this bookmark.
Use Remove Bookmark in the marker bar of the JanesFile.txt editor. Remember, Add Bookmark was used in the marker bar when
the bookmark was first created.
Delete the bookmark (as was done above) by using Delete from the bookmark's popup menu in the Bookmarks view.
Here is the second approach.
3. Ensure there is an editor open on JanesFile.txt.
Although the editor doesn't actually need to be open, the editor update will be viewable as the bookmark is deleted.
4. In the Bookmarks view, select JanesFile.txt (the remaining bookmark). Press the Delete key. Notice that the bookmark is removed from the
Bookmarks view and the JanesFile.txt editor.
Rearranging views
Tiling editors
Rearranging tabbed views
Maximizing and minimizing
5. Click and drag the Project Explorer's title bar outside the Workbench window to make it a "detached" window (a view stack in its own
window). Note the drop outline showing it will be outside the main workbench window.
6. Finally, drag the Project Explorer view over the editor area. A drop outline will be displayed to show the view orientation related to the editor
area.
Rearranging views and editors
Tiling editors
Rearranging tabbed views
Maximizing and minimizing
4. Once the cursor is to the left of the Outline tab and the drop outline is shown, release the mouse button.
Observe the Project Explorer tab is now to the left of the Outline tab.
Rearranging views and editors
Rearranging views
Tiling editors
Maximizing and minimizing
Maximize:
It is desirable at times to focus your attention on one particular part to the exclusion of the others. The most popular candidate for this is, of course,
maximizing the editor area in order to make as much of the display available for editing as possible (but there are workflows where it would make
sense to focus on a view as well).
As of 3.3 the default presentation implements the maximize behavior by minimizing all stacks except the one being maximized. This allows the
maximized stack to completely occupy the main presentation while still allowing access any open views in your perspective by using the icons in their
Trim Stack (the area around the edges of the window is called the 'trim').
Also in 3.3 the behavior for managing the editor maximization has been changed to operate on the complete Editor Area (rather than simply
maximizing the particular Editor Stack as is the case in the 3.0 and 2.1 presentations). This allows for 'compare' workflows which require the ability to
see both files in a split editor area at the same time.
Minimize:
Another way to optimize the use of the screen area is to directly minimize stacks that are of no current interest. As of 3.3 the default presentation
minimizing a stack will cause it to be moved into the trim area at the edges of the workbench window, creating a Trim Stack. View Stacks get
minimized into a trim representation that contains the icons for each view in the stack.
The minimize behavior for the Editor Area is somewhat different; minimizing the Editor Area results in a trim stack containing only a placeholder icon
representing the entire editor area rather than icons for each open editor (since in most cases all the icons would be the same, making them essentially
useless).
If your particular workflow is such that you need to have more than one element (i.e. having the Editor Area and a View Stack in the presentation at
the same time) you can still gain additional screen space by minimizing the stacks that aren't of current interest. This will remove them from the main
presentation and place them on the outer edge of the workbench window as Trim Stacks, allowing more space for the remaining stacks in the
presentation.
Note: There are two ways to end up with a stack in the trim:
Directly minimizing the stack
As the result of another stack being maximized
Depending on how the Trim Stack was created its behavior is different; when un-maximizing only those trim stacks that were created during the initial
maximize will be restored to the main presentation while stacks that were independently minimized stay that way.
Tip: This difference is important in that it allows you fine grained control over the presentation. While using maximize is a one-click operation it's an
'all or nothing' paradigm (i.e. no other stack is allowed to share the presentation with a maximized stack). While adequate for most tasks you may find
yourself wanting to have the presentation show more than one stack. In these scenarios don't maximize; minimize all the other stacks except the ones
you want in the presentation. Once you have it set up you can still subsequently maximize the editor area but the un-maximize will only restore the
particular stack(s) that were sharing the presentation, not the ones you've explicitly minimized.
Normal Presentation
Editor Area Maximized
Rearranging views and editors
Rearranging view
Tiling editors
Rearranging tabbed views
2.1.16. Perspectives
A perspective defines the initial set and layout of views in the Workbench window. One or more perspectives can exist in a single Workbench
window.
Perspectives can be opened in one of two ways:
In the same (existing) Workbench window.
In a new Workbench window.
Perspectives define visible action sets, which can be changed to customize a perspective. A perspective that is built in this manner can be saved,
creating a custom perspective that can be opened again later.
The Workbench window displays one or more perspectives. Each product determines initially what default perspective is displayed, in this example it
is the Resource perspective. A perspective consists of views such as the Project Explorer as well as editors for working with resources. More than
one Workbench window can be open at any given time.
So far, only the Resource perspective (shown below) has been used in this tutorial. This section will explore how to open and work with other
perspectives.
A perspective provides a set of functionality aimed at accomplishing a specific type of task, or working with a specific type of resource.
2.1.16.1. New perspectives
There are several ways to open a new perspective within this Workbench window:
5. In the Resource perspective move the Outline view so that it is now stacked with the Tasks view.
6. Choose Window > Perspective > Reset Perspective. Notice the Outline view is stacked with the navigation view. Originally when the
Workbench was first started it was below the navigation view, but because the perspective was saved with the navigation view and Outline
stacked, it now considers this its initial layout.
7. Choose Window > New Window to open a second window showing the resource perspective. Observe that it uses the newly saved layout.
8. Close the second window.
While the Resource perspective has been changed, there is a way to get back the original layout. To revert the Resource perspective to its original
layout:
1. Choose Window > Preferences.
2. Expand General and select Perspectives.
3. Select the Resource perspective and then click Revert on the right side.
4. Any changes to the saved state of the perspective has now been undone. To update the current copy of the Resource perspective that is being
worked with, also choose Window > Perspective > Reset Perspective... from the Workbench's menu bar.
Before After
5. Observe that the File menu no longer includes the Print item.
Before After
After experimenting with the other options on the Customize Perspective dialog, choose Window > Perspective > Reset Perspective to return the
perspective to its original state.
2.1.17. Comparing
The Workbench allows for the comparison of multiple resources and for the presentation of the results in a special compare editor.
Setup
Before commencing with compare a few files must be created. This will also be a good time to recap some of the basic features that have already
been introduced.
1. Start by selecting all of the projects in one of the navigation views and deleting them by using Delete on the pop-up menu.
2. Create a new simple project using File > New > Project. Be sure to give the project a distinct name by typing unique name as the name of the
new project, for example "JaneQUserCompare".
3. Use the project's pop-up menu to create a file called file1.txt.
In the editor for file1.txt type the following lines of text and save the file:
This is line 1.
This is line 2.
This is line 3.
This is line 4.
This is line 5.
4. In one of the navigation views select file1.txt and use Ctrl+C to copy the file.
5. Use Ctrl+V (Paste) to create the copy. In the name conflict dialog which appears, rename the file to file2.txt.
There are now two identical files, file1.txt and file2.txt.
There are two parts to the compare editor's local toolbar. Move between changes and differences using the right group of local toolbar buttons.
1. Click the Select Next Difference button . Observe how it selects the next difference.
2. Click the Select Next Change button . Observe how it selects the first change in this difference.
3. Click the Select Next Change button again . Observe how it selects the next difference.
4. Click the Select Previous Change button . Observe how it selects the last change in a previous difference.
5. Click the Select Previous Difference button . Observe how it selects the previous difference.
To merge changes from the left file to the right file and vice versa use the left group of local toolbar buttons.
2. Click Copy Current Change from Right to Left . Observe that the selected text from the right file is copied to the left file.
3. Close the compare editor and choose Yes to save the changes. Alternatively, save the changes by choosing File > Save (Ctrl+S).
7. The top entry in the view represents the current contents of the file. The next represents the previous contents and so on. Right-click on the
previous entry and select Compare Current with Local to open a Compare editor that displays the differences between the Workbench file
and the specific copy of the file selected in the local history.
8. Right-click on the previous entry again and select Get Contents. This replaces the Workbench's copy of sampleFile.txt with the chosen local
history item.
9. Observe that the sampleFile.txt editor now contains two lines.
2.1.19. Responsive UI
While some operations automatically run in the background (such as auto build), in many cases a dialog will be displayed providing you with the
option to run an operation in the background. For example, building a project manually can sometimes take more than a few minutes, during which
time you may wish to continue to use other functions in Eclipse.
While the project is being built, select Run in Background from the Building Workspace dialog and the Responsive UI will allow you to carry on
with other tasks in Eclipse.
For information on the status of the action and additional operations that are currently running, click Details. The Details panel displays the status
information of the operation at hand as well as any additional operations that may be running simultaneously.
The Progress Information dialog also indicates when one operation is being blocked by another.
Information about operations that are currently running in the background may also be accessed at any time using the Progress View.
To have operations running in the background set as the default, select Window > Preferences > General and check Always run in background.
3.1. Welcome
The welcome page is the first page you see when you first launch eclipse. Its purpose is to introduce you to the product. Welcome content will vary
from one Eclipse based product to another, it typically includes an overview of the product and its features, tutorials to guide you through some basic
tasks, samples to get you started, etc.
There are many possible forms of welcome, ranging from simple static text to elaborate extendable multi-page presentations. The Eclipse platform and
platform SDK uses a form known as Universal Welcome, which defines a common page structure, allowing several products to share the welcome
space. If your product is using the Universal Welcome, you can customize its appearance using the "customize page" button. Products which use
universal welcome will display a welcome page the first time they are restarted after new features with welcome content are installed and highlight the
new welcome content.
Customizing welcome
3.2. Workbench
The term Workbench refers to the desktop development environment. The Workbench aims to achieve seamless tool integration and controlled
openness by providing a common paradigm for the creation, management, and navigation of workspace resources.
Each Workbench window contains one or more perspectives. Perspectives contain views and editors and control what appears in certain menus and
tool bars. More than one Workbench window can exist on the desktop at any given time.
Features
Resources
Perspectives
Views
Editors
Opening perspectives
Opening views
Switching between perspectives
Showing and hiding menu items and toolbar buttons
Configuring perspective command groups
Configuring perspective shortcuts
Toolbar buttons
3.2.1. Resources
Resources is a collective term for the projects, folders, and files that exist in the Workbench. The navigation views provide a hierarchical view of
resources and allows you to open them for editing. Other tools may display and handle these resources differently.
There are three basic types of resources that exist in the Workbench:
Files
Comparable to files as you see them in the file system.
Folders
Comparable to directories on a file system. In the Workbench, folders are contained in projects or other folders. Folders can contain files and
other folders.
Projects
Contain folders and files. Projects are used for builds, version management, sharing, and resource organization. Like folders, projects map to
directories in the file system. (When you create a project, you specify a location for it in the file system.)
A project is either open or closed. When a project is closed, it cannot be changed in the Workbench. The resources of a closed project will
not appear in the Workbench, but the resources still reside on the local file system. Closed projects require less memory. Since they are not
examined during builds, closing a project can improve build time.
When a project is open, the structure of the project can be changed and you will see the contents.
Folders and files can be linked to locations in the file system outside of the project's location. These special folders and files are called linked
resources.
Different tools that plug into the Workbench use their own specialized types of projects, folders, and files.
Workbench
Project Explorer view
Resource hierarchies
Linked resources
Builds
Workbench
Project Explorer view
Resources
Resource hierarchies
Linked resources
Linked resources
Linked resources
Linked resources
Linked resources
If you create a new resource working set you will be able to select the working set resources as shown below. The same wizard is used to edit an
existing working set. Different types of working sets provide different kinds of working set editing wizards.
Working sets may also be a part of a manual build workflow. With autobuild disabled the Project > Build Working Set menu becomes enabled.
From here you are able to selectively build working sets of your choosing.
Note: Newly created resources are not automatically included in the active working set. They are implicitly included in a working set if they are
children of an existing working set element. If you want to include other resources after you have created them you have to explicitly add them to the
working set.
3.2.8. Builds
A build is a process that derives new resources from existing ones, updates existing resources, or both.
In the Workbench, different builders are invoked for different types of projects. Builders usually enforce the constraints of some domain. For
example, a Web link builder could update links to files whose name/location changes.
There are two kinds of builds:
An incremental build leverages a previously built state and applies the transforms of the configured builders to the resources that have changed
since the previous state was computed (that is, since the last build).
A clean build discards any problems and previously built state. The next build after a clean will transform all resources according to the domain
rules of the configured builders.
Incremental and clean builds can be done over a specific set of projects or the workspace as a whole. Specific files and folders cannot be built. There
are two ways that builds can be performed:
Automatic builds are performed as resources are saved. Automatic builds are always incremental and always operate over the entire
workspace. You can configure your preferences ( Window > Preferences > General > Workspace) to perform builds automatically on
resource modification.
Manual builds are initiated when you explicitly select a menu item or press the equivalent shortcut key. Manual builds can be either clean or
incremental and can operate over collections of projects or the entire workspace.
External tools
Building resources
Performing builds manually
Performing builds automatically
Saving resources automatically before a manual build
Changing build order
Versions
3.3. Perspectives
Each Workbench window contains one or more perspectives. A perspective defines the initial set and layout of views in the Workbench window.
Within the window, each perspective shares the same set of editors. Each perspective provides a set of functionality aimed at accomplishing a specific
type of task or works with specific types of resources. As you work in the Workbench, you will probably switch perspectives frequently.
Perspectives control what appears in certain menus and toolbars. They define visible action sets, which you can change to customize a perspective.
You can save a perspective that you build in this manner, making your own custom perspective that you can open again later.
You can use the General > Perspectives preference page to open perspectives in the same window or in a new window.
Workbench
Editors
Views
Opening perspectives
Opening views
Changing where perspectives open
Specifying the default perspective
Switching between perspectives
Configuring perspective shortcuts
Configuring perspective command groups
Showing and hiding menu items and toolbar buttons
Saving a user defined perspective
Resetting perspectives
3.5. Views
Views support editors and provide alternative presentations as well as ways to navigate the information in your Workbench. For example, the Project
Explorer and other navigation views display projects and other resources that you are working with.
Views also have their own menus. To open the menu for a view, click the icon at the left end of the view's title bar. Some views also have their own
toolbars. The actions represented by buttons on view toolbars only affect the items within that view.
A view might appear by itself, or stacked with other views in a tabbed notebook. You can change the layout of a perspective by opening and closing
views and by docking them in different positions in the Workbench window.
Perspectives
Detached views
Editors
Opening views
Moving and docking views
Detaching views and editors
Maximizing a view or editor
Saving a user defined perspective
Resetting perspectives
Workbench
Right-click on any resource in the Project Explorer view to open a pop-up menu that allows you to perform operations such as copying, moving,
creating new resources, comparing resources with each other, or performing team operations. To see a description of what each menu item does,
move selection highlight to that menu item and press the context-sensitive help key (e.g., F1 on Microsoft Windows).
By default, the Project Explorer view is included in the Resources perspective. To add it to the current perspective, click Window > Show View >
Other... > General > Project Explorer.
Toolbar
The toolbar of the Project Explorer view contains the following buttons:
Collapse All
Collapses the tree expansion state of all resources in the view.
Link with Editor
Toggles whether the Project Explorer view selection is linked to the active editor. When this option is selected, changing the active editor will
automatically update the Project Explorer selection to the resource being edited.
Menu
Provides menu items that allow you to sort or filter the contents of the Project Explorer view as well as select a working set.
Icons
The following icons can appear in the Project Explorer view.
Icon Description
Project (open)
Folder
File
Icon Description
Resources
Views
The first column of the Tasks view displays an icon that denotes the type of line item. You can sort and filter line items in the task view, to view only
high-priority tasks or tasks associated with a particular resource or group of resources.
By default, the Tasks view is included in the Resource perspective. To add it to the current perspective, click Window > Show View > Other... >
General > Tasks.
Markers
Bookmarks
Problems view
Opening views
Moving and docking views
Adding line items in the Tasks view
Associating a task with a resource
Filtering the Tasks view
Deleting tasks
Tasks view
Problems can be fixed by selecting Quick Fix from the context menu. The list of possible resolutions will be shown.
To add the Problems view to the current perspective, click Window > Show View > Other... > General > Problems.
Markers
Bookmarks
Tasks view
Opening views
Moving and docking views
Automatically fixing problems
Views
Perspectives
Resources
Opening views
Moving and docking views
Toolbar buttons allow you to toggle to display properties by category or to filter advanced properties. Another toolbar button allows you to restore
the selected property to its default value.
To see more detailed information about a resource than the Properties view gives you, right-click the resource name in one of the navigation views and
select Properties from the pop-up menu.
To add the Properties view to the current perspective, click Window > Show View > Other... > General > Properties.
Resources
Views
Search view
File search
3.6. Toolbars
There are four kinds of toolbars in the Workbench.
The main toolbar, sometimes called the Workbench toolbar, is displayed at the top of the Workbench window directly beneath the menu bar. The
contents of this toolbar change based on the active perspective. Items in the toolbar might be enabled or disabled based on the state of either the
active view or editor. Sections of the main toolbar can be rearranged using the mouse.
There are also individual view toolbars, which appear in the title bar of a view. Actions in a view's toolbar apply only to the view in which they
appear. Some view toolbars include a Menu button, shown as an inverted triangle, that contain actions for that view.
A third type of toolbar is the perspective switcher. The perspective switcher allows quick access to perspectives that are currently open. It also has a
button that can open new perspectives. The perspective switcher is normally located in the top-right, next to the main toolbar. However, it is also
possible to position it below the main toolbar ("top-left"), or to position it vertically on the left-hand side of the workbench ("left"). The name of the
perspectives is shown by default, but it is possible to hide the text and show only the icons. To reposition the perspective or hide the text, right-click
on it and choose the appropriate item from the context menu.
Minimizing a view stack will also produce a toolbar in the trim at the outer edge of the workbench window (a Trim Stack). This bar will contain an
icon for each of the views in the stack. Clicking on one of these icons will result in the view being displayed as an overlay onto the existing
presentation.
In all cases, you can find out what toolbar buttons do by moving your mouse pointer over the button and reading the tooltip that opens. See the list of
related reference topics below for a table of all toolbar buttons.
Workbench
Views
Perspectives
Toolbar buttons
3.7. Markers
Markers are objects that may be associated with Workbench resources. There are many uses of markers in the Workbench. The three main uses of
markers in the Workbench are:
Tasks
Problems
Bookmarks
Markers are shown in a marker view (Tasks, Problems or Bookmark view) or on the marker bar in the editor area.
The following sections give more detail on each of these marker types.
Tasks
A task marker represents a work item. There are two kinds of tasks:
Automatically-generated information associated with the resource
User specified tasks that may or may not be associated with a resource
Both of these task types appear in the Tasks view.
Problems
Problem markers represent invalid states and are categorized as follows..
Errors: Error markers are often used to indicate the source location of syntax or compilation errors.
Warnings: Warning markers indicate the source location of, for example, compilation warnings.
Information: Information markers indicate the source location of information only tasks.
Problems are shown in the Problems view.
Bookmarks
Bookmarks place an anchor either at a specific line in a resource or on the resource itself. They are shown in the Bookmarks view.
Bookmarks
Tasks view
Problems view
3.8. Bookmarks
You can place an "anchor" either on a resource within the Workbench, or at a specific line within a file, by creating a bookmark. Then you can use the
Bookmarks view to return to those files quickly.
The Bookmarks view (Window > Show View > Bookmarks) displays all bookmarks that you have created.
Tasks view
Markers
Tasks view
Problems view
Bookmarks view
External tools
Builds
${workspace_loc} The absolute path on the system's hard drive to Eclipse's workspace directory
The absolute path on the system's hard drive to the specified resource. The
<resource path> is the full path of the resource relative to the workspace root. For
${workspace_loc:<resource
example ${workspace_loc:/MyProject/MyFile.txt}. Note that the expanded result of
path>}
this variable is not the same as ${workspace_loc}/MyProject/MyFile.txt if the
project's contents directory for MyProject is outside the workspace directory.
The absolute path on the system's hard drive to the currently selected resource's
${project_loc}
project or to the project being built if the external tool is run as part of a build.
The absolute path on the system's hard drive to the specified resource's project. The
<resource path> is the full path of the resource relative to the workspace root. For
${project_loc:<resource
example ${workspace_loc:/MyProject/MyFile.txt}. Note that the expanded result of
path>}
this variable is not the same as ${workspace_loc}/MyProject if the project's
contents directory for MyProject is outside the workspace directory.
The absolute path on the system's hard drive to the currently selected resource's
${container_loc}
parent (either a folder or project).
The absolute path on the system's hard drive to the specified resource's parent (either
a folder or project). The <resource path> is the full path of the resource relative to
the workspace root. For
${container_loc:<resource
example:${workspace_loc:/MyProject/MyFolder/MyFile.txt}. Note that the
path>}
expanded result of this variable is not the same as
${workspace_loc}/MyProject/MyFolder if the project's contents directory for
MyProject is outside the workspace directory.
${resource_loc} The absolute path on the system's hard drive to the currently selected resource.
The absolute path on the system's hard drive to the specified resource. The
<resource path> is the full path of the resource relative to the workspace root. For
${resource_loc:<resource
example ${workspace_loc:/MyProject/MyFile.txt}. Note that the expanded result of
path>}
this variable is not the same as ${workspace_loc}/MyProject/MyFile.txt if the
project's contents directory for MyProject is outside the workspace directory.
The full path, relative to the workspace root, of the currently selected resource's
${project_path}
project or of the project being built if the external tool is run as part of a build.
The full path, relative to the workspace root, of the currently selected resource's
${container_path}
parent (either a folder or project).
${resource_path} The full path, relative to the workspace root, of the currently selected resource.
The name of the currently selected resource's project or of the project being built if
${project_name}
the external tool is run as part of a build.
${container_name} The name of the currently selected resource's parent (either a folder or project).
Variable Name Description
${resource_name} The name of the currently selected resource.
The kind of build when the external tool is run as part of a build. The value can be
${build_type} one of "full", "incremental", or "auto". If the external tool is run outside of a build, the
value is then "none".
Lets assume your Eclipse workspace directory is c:\eclipse\workspace and you have two projects, MyProject1 and MyProject2. The first
project, MyProject1, is located inside the workspace directory, the second project, MyProject2, is located outside the workspace directory at
c:\projects\MyProject2. Lets look at how the variable examples below will be expanded when an external tool is run, if the resource
/MyProject2/MyFolder/MyFile.txt is selected.
${workspace_loc} c:\eclipse\workspace
${workspace_loc:/MyProject1/MyFile.txt} c:\eclipse\workspace\MyProject\MyFile.txt
${workspace_loc:/MyProject2/MyFile.txt} c:\projects\MyProject2\MyFile.txt
${project_loc} c:\projects\MyProject2
${project_loc:/MyProject1/MyFile.txt} c:\eclipse\workspace\MyProject
${container_loc} c:\projects\MyProject2\MyFolder
${resource_loc} c:\projects\MyProject2\MyFile.txt
${project_path} /MyProject2
${container_path} /MyProject2/MyFolder
${resource_path} /MyProject2/MyFolder/MyFile.txt
${project_name} MyProject2
${container_name} MyFolder
${resource_name} MyFile.txt
${build_type} none
Builds
Keys
Font and color settings in Eclipse
Accessibility preference page
Menus
Most menus are assigned mnemonics for each entry which allow you to select them by typing the underlined letter instead of the mouse. You can also
select an item by moving through the menus and sub-menus with the arrow keys.
The various menus available can be accessed using the keyboard in the following ways:
F10 accesses the menus on the main menu bar.
Shift+F10 pops up the context menu for the current view. (Note: this shortcut is actually dependent on your window manager, but for most
people it should be Shift+F10.)
Ctrl+F10 will open the pull down menu for the current view if there is one. For editors, Ctrl+F10 will open the menu for the marker bar on the
left of the editor area.
Alt+mnemonic will activate the Workbench menu for a particular entry (e.g., Alt+W will bring down the Window menu).
Microsoft Windows only: Pressing Alt will give focus to the menu bar.
Controls
Mnemonics are assigned to most control labels (e.g., buttons, checkboxes, radio buttons, etc.) in dialog boxes, preference pages, and property pages.
To access the control associated with a label, use the Alt key along with the letter that is underlined in the label.
Navigation Context
Navigation context is saved for the packages, navigator views, Workbench preferences and properties dialogs. The selected page for the preferences
and properties dialog is saved between invocations of the dialog but are not saved between workbench invocations.
Accelerators
Many of the actions in Eclipse have an accelerator assigned to them. For additional information on accelerators, see Keys.
Quick Access
To quickly access UI elements such as views, commands, preference pages, and others, you can use the Quick Access dialog, available under
Window > Navigation > Quick Access and bound to Ctrl+3 by default. Start typing in the filter field to see matches. For example, to open the help
view, type Ctrl+3 followed by "help". One of the first matches will be to open the help view; other matches show commands and preference pages
related to help. You can use the arrow keys to select a different match for a given filter string. Press Enter to select the highlighted entry. This will
execute the command, or open the view, perspective, or wizard etc.
Code Folding
Some editors offer code folding by default which can be confusing. Disabling this feature can help to better read the code. Search for "folding" in the
Preferences dialog to find related options.
Accessing Annotations
You can navigate to the next annotation by pressing Ctrl+. and to the previous one by pressing Ctrl+,. Out of the box not all available annotation
types are included in that navigation, for example, breakpoints are not part of it. Breakpoints and other annotation types can either be enabled via the
Next Annotation toolbar button drop-down menu or by checking Include in next/previous navigation on the General > Editors > Text
Editors > Annotations preference page.
Navigating to an annotation moves the text caret to the annotated line, and displays the annotation text in the status line. The next section explains how
to read the status line under Windows.
Some annotation types, for example warnings and errors, can be accessed by pressing F2 after having navigated to one of them or setting the caret
inside the annotation.
Reading the status line with JAWS
JAWS desktop users press Insert+PageDown to read the Eclipse status line and JAWS laptop users press Caps Lock+PageDown.
Annotation Hover
Like normal hovers can be shown by pressing F2, the annotation hover that appears when hovering over the vertical ruler on the left can also be
shown by pressing a key sequence. However, out of the box no key sequence is defined for that. Go to the General > Keys preference page to
assign a key sequence to the Show Ruler Annotation Tooltip command.
Fonts
There are 4 main fonts in use by the Eclipse platform. They are:
Banner Font
Used in PDE editors, welcome pages and in the title area of many wizards. For instance the New Project wizard uses this font for the top title,
Header Font
Used as a section heading. For instance the Welcome page for the Eclipse Platform uses this font for the top title,
Text Font
Used in text editors.
Dialog Font
Used in dialogs.
These fonts can be set via the General > Appearance > Colors and Fonts preference page. As well as these 4 fonts there are several other
secondary font settings. These default to the text font. They can be found on the Colors and Fonts preference page:
Compare Text Font
Console Text Font
Detail Pane Text Font
Memory Views Table Font
Part Title Font (optional: used by some presentations)
View Message Font (optional: used by some presentations)
Colors
Eclipse uses colors as an information enhancement in many places. Whenever possible the operating system color settings are used, but in cases
where the operating system settings are not enough, Eclipse defines other colors. All of these colors can be adjusted via the following preference
pages:
General > Appearance > Colors and Fonts > Basic (Error text, hyperlink text, active hyperlink text)
General > Editors > Text Editors (Foreground, background and other appearance colors)
General > Editors > Text Editors > Annotations (Text editors annotation colors)
General > Editors > Text Editors > Linked Mode (Text editors linked mode colors)
General > Editors > Text Editors > Quick Diff (Colors used by text editors quick diff feature)
General > Search (Foreground for potential matches)
Run > Console (Standard Out, Standard Error, Standard In)
Run (Variable Views changed value, Memory View unbuffered lines)
Keys
Windows Color Dialog Reference
Perspectives
Views
Detached views
Perspectives
Opening perspectives
Changing where perspectives open
Workbench
Perspectives
Opening perspectives
Changing where perspectives open
Showing and hiding menu items and toolbar buttons
Configuring perspective command groups
Configuring perspective shortcuts
Perspectives
Opening views
Changing where perspectives open
Specifying the default perspective
Switching between perspectives
Perspectives
Opening perspectives
Specifying the default perspective
Switching between perspectives
Showing and hiding menu items and toolbar buttons
Configuring perspective command groups
Configuring perspective shortcuts
Perspectives
Perspectives
Perspectives
Perspectives
Views
Resetting perspectives
Deleting a user defined perspective
Opening views
Moving and docking views
Perspectives
Perspectives
Views
Editors
Detached views
Perspectives
Opening views
Moving and docking views
Rearranging tabbed views
Detaching views and editors
Opening files for editing
Associating editors with file types
Editing files outside the Workbench
Tiling editors
Maximizing a view or editor
Views
Detached views
Perspectives
Dock below: The view is docked below the view underneath the cursor.
Dock to the right: The view is docked to the right of the view underneath the cursor.
Dock to the left: The view is docked to the left of the view underneath the cursor.
Stack: The view is docked as a Tab in the same pane as the view underneath the cursor.
Detached: The view is detached from the Workbench window and is shown in its own separate window.
Views
Detached views
Perspectives
Opening views
Detaching views and editors
Maximizing a view or editor
Saving a user defined perspective
Resetting perspectives
1. Click on the tab of the view that you want to move and drag it to where you want it. A stack symbol appears as you drag the view across
other view tabs.
2. Release the mouse button when you have the view tab in the desired location. The view that you selected is now moved.
Views
Views
Detached views
Perspectives
Opening views
Moving and docking views
Saving a user-defined perspective
Resetting perspectives
Editors
External editors
Editors
External editors
Editors
External editors
Editors
Views
Editors
Workbench
Customizing welcome
Rearranging the main toolbar
Changing the key bindings
Controlling single and double click behavior
Changing fonts and colors
Importing and Exporting Preferences
Welcome
Home Page
This option will change the overall appearance of welcome. Circles
Theme
Overview,
Tutorials,
Root Pages Select the welcome pages you would like to see in welcome.
Samples,
What's New
Apply settings to
all products If you have multiple products sharing the same eclipse workbench, using this option will cause the changes for all
Off
sharing this of them, as opposed to only the currently running product.
workbench
Converts the current preferences in this page to XML content compatible with the introData.xml format used
Save As... to define the defaults for a product's welcome configuration. This is meant for product developers and N/A
assemblers, and is not needed by end users.
Option
Available Description Default
Items in this container will not be shown in the selected welcome page. N/A
Extensions
Items that should appear in the left half of the selected welcome page, arranged vertically from top to bottom.
Left Column N/A
The bottom containers are explained below the table.
Items that should appear in the right half of the selected welcome page, arranged vertically from top to bottom.
Right Column N/A
The bottom containers are explained below the table.
The importance is shown as an icon next to the item, and determines the item's importance relative to others.
Themes may use this information to present the items differently, depending on their importance. To change the
importance, click on the icon and a drop down menu will appear. The possible settings are:
low - The item will not be emphasized.
Importance low
medium - The item will be given some emphasis.
high - The item will be strongly emphasized.
new - The item is new and will be presented as such.
callout - The item is of a different nature, or is special in some way (e.g. a video/animation)
For each page, there are four quadrants in which to place items; two for each column. The quadrants will be separated in the presentation, and are
used to classify distinct groups of items that should be kept separate from each other. If you do not want to separate items into four quadrants and
only have columns, place all items in the top two quadrants.
Here is what the Customize Welcome dialog looks like:
Welcome
Customizing Welcome
If it is locked, unlock the toolbar by right clicking the toolbar and selecting the Lock the Toolbars menu item.
2. Grab the section of the toolbar you want to rearrange by moving the mouse over the thick vertical line on the left side of the desired segment.
The mouse cursor changes its shape to indicate that you can click to move the toolbar section.
3. Click and hold the left mouse button to grab the toolbar section.
4. Move the section left and right or up and down. Release the mouse button to place it in the new location.
5. To prevent accidental changes to the toolbar lock it again by right clicking the toolbar and selecting the Lock the Toolbars menu item.
Toolbars
Keys
Navigating the user interface by using the keyboard
Fonts
The Workbench lets you directly configure the following fonts:
Banner Font
Used in PDE editors, welcome pages and in the title area of many wizards. For instance the New Project wizard uses this font for the top title.
Dialog Font
Used for widgets in dialogs.
Header Font
Used as a section heading. For instance the Welcome page for the Eclipse Platform uses this font for the top title.
Text Font
Used in text editors.
Memory View Table Font (defaults to text font)
Used in the table of the memory view.
Properties File Editor Text Font (defaults to text font)
Used by Properties File editors.
Compare Text Font (defaults to text font)
Used by textual compare/merge tools.
Part Title Font (defaults to properties file editor text font )
Used for view and editor titles. Note: It is recommended that this font not be bold or italic because the workbench will use bold and italic
versions of this font to display progress.
View Message Font (defaults to properties file editor text font )
Used for messages in the view title bar (if present).
To change these fonts:
1. Open the General > Appearance > Colors and Fonts preference page.
2. Select the font you want to change.
3. Click Change.
4. Use the dialog which opens to select a font.
5. Click OK.
Note: You can also click Use System Font to set the font to a reasonable value chosen by the operating system. For example, on Windows this will
use the font selected in the Display Properties control panel.
Plug-ins that use other fonts may also provide preference entries to allow them to be customized.
In addition to the above, some text is always displayed in the system font. For example, the navigator tree always does this. To change the font used in
these areas, you can use the configuration tools provided by the operating system (for example, the Display Properties control panel on Windows, or
the .Xdefaults file in Motif).
Colors
To set the colors used by the Workbench to display error text and hyperlink text:
1. Open the General > Appearance > Colors and Fonts preference page.
2. Select the color you want to change in the tree view and click the color bar on the right.
3. Use the dialog which opens to select a color.
4. Click OK.
Plug-ins that use other colors may also provide preference entries to allow them to be customized. For example, the searching support provides a
preference for controlling the color used to display potential matches (see the Foreground color for potential matches item on the General >
Search preference page).
In general, the Workbench uses the colors that are chosen by the operating system. To change these colors you can use the configuration tools
provided by the system (for example, the Display Properties control panel on Windows, or the .Xdefaults file in Motif).
General
The Export wizard can be used to export preferences from the Workbench to the file system.
To export a preference file:
1. Select File > Export.
2. In the Export wizard select General > Preferences and click Next.
3. Click Export all to add all of the preferences to the file.
4. If you want to export only few preferences, choose them from the list.
5. Click Browse... and locate the preferences file on the file system.
6. Click Finish
Note: If no changes have been made to the original preference settings the preferences file will be empty.
Workbench
Resources
Resource hierarchies
Linked resources
Resource filters
Creating a project
Closing projects
Deleting projects
Creating a folder
Creating a file
Creating linked resources
Moving resources
Copying resources
Renaming resources
Deleting resources
Viewing resources properties
Creating resource filters
Resources
Resource hierarchies
Creating a folder
Creating a file
Copying resources
Moving resources
Resources
Builds
Creating a project
Deleting projects
Creating a project
Closing projects
Resources
Resource hierarchies
Creating a project
Creating a file
Creating linked resources
Copying resources
Moving resources
Resources
Resource hierarchies
Creating a project
Creating a folder
Creating linked resources
Copying resources
Moving resources
Resources
Resource hierarchies
Linked resources
Creating a project
Creating a file
Creating a folder
Linked resources
New Folder wizard
New File wizard
Creating a project
Creating a file
Creating a folder
New Folder wizard
New File wizard
Virtual Folders
Resources
Project Explorer view
Linked resources
Resources
Project Explorer view
Linked resources
Creating a project
Creating a folder
Creating a file
Moving resources
Renaming resources
Deleting resources
4.6.10. Renaming resources
You can rename Workbench resources using the Rename command on the context menu in one of the navigation views.
1. In one of the navigation views, right-click the resource that you want to rename.
2. From the pop-up menu, select Rename.
3. Type the new name for the resource.
4. Hit the return key.
Resources
Project Explorer view
Resources
Project Explorer view
Linked resources
Deleting projects
Creating a project
Creating a folder
Creating a file
Creating linked resources
Restoring deleted resources from local history
Resources Filters
Resources
Resource hierarchies
Resources
Project Explorer view
Search view
Resources
Resource hierarchies
Project Explorer view
Search view
Working sets
Search view
File search
Search view
Search view
File search
Resources
Resource hierarchies
Project Explorer view
Working sets
Editors
Bookmarks
Tasks view
Markers
Bookmarks
Tasks view
Bookmarks
Tasks view
Bookmarks
Tasks view
Bookmarks
Deleting tasks
Associating a task with a resource
Filtering the Tasks view
Creating a bookmark for an entire file
Creating a bookmark within a file
Tasks view
Tasks view
Tasks view
Compare editor
Show structure compare in If this option is on, structure compare will be displayed in the Outline view whenever it is possible. Off
Outline view when possible
Show additional compare Causes the status line to display additional context information about the comparison. Off
information in the status line
Ignore white space Causes the comparison to ignore differences which are whitespace characters (spaces, tabs, etc.). Also Off
causes differences in line terminators ( LF versus CRLF) to be ignored.
Automatically save dirty editors This option controls whether any unsaved changes are automatically saved before a patch is applied. Off
before patching
You can configure the following options in the Text Compare tab.
Synchronize scrolling between The two compare viewers will "lock scroll" along with one another in order to keep identical and On
panes in compare viewers corresponding portions of the code in each pane side by side.
Initially show ancestor pane Sometimes you may want to compare two versions of a resource with the previous version from which Off
they were both derived. This is called their common ancestor, and it appears in its own comparison pane
during a three way comparison.
Show pseudo conflicts Displays conflicts that occur when two developers make the same change, for example when both add or Off
remove the same line of code.
Connect ranges with single line Controls whether differing ranges are visually connected by a single line or a range delimited by two lines. On
Highlight individual changes Controls whether the individual changes inside conflicts are highlighted . On
Disable capping when The capping mechanism is used to speed up finding differences in large files. In case where the capping Off
comparing large documents happens the result can either be correct or it can display too many changes, but it never misses any
change. Turn this option on, if you prefer a precise result in favour of possibly longer calculation time.
When the end/beginning is Use this option to configure what occurs when the end/beginning is reached while navigating an element. Prompt
reached while navigating an The options are:
element
Prompt
Loop back to the beginning/end
Go to the next/previous element
Comparing resources
Synchronizing with the repository
Merging changes in the Compare editor
Compare editor
Compare/Patch preferences
Comparing resources
Synchronizing with the repository
Merging changes in the Compare editor
Resolving conflicts
Setting preferences for comparing files
Comparing resources with repository versions
Tiling editors
Compare editor
Compare/Patch preferences
Comparing resources
Understanding the comparison
Synchronizing with the repository
Resolving conflicts
Setting preferences for comparing files
Compare editor
Local history
Local history
Versions
Local history
Resources
Comparing resources with the local history
Restoring deleted resources from the local history
Setting local history preferences
Local history
Resources
Local history
Versions
Resources
4.11. Importing
You can import files into the Workbench in several ways, depending on your operating system:
By using the Import wizard.
By dragging files or folders from the file system to one of the navigation views
By copying files or folders from the file system and pasting them into one of the navigation views
See the related tasks section for more details.
Resources
Import wizard
Resources
Import wizard
Importing existing projects
Importing resources from a ZIP File
Exporting
Resources
Import wizard
4.12. Exporting
You can export files from the Workbench in several ways, depending on your operating system:
By using the Export wizard.
By dragging files or folders from one of the navigation views to the file system.
By copying files or folders from one of the navigation views and pasting them into the file system.
See the related tasks section for more details.
Resources
Resources
Importing
Exporting resources to a ZIP File
Resources
Builds
Builds
Builds
Builds
Building resources
Performing builds manually
Changing build order
Builds
External tools
5.2. Preferences
Use the Window > Preferences dialog pages to set how you want Eclipse to operate.
You can browse the Preferences dialog pages by looking through all the titles in the left pane or search a smaller set of titles by using the filter field at
the top of the left pane. The results returned by the filter will match both Preference page titles and keywords such as "appearance". However, to find
specific functions you may have to search the online help instead.
The arrow controls in the upper-right of the right pane enable you to navigate through previously viewed pages. To return to a page after
viewing several pages, click the drop-down arrow to display a list of your recently viewed preference pages.
The preferences dialog displaying the General preferences:
Option Description
Show in Text as This option controls whether the selected annotation type is shown in the text. The corresponding text will be
underlined with squiggles or highlighted.
Show in Overview ruler This option controls whether the overview ruler on the right side of the text editor is shown.
Show in Vertical ruler This option controls whether the selected annotation type is shown in the vertical ruler.
Color This option controls the color for the selected annotation type.
Use This option allows the platform to computes the build ordering. Turning off this option enables access to the projects list, the
default ordering of which can be manipulated.
On
builder
order
Project This option allows you to select projects and use the Up and Down buttons to change the build order. Add and remove projects
build in the build order using the Add Project and Remove Project buttons. Projects removed from the build order will be built, but
order they will be built after all projects in the build order are built.
Max This preference allows you to deal with build orders that contain cycles. Ideally, you should avoid cyclic references between
iterations projects. Projects with cycles really logically belong to a single project, and so they should be collapsed into a single project if
when possible. However, if you absolutely must have cycles, it may take several iterations of the build order to correctly build
10
building everything. Changing this preference will alter the maximum number of times the workbench will attempt to iterate over the build
with order before giving up.
cycles
5.2.13. Capabilities
The General > Capabilities preference page allows you to enable or disable various product components. By default, the page only shows
general categories of behavior. If you would like configure fine-grained capabilities you should use the "Advanced" dialog.
Here is what the Capabilities preference page looks like:
The advanced dialog appears as follows:
When attempting to enable an action after its capability has been disabled or has yet to be enabled in the preferences page, the following Confirm
Enablement prompt will appear verifying that you do indeed want to enable the required capability. Click Details to display a description of the
capability.
Note: This dialog only appears if the "Prompt when enabling capabilities" preference has not been disabled.
The Colors and Fonts text field can be used to filter the contents. Simply type in an entry and any matching results will remain in the tree view.
Descriptions and previews are provided when the Workbench colors and font settings are selected.
Changing fonts and colors
5.2.15. Compare/Patch
The following preferences can be changed on the General > Compare/Patch page.
General options
Option Description Default
Open structure compare This option controls whether a structure compare is automatically performed whenever a content On
automatically compare is done. Turn this option off if you don't want to see the structural differences.
Show structure compare in Outline If this option is on, structure compare will be displayed in the Outline view whenever it is possible. Off
view when possible
Show additional compare If this option is on, additional information about a change is shown in the status line. Turn this option on Off
information in the status line if you are interested in additional information about a change.
Ignore white space This option controls whether or not whitespace change are shown in the compare viewer. Turn this Off
option on if you want to see changes in whitespace.
Automatically save dirty editors This option controls whether any unsaved changes are automatically saved before a patch is applied. Off
before browsing patches Turn this option on if you want to save changes automatically.
Added/Removed lines These options control which lines should be counted as added and removed lines when applying a
patch. Both options are based on regular expressions.
Filtered Members
This option allows you to filter members that should be excluded from 'Compare With Each Other'.
Note: The names in the list must be separated by a comma.
Text Compare options
Option Description Default
Synchronize scrolling between panes The two comparison viewers will "lock scroll" along with one another in order to keep identical and On
in compare viewers corresponding portions of the code in each pane side-by-side. Turn this option off if you do not want
the compare viewers to lock scroll.
Initially show ancestor pane Sometimes you want to compare two versions of a resource with the previous version from which they Off
were both derived. This is called their common ancestor, and it appears in its own comparison pane
during a three way compare. Turn this option on if you want the ancestor pane to always appear at the
start of a comparison.
Show pseudo conflicts Displays pseudo conflicts, which occur when two developers make the same change (for example, Off
both add or remove the exact same line of code or comment). Turn this option on if you want pseudo
conflicts to appear in compare browsers.
Connect ranges with single line Controls whether differing ranges are visually connected by a single line or a range delimited by two On
lines.
Highlight individual changes Controls whether the individual changes inside conflicts are highlighted. On
Disable capping when comparing The capping mechanism is used to speed up finding differences in large files. In case where the capping Off
large documents happens the result can either be correct or it can display too many changes, but it never misses any
change. Turn this option on, if you prefer a precise result in favour of possibly longer calculation time.
When the end/beginning is reached Use this option to configure what occurs when the end/beginning is reached while navigating an Prompt
while navigating an element element.
Prompt: If this option is on and you selected to compare a single element you will be asked
whether you want to go to the beginning/end of the element after the end/beginning is reached. If
you are comparing two or more elements you will be asked whether you want to go to the
beginning/end of the current element or to go to the next/previous element. Moreover, if you
choose to remember your decision, this option will be changed to one of the below respectively.
Loop back to the beginning/end: When this option is on, the selection will me moved back to
the beginning/end after you reach the end/beginning of an element.
Go to the next/previous element: If you are comparing two or more elements and this option
is on after you reach the end/beginning of an element the next/previous element will be opened.
In addition to adding and removing file names or extensions, you can also set the default encoding for a given content type. To do this, simply enter the
encoding name in the provided field and click Update.
Editor Area
5.2.29. General
General settings for the Workbench. The term Workbench refers to the desktop development environment.
Each Workbench window contains one or more perspectives. Perspectives contain views and editors and control what appears in certain menus and
tool bars. More than one Workbench window can exist on the desktop at any given time.
The following preferences can be changed on the General preference page.
Double click - Single clicking on a resource will select it and double clicking
on it will open it in an editor.
Single click (Select on hover) - Hovering the mouse cursor over the resource Double
Open mode... will select it and clicking on it once will open it in an editor. click
Single click (Open when using arrow keys) - Selecting a resource with the
arrow keys will open it in an editor.
Note: Depending on which view has focus, selecting and opening a resource
may have different behavior.
5.2.34. Keys
The function of the keyboard can be extensively customized in Eclipse using the General > Keys preference page. Within Eclipse, key strokes and
key sequences are assigned to invoke particular commands.
Schemes
A 'scheme' is a set of bindings. Eclipse includes two schemes:
Default
Emacs (extends Default)
The Default scheme contains a general set of bindings, in many cases recognizable as traditional key sequences for well known commands. For
instance, Ctrl+A is assigned to Select All, and Ctrl+S is assigned to Save.
The Emacs scheme contains a set of key bindings familiar to users of Emacs. For instance, Ctrl+X H is assigned to Select All, and Ctrl+X S is
assigned to Save.
It is important to understand why the Emacs scheme says that it 'extends Default'. The Emacs scheme is not a complete set of bindings like the
Default scheme. Rather, it borrows from the Default scheme where possible, only defining explicit Emacs-style bindings where they vary from the
Default scheme. Generally, only well known commands like Select All, Save, etc. have specific Emacs key sequences associated with them.
Choose the scheme you are most comfortable with by changing the 'Scheme' setting on the keys preference page. If you choose the Default scheme,
all Emacs bindings are ignored. If you choose the Emacs scheme, explicit Emacs-style key sequence assignments take precedence over any
conflicting assignments in the Default scheme.
Contexts
Key bindings can vary based on the current context of Eclipse.
This context is usually determined by the active part, but it can be influenced by the active window or dialog as well. If the active part does not choose
a particular context, the workbench will set the active context to In Windows.
Eclipse includes a number of different contexts. Some examples are:
In Dialogs and Windows
In Windows (extends In Dialogs and Windows)
In Dialogs (extends In Dialogs and Windows)
Editing Text (extends In Windows)
In Console
Much like configurations, contexts can extend other contexts.
Note: It is not recommended to promote a key binding to a context which it extends. For example, it is not recommended to move an Editing Text
key binding to the In Dialogs and Windows context. This may have unexpected results.
It is possible for some key bindings to work in dialogs. Those key bindings are assigned to the In Dialogs and Windows context. One example of
such a key binding is the key binding for "cut". It is possible to change these key bindings. For example, it is possible to have Ctrl+X as cut in dialogs,
but Ctrl+W as cut in windows.
Conflict Resolution
There are only a finite number of simple, common key strokes available to assign to a multitude of commands. We have seen that scheme, context,
platform, and locale all partition key sequence assignments into domains where they don't conflict with one another. Consider the case for Ctrl+B
above if contexts did not exist. One plug-in would assign Ctrl+B to Build, the other plug-in would assign Ctrl+B to Make Bold Text. How
would Eclipse properly resolve this conflict?
Though conflicts are drastically reduced by employing the above mechanisms, they can still occur. Two plug-ins, independent of one another, could
assign the same key sequence to different commands with the same context, scheme, platform, and locale. Consider if a plug-in assigned Ctrl+F4 in
the In Windows context and Default scheme to one of its commands. This directly conflicts with Eclipse assigning Ctrl+F4 to the close command in
the same context and scheme.
This is a conflict. It wouldn't be proper to invoke both commands, nor would it be proper to simply choose one of the two commands to receive the
key stroke. We pop up the Key Assist Dialog with the conflicting commands and allow the user to select one. The Key Assist Dialog is the same
dialog that displays command choices for multiple key stroke key bindings. For example, if 2 commands were bound to F12 you might see:
If the user sets a keybinding and creates a conflict, the conflicting bindings will be displayed in the conflicts list. This can be used to navigate between
conflicting keybindings so that they can be changed.
These types of conflicts can be resolved by explicitly assigning the key sequence to one of the commands, or remove it from the other.
Another type of conflict can be caused by multiple-key stroke key sequences. For example, in the Emacs scheme, there are many multiple-key stroke
key sequences beginning with the key stroke Ctrl+X. Ctrl+X K is assigned to Close. Ctrl+X H is assigned to Select All.
As previously mentioned, the Emacs scheme borrows key bindings from the Default scheme. In the default scheme, Ctrl+X is assigned to Cut.
Though the Emacs scheme doesn't explicitly redefine Ctrl+X, pressing Ctrl+X is required as part of many of its key bindings. In the Emacs scheme,
when one presses Ctrl+X, one is half way to entering one of many possible assigned key sequences. One would not expect the Cut action to be
invoked at this time.
For this type of conflict, the rule is that the Ctrl+X key sequence assigned to Cut would be ignored. Otherwise, it would not be possible to complete
many of the key bindings in the Emacs configuration.
Limit history size If enabled, then options below will be used to limit the local history size on disk. Enabled
Days to keep files Indicates for how many days you want to maintain changes in the local history. History state older than this value will be 7 days
lost.
Maximum entries Indicates how many history states per file you want to maintain in the local history. If you exceed this value, you will lose 50
per File older history to make room for new history. entries
Maximum file size Indicates the maximum size of individual states in the history store. If a file is over this size, it will not be stored. 1 MB
(MB)
Active Provider Specifies the settings profile to be used when opening connections. Choosing the Direct provider causes all the Native (if present)
connections to be opened without the use of a proxy server. Selecting Manual causes settings defined in Manual (otherwise)
Eclipse to be used. On some platforms there is also a Native provider available, selecting this one causes
settings that were discovered in the OS to be used.
Proxy entries The table displays entries that are available for all providers. Checkboxes in the first column of the table indicate
entries to be used for the currently selected provider.
Proxy bypass Use this table to specify, either by name or pattern, which hosts should not use any proxy. A direct connection
will always be used for matching hosts. Checkboxes in the first column of the table indicate entries to be used for
the currently selected provider.
Proxy entries
When using Manual proxy provider there are three predefined schemas to set settings for: HTTP, HTTPS and SOCKS [1]. Configuration for each
schema is displayed in the Proxy entries table. To edit settings for a particular schema double-click the entry or select the entry and click Edit...
button. If Port field is left blank default port number will be used. Following table lists default port numbers for each of the predefined schemas.
HTTP 80
SSL 443
SOCKS 1080
Schema Default Port
The Network Connections preference page
1. The SOCKS proxy support in Java 1.4 had certain limitations. Due to these limitations, the setting of the SOCKS system properties is not
performed when a 1.4 VM is used. The SOCKS proxy may still be used by some tooling when running on a 1.4 VM. However, users should use a
1.5 (or 5.0) VM if they require full SOCKS proxy support.
SSH2 Preferences
5.2.39. Perspectives
On the General > Perspectives preference page, you can manage the various perspectives defined in the Workbench.
Open a Use this option to set what happens when you open a new perspective. Do you want the perspective opened within the
In the same
new current Workbench window or opened in a new window?
window
perspective
Open
New Use this option to specify the perspective behavior when a new project is created. You can set it to switch the current
perspective
project perspective to be the one associated with the project type and open the perspective in the same Workbench window as
in the same
options the current one, switch the perspective and open it in a new Workbench window, or not to switch perspectives at all.
window
Revert Resets the definition of the selected perspective to the default configuration. This option is only applicable to built-in perspectives n/a
that have been overwritten using Window > Perspective > Save Perspective As...
Delete Deletes the selected perspective. This option is only applicable to user-defined perspectives (built-in perspectives can not be n/a
deleted).
Perspectives
5.2.41. Search
The General > Search preference page allows you to set preferences for searches.
Reuse editors to show This option allows you to keep using the same editor for search results to reduce the number of open editors.
On
matches
Bring Search view to front This option will display the search view at the front after performing a search.
On
after search
Ignore potential matches Select this option if you only want to see exact matches. Off
Emphasize potential This option allows you to highlight potential matches in the Search view. If the Search engine isn't 100% sure
On
matches about the match then it is considered a potential match.
Foreground color for This option allows you to select the foreground color for potential matches.
potential matches
Option for the This option allows you to define which perspectiveDescription
Default perspective should be brought to the front when there are new search Default
None
Search view results.
Password options
The Password tab combines functionality related to the master password lifecycle and password providers.
The Clear Passwords button clears cached master passwords from memory. This is analogous to logging out of the secure storage. Note that some
password providers obtain credentials from the operating system automatically. To prevent them from doing so, you'll need to log out from the
operating system account.
The Master password providers section contains a list of currently available password providers. By default, the enabled provider with the highest
priority is used to encrypt data added to secure storage. The priority range is from 0 to 10, with 10 being the highest. A password provider can be
disabled it if malfunctions, or if you prefer a lower priority password provider.
Note that data can only be decrypted by the same provider that encrypted the data. This means that changes to the list of the password providers
affect only new entries. The password provider for existing entries can only be overwritten by the application storing the data.
By default all password providers are enabled.
Each password provider that has been used at least once will have a master password associated with it. Use the Change Password... button can to
change the master password of the selected password provider.
The Recover Password... button opens the password recovery dialog. Use this option if you have forgotten the master password and have
configured password recovery questions. The button will be disabled if the password recovery setup was cancelled when the master password was
created. Note that the answers for the password recovery questions have to be entered exactly as they were specified during the password recovery
setup. Answers are case-sensitive and white space inside answers are significant.
Contents options
The Contents tab displays contents of the default secure storage.
Secure storage is organized as a tree where nodes represent context of the information and values are associated with each node. Selecting a node in
the tree will display a table of values associated with that node. Values stored in a non-encrypted form will be displayed; the encrypted values will be
shown as "*********".
At the bottom of this tab, you will find the actual file location used to persist secure storage data.
To force changes to the contents of secure storage to be saved, click Save.
To delete stored data to recover from an error or to reflect a change in the setup, click Delete. This will delete all of the contents of secure storage.
In some cases, other parts of the application may depend on the contents of secure storage that you deleted. To avoid unexpected errors, it is highly
recommended to restart the application after secure storage has been deleted.
Advanced options
The Advanced tab of the preferences page offers some extra tweaks to secure storage.
The encryption algorithm used by secure storage can be modified from this page. The drop-down list displays the discovered algorithms that are
provided by the Java virtual machine which are compatible with secure storage.
Changes in the encryption algorithm are only applied to data stored after the change. If you have already created a secure storage it would have to be
deleted and re-created to use the newly selected encryption algorithm.
Note that the list of available algorithm might be different for different Java virtual machines and could be extended by providing custom algorithms
using the Java security provider mechanism.
Secure storage
How secure storage works
Password recovery
Life of a master password
5.2.44. SSH2
The preferences on the General > Network Connections > SSH2 preferences page are divided into 4 groups.
Use the options in this tab group to configure where the ssh key directory is and what keys are to be sent to a server when
General
connecting.
Key Management Use the options in this tab group to create, manage and export keys.
Known Hosts Use the options in this tab group to manage the keys for the known hosts.
Authentication Methods Use the options in this tab group to manage the authentication methods.
Here's what the General tab of the SSH2 preference page looks like:
Here's what the Key Management tab of the SSH2 preference page looks like:
Here's what the Known Hosts tab of the SSH2 preference page looks like:
Here's what the Authentication Methods tab of the SSH2 preference page looks like:
Here is what the Startup and Shutdown preference page looks like:
Appearance options
Option Description Default
Undo history size This option allows you to set the size of the undo history for text editors. 200
Displayed tab width This option allows you to set the displayed tab width for text editors. 4
Insert spaces for tabs This option allows you to insert space characters in place of tab characters. Off
Highlight current line This option controls whether or the current line is highlighted or not. On
Show print margin This option controls whether the print margin is visible or not. Off
Print margin column This option allows you to set the print margin column position. 80
Show line numbers This option controls whether or not line numbers are shown on the left side of the text editor. Off
Show range indicator This option controls whether or not range indicators are shown in the text editor. On
Show whitespace characters This option controls whether to display whitespace characters in text editors. Off
Enable drag and drop of text This option controls whether text drag and drop is enabled. On
Warn before editing a derived file This option controls whether to warn if a derived file is going to be edited. On
Smart caret positioning at line start This option controls whether the editor automatically positions the caret and the start or end of a line. On
and end
Show affordance in hover on how to This option controls whether to show an affordance in the hover on how to make it sticky. On
make it sticky
Appearance color options This option controls various appearance colors.
Editor
5.2.51. Tracing
The Tracing preference page allows you to modify the tracing options of plug-ins dynamically.
Plug-ins may provide OSGi tracing options that write out additional logging information when the appropriate flag is set. You can set tracing options
using a .options file. However, any changes to the flags require a restart.
If a plug-in supports changing tracing options dynamically (without restarting) they will be listed on this preference page. The changes will be made
once OK is pressed.
The Tracing output settings allow more control over where tracing messages are put. A different output file can be chosen. A new file will be created
each time the plug-in is started. If the maximum number of trace files stored has been reached, the oldest file will be deleted. Setting a maximum trace
file size prevents excessively large log files from being created.
Not all plug-ins will write their trace messages to the output file. Some plug-ins instead write to console output or perform other tasks.
By default, the 56-bit DES algorithm is requested from the Java virtual machine.
The Secure Storage preference page allows you to change the encryption algorithm. Note that the new algorithm will be applied to newly
created secure storages only. The list of compatible algorithms depends on the Java virtual machine running this application.
You can change password via the Change Password... button on the Secure Storage preference page.
The Secure Storage preference page can be found under General > Security > Secure Storage .
Resolving problems
Lost secure storage password or invalid secure storage password
If you have specified password recovery questions/answers, you can use the Secure Storage preference page to recover the master
password. After the master password has been recovered, it is strongly recommended that you change the master password using the Change
Password... button on the Secure Storage preference page.
The recovered password is not displayed, but stored in the memory cache until the application is closed.
Secure storage
Password recovery
Life of a master password
Secure storage
How secure storage works
Life of a master password
By default, secure storage is located in your home directory. On Windows that typically resolves to "C:\Documents and Settings\
<user_name>\.eclipse\org.eclipse.equinox.security". This location is selected to allow multiple Eclipse-based applications to share the same
secure storage.
If you would like to modify the location of the default secure storage, you can use the "-eclipse.keyring <file_path>" runtime option. The <file_path> is
a path to the file which is used to persist the secure storage data.
The current location of the default secure storage can be found on the General > Security > Secure Storage preferences page.
Password file
The password provider mechanism can be bypassed if you specify the "-eclipse.password <file path>" runtime option. In this case the contents of the
file you specified as the argument will be used as a master password. While this option is valuable in some circumstances (such as headless
applications), the protection of the password file becomes a consideration. The password file can be protected by the operating system access rights
and/or by placing it on a removable storage, such as a USB key.
Secure storage
How secure storage works
Password recovery
Life of a master password
New Wizard
This command brings up a dialog where you can choose the type of resource to create.
Print
This command opens a dialog which allows you to specify where you would like to print the contents of the file currently being displayed in the editor.
External Tools
This command presents a drop-down menu which allows you to run or configure external tools.
Search
This command opens the search dialog, which allows you to search the workspace for specified text.
Navigation
This tool group contains a variety of editor navigation commands.
Shortcut Bar
View Toolbars
Open Perspective
This command opens a new perspective that is selected from a drop-down menu. All of the perspectives that are open within a single Workbench
window are shown on the shortcut bar.
Perspective Buttons
These buttons provide a quick way to switch to one of the open perspectives in the current Workbench window.
Available Perspectives
There are several available perspectives, while one is set as a default, others can be manually added to the perspective bar. To add new perspectives
to your workspace, click Open Perspective , select Other and choose from the following available perspectives:.
Perspectives
View Toolbars
Workbench Toolbar
Workbench Window Layout
Title Bar
View title bars contain the view name, its icon, and the view toolbar.
Shortcut Bar
Workbench Toolbar
Workbench Window Layout
5.5.1.4. Builds
Builders create or modify workspace resources, usually based on the existence and state of other resources. They are a powerful mechanism for
enforcing the constraints of some domain. As resources are created and modified, builders are run and the constraints are maintained. This transform
need not be one to one.
5.5.1.5. Perspectives
A perspective defines the initial set and layout of views in the Workbench window. One or more perspectives can exist in a single Workbench
window.
Perspectives can be opened either in the same (existing) Workbench window, hiding the current perspective, or in a new Workbench window
Perspectives define visible action sets, which you can change to customize a perspective. You can save a perspective that you build in this manner,
making your own custom perspective that you can open again later.
The Workbench defines the Resource perspective by default. This perspective shows views relevant to resource management.
Window Menu
Editor Area
Project Explorer View
Outline View
Tasks View
To view the local history of a file, choose Show Local History from the pop-up menu. This will bring up the History view and populate it with the
revisions of the selected file. You can open different revisions from the table (by using Open from the context menu or by double clicking on a
revision), compare them against the latest revision or against a previous revisions (by using Compare With Revision from the context menu), and
replace the current revision with the contents of a previous revisions (by using Get Contents from the context menu).
Toolbar
Refresh
This command refreshes the contents of the view, fetching the latest history information for the resource from the server.
Pin
When enabled will pin the view and its contents. Any new requests for history will open a new instance of the History View.
Collapse All
Will the view is in the Group by Date mode, Collapse All will collapse all of the date categories.
Compare Mode
When enabled, a double click (or a single click depending on your Open Mode strategy set in Preferences>General) will open a compare editor.
When it is disabled, clicking on a revision will open that revision.
Context menu
From the context menu of the Local History view you can perform the following operations:
Open
This command will open the contents of the selected revision in a read only editor. (The editor used is the one that is registered as the default editor for
the file type). Note: If the revision being opened is the current version of the file, then it will be opened in a regular editor.
Get Contents
This command will load the contents of the selected revision into the local copy of the file whose history is displayed in the view.
File actions
Properties Opens the property pages of the select elements. Alt + Enter
Edit actions
Undo Revert the last change in the editor Ctrl + Z
Redo Revert an undone change Ctrl + Y
Copies the currently selected text or element to the
Cut clipboard and removes the element. On elements, the Ctrl + X
remove is not performed before the clipboard is pasted.
Copies the currently selected text or elements to the
Copy Ctrl + C
clipboard
Paste the current content as text to the editor, or as a
Paste Ctrl + V
sibling or child element to the a currently selected element.
Delete Delete the current text or element selection. Delete
Select All Select all the editor content.. Ctrl + A
Find / Replace Open the Find / Replace dialog. Editor only. Ctrl + F
Finds the next occurrence of the currently selected text.
Find Next Ctrl + K
Editor only.
Finds the previous occurrence of the currently selected
Find Previous Ctrl + Shift + K
text. Editor only.
Starts the incremental find mode. After invocation, enter
Incremental Find Next Ctrl + J
the search text as instructed in the status bar. Editor only.
Starts the incremental find mode. After invocation, enter
Incremental Find Previous Ctrl + Shift + J
the search text as instructed in the status bar. Editor only.
Add a user defined task to the current text selection or
Add Task Alt + Enter
selected element.
Enclosing Element: Selects the enclosing expression,
block, method in the code. This action is aware of the
syntax. It may not function properly when the code has
syntax errors. (Arrow Up).
Next Element: Selects the current and next element.
(Arrow Right) Alt + Shift + Arrow
Expand Selection to
Keys
Previous Element: Selects the current and the previous
element (Arrow Left)
Restore Last Selection: After an invocation of Expand
Selection to restore the previous selection. (Arrow
Down)
Shows the value of a hover that would appear at the
Show Tooltip Description current cursor location. The dialog shown is scrollable F2
and does not shorten descriptions.
Navigate actions
Tries to resolve the element referenced at the current
Open F3
code selection and opens the file declaring the reference.
Tries to resolve the element referenced at the current
Open Type Hierarchy code selection and opens the element in the Type F4
Hierarchy view. Invoked on elements, opens the type
hierarchy of the element.
Brings up the Open Type selection dialog to open a type
Open Type in the editor.The Open Type selection dialog shows all Ctrl + Shift + T
types existing in the workspace.
Brings up the Open Type selection dialog to open a type
Open Type In Hierarchy in the editor and the Type Hierarchy view. The Open Ctrl + Shift + H
Type selection dialog shows all types that exist in the
workspace.
Show Outline Opens the lightweight outliner for the currently selected Ctrl + O
type.
Go to Next Problem Selects the next problem. Ctrl + . (Period)
Go to Previous Problem Selects the previous problem. Ctrl + , (Comma)
Go to Last Edit Location Reveal the location where the last edit occurred. Ctrl + Q
Opens an a dialog which allows entering the line number
Go to Line Ctrl + L
to which the editor should jump to. Editor only.
Search actions
Search... Opens the search dialog Ctrl + H
Occurrences in File Finds all occurrences of the selected element in its file Ctrl + Shift + U
Project actions
Source actions
Comment Comments out all lines containing the current selection. Ctrl + /
Uncomment Uncomments all lines containing the current selection. Ctrl + \
Indent Indent current line. Ctrl + I
Increments the level of indentation of the currently select
Shift Right lines. Only activated when the selection covers multiple Tab
lines or a single whole line.
Decrements the level of indentation of the currently select
Shift Left lines. Only activated when the selection covers multiple Shift + Tab
lines or a single whole line.
Refactor actions
Related information
Navigating the user interface using the keyboard
Keys and accessibility for the workbench
5.5.1.8. Switching workspaces
The current workspace for Eclipse can be switched by using the File->Switch Workspace command. If you have already switched your workspace
previously the previous workspaces will be available for selection in the Switch Workspace menu.
The Switch Workspace --> Other.. menu item will open the switch workspace dialog. The dialog will allow you to browse for or manually enter a
new workspace location. The combo will also allow you to select your previously selected workspaces.
Settings Transfers
When you switch your workspace you can select settings than will be transferred to the new workspace. These settings are supplied by the
org.eclipse.ui.preferenceTransfer extension.
The SDK supplies transfers for:
Workspace Layout: Opened views, their size, and selected perspectives.
Working Sets: The user defined working sets.
Drop cursors
Drop cursors indicate where a view will dock when you release your mouse button. This indication is relative to the view or editor area underneath
the cursor.
Drop Cursors
Dock above The view will appear above the view underneath the cursor.
Dock below The view will appear below the view underneath the cursor.
Cursor Name Description
Dock to the right The view will appear to the right of the view underneath the cursor.
Dock to the left The view will appear to the left of the view underneath the cursor.
The view will appear as a tab in the same pane as the view underneath the
Stack
cursor.
Double-Click
Double-clicking a view or editor's title bar maximizes the part in the Workbench window.
Option Description
Restore Restores the view to its originating (non-maximized/non-minimized) size and position within the Workbench.
Restore Restores the view or editor to its originating (non-maximized/non-minimized) size and position within the Workbench.
Move Move the part or part group.
Size Change the size of the part in the direction specified.
Marker bar
The marker bar is the vertical bar located at the left of the editor area.
Here is what the marker bar looks like:
Markers
Markers are displayed in the marker bar, to the left of the text editor.
Depending on the type of file displayed in the editor area, three kinds of markers may be displayed:
Bookmarks
Task markers (for associated tasks)
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.
Types of editors
The Workbench uses three types of editors:
Internal: These editors are launched inside the editor area in the Workbench window.
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 ( General > Editors > File Associations preference page), then the
Workbench will launch this external editor.
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 .doc file in the Workbench, and Word is registered as the
editor for .doc 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.
The following illustrates Microsoft Word embedded as an OLE document:
Toolbar
The toolbar of the Compare editor includes the following buttons:
Switch Compare Viewer
Basing on the content type the system determines which compare viewer should be used during a comparison. The button opens a drop down
menu which allows to choose between other viewers registered for the same content type. If there is no alternative content viewer available the
button is hidden.
Perform Three way/Two way Compare
The compare editor can be toggled between performing a three way compare or a two way compare which ignores the common ancestor.
Copy All from Left to Right
Copies the entire contents of the file in the left pane into the file in the right pane, making the contents of the two files identical.
Copy All Non-Conflicting Changes from Right to Left
Copies all the non-conflicting changes from the right pane into the left pane. Conflicting changes must be copied individually.
Copy Current Change from Left to Right
Merges changes in two files by copying the highlighted change in the left pane into the highlighted fragment on the right. This will overwrite the
highlighted fragment in the right pane.
Copy Current Change from Right to Left
Does the opposite of the one just described.
Select Next Difference
Highlights the next difference that is found between the compared resources.
Select Previous Difference
Highlights the previous difference that is found between the compared resources.
Select Next Change
Highlights the next change that is found between the compared resources.
Select Previous Change
Highlights the previous change that is found between the compared resources.
Comparing resources
Synchronizing with the repository
Merging changes in the compare editor
Resolving conflicts
Setting preferences for comparing files
Comparing resources with repository versions
Search view
File search
Toolbar
Collapse All
This command collapses the tree expansion state of all resources in the view.
Menus
Click the black upside-down triangle icon to open a menu of items specific to the Project Explorer. Right-click inside the view to open a context
menu.
Customize View
This command allows you to change the view for your specific needs. You may select filters to apply to the view so that you can show or hide various
artifacts as needed.
In addition to these menu items, the Project Explorer menu shows a list of recently used working sets that have been selected in the view.
Context menu
New
This command allows you to create a new resource in the Workbench. Select the type of resource to create from the submenu.
Copy
This command copies the selected resource to the clipboard.
Paste
This command pastes resources on the clipboard into the selected project or folder. If a resource is selected the resources on the clipboard are
pasted as siblings of the selected resource.
Delete
This command deletes the selected resource from the workspace.
Move
This command moves the selected resource to another location. A dialog will appear, prompting for the destination location to which the resource will
be moved.
Rename
This command allows you to specify a new name for the selected resource.
Import
This command opens the import wizard and allows you to select resources to import into the Workbench.
Export
This command opens the export wizard and allows you to export resources to an external location.
Refresh
This command refreshes the Workbench's view of the selected resource and its children. For example, this is used when you create a new file for an
existing project outside the Workbench and want the file to appear in the Project Explorer view.
Close Project
The close project command is visible when an open project is selected. This command closes the selected project.
Open Project
The open project command is visible when a closed project is selected. This command opens the selected project.
Compare With
Commands on the Compare With sub-menu allow you to do one of the following types of compares:
Compare two or three selected resources with each other
Compare the selected resource with remote versions (if the project is associated with a version control management system).
Compare the selected resource with a local history state
After you select the type of compare you want to do, you will either see a compare editor or a compare dialog. In the compare editor, you can
browse and copy various changes between the compared resources. In the compare dialog, you can only browse through the changes.
Replace With
Commands on the Replace With sub-menu allow you to replace the selected resource with another state from the local history. If the project is under
version control management, there may be additional items supplied by the version control management system as well.
Properties
This command displays the properties of the selected resource. The kinds of properties that are displayed depend on what type of resource is
selected. Resource properties may include (but are not limited to):
Path relative to the project in which it is held
Type of resource
Absolute file system path, or name of path variable when using linked resources
Resolved path variable when using a path variable for a linked resource
Size of resource
Last modified date
Read-only status
Derived resource status
Execution arguments, if it is an executable resource
Program launchers, if it is launchable
Project dependencies, if any
Three-way compare
Linked resources
Compare editor
Toolbar
The toolbar of the Bookmarks view includes the following buttons.
Delete
Delete the selected bookmark.
Go to
Open the bookmark's resource and navigate to the bookmarked region.
Menus
Click the icon at the left end of the view's title bar to open a menu of items generic to all views. Click the black upside-down triangle icon to open a
menu of items specific to the Bookmarks view. Right-click inside the view to open a context menu.
Toolbar buttons allow you to toggle whether to display properties by category and whether to filter advanced properties. Another toolbar button
allows you to restore the selected property to its default value.
To see more detailed information about a resource than the Properties view gives you, right-click the resource name in one of the navigation views and
select Properties from the pop-up menu.
To add the Properties view to the current perspective, click Window > Show View > Other... > General > Properties.
To add the Outline view to the current perspective, click Window > Show View > Other... > General > Outline.
By default, the Tasks view is included in the Resources perspective. To add it to the current perspective, click Window > Show View > Other...
> General > Tasks.
The following icons are used by the Tasks view:
Icon Description
High priority task
Low priority task
Completed task
Add task
Delete
Filter
The first column indicates whether the task is completed. Completed tasks are flagged with a check mark, which you add manually.
The second column indicates whether the task is high, normal, or low priority.
The Description column contains a description of the line item. You can edit the description of user-defined tasks by selecting Properties from the
context menu.
The Resource and Path columns provide the name and location of the resource associated with each line item.
The Location column indicates the line number of the line item within its associated resource.
Toolbar
The toolbar of the Tasks view includes the following buttons.
Add task
Manually add a "to do" item to the Tasks view.
Delete
Delete the selected line item.
Filter
Filter the view according to the type of item.
Menus
Click the icon at the left end of the view's title bar to open a menu of items generic to all views. Click the upside-down triangle icon to open a menu of
items specific to the Tasks view. Right-click inside the view to open a context menu.
By default, the Problems view is included in the Resources perspective. To add it to the current perspective, click Window > Show View >
Other... > General > Problems.
The following icons are used by the Problems view:
Icon Description
Information
Warning
Warning with quick fix
Error
Error with quick fix
Delete
Filter
The first column indicates whether the line item is a task or a compiler generated error, warning or info.
The Description column contains a description of the line item. You can edit the description of user-defined tasks by selecting Properties from the
context menu.
The Resource and Path columns provide the name and location of the resource associated with each line item.
The Location column indicates the line number of the line item within its associated resource.
Toolbar
The toolbar of the Problems view includes the following buttons.
Delete
Delete the selected line item.
Filter
Filter the view according to the type of item.
Menus
Click the icon at the left end of the view's title bar to open a menu of items generic to all views. Click the upside-down triangle icon to open a menu of
items specific to the Problems view. Right-click inside the view to open a context menu.
Event Sorting
Events in the log view can be sorted by Message, Plug-in ID or Date in ascending or descending order. Simply click on the column header that you
want the sorting to be based on. The down arrow in the column header indicates descending order; while, the up arrow indicates an ascending order.
Event Grouping
Events in the log view can be grouped by Session or Plug-in ID. Simply click on the chevron from the view's toolbar and select Group By.
Event Filtering
You can filter the view to show events of a particular type or session. Also, you can limit the number of entries in the view. Filtering options are
available under Filters... from the view's toolbar drop down menu.
Event Details
Full details about a particular event can be viewed in the Event Details dialog by double-clicking on a particular entry or selecting Event Details
from the context menu of that entry. You can view the Date, Severity, Message, Exception Stack Trace (if available) and Session Data of each
event.
You can navigate from one entry to the next via the Up and Down arrow buttons.
To copy the error to the clipboard, press the button with the clipboard image.
After you indicate a name and location for the project, you can either click Finish to create the project, or you can click Next to set up project
dependencies on the Select Referenced Projects page.
Here is what the New Project Resource page looks like:
Select Referenced Projects page
In the Referenced Projects list, you can set project dependencies for the new project. In the list of other projects in the Workbench, you can select
one or more projects on which you want the new project to depend. Initially, no projects will be selected.
Click Finish when you are done to create the new project in the Workbench.
Here is what the Select Referenced Projects page looks like:
New Project perspective options
On the preferences page (Window > Preferences > General > Perspectives), you can change the way that new projects are initially displayed.
For details on how to change this option see General.
Enter or select the The resource in which the new folder will be created. Type or navigate The resource that was selected when you chose to
parent folder the list to select the resource. create the new folder
Advanced
The Advanced button reveals or hides a section of the wizard used to create a virtual or linked folder. Select the Folder is not located in the file
system radio buton to create a virtual folder. Select the Link to folder in the file system radio button if you want the new folder to reference a
folder in the file system. Use the field below the radio button to enter a folder path or the name of a path variable. Use the Browse... button to browse
for a folder in the file system. Use the Variables... button if you want to use a path variable to reference a file system folder.
Virtual Folders
Linked resources
Path variables
Creating a folder
Creating linked resources
File name The name for the new file, including the file extension. <blank>
Advanced
The Advanced button reveals or hides a section of the wizard used to create a linked file. Check the Link to file in the file system checkbox if you
want the new file to reference a file in the file system. Use the field below the checkbox to enter a file path or the name of a path variable. Use the
Browse... button to browse for a file in the file system. Use the Variables... button if you want to use a path variable to reference a file system file.
Linked resources
Path variables
Creating a file
Creating linked resources
Archive File
If you choose this option, you will import files from an archive file.
Import - Archive File Options
Archive File The file from which to import. Type in the full path or Browse to select the path on the file system. <blank>
Filter Types... Dialog to select which file types to import. Use this to restrict the import to only certain file types. N/A
The folder
The folder into which the resources will be imported. Type the path or Browse to select a path in the holding the
Folder
Workbench. selected
resource
Overwrite Determines whether importing a resource should silently overwrite a resource which already exists in the
existing resources Workbench. If this option is off, you will be prompted before a given resource is overwritten, in which case you Off
without warning can either overwrite the resource, skip it, or cancel the import.
Select root directory Root directory in the File System to start scanning for projects to import. Type in the full path or Browse to <blank>
select the path on the file system.
Select archive file Archive file to scan for projects to import. Type in the full path or Browse to select the archive on the file <disabled>
system.
Select All Check all of the projects that were found for import.
Copy projects into When selected this will cause the imorted project to be copied into the current workspace. Off
workspace
File System
If you choose this option, you will import files from the file system.
Import - File System Options
Directory The directory from which to import files. Select a previous path from the drop down combo or <blank>
Browse to select the path in the file system.
Filter Types Dialog to select which file types to import. Use this to restrict the import to only certain file types. N/A
Select All Check off all files and folders for import. N/A
The folder into which the resources will be imported. Type the path or Browse to select a path in The folder holding the
Folder
the Workbench. selected resource
Overwrite Determines whether importing a resource should silently overwrite a resource which already exists
existing resources in the Workbench. If this option is off, you will be prompted before a given resource is overwritten, Off
without warning in which case you can either overwrite the resource, skip it, or cancel the import.
Create complete Create hierarchy (folder) structure in the Workbench to accommodate the resources being Off
folder structure imported, and all parent folders of those resources in the file system.
Option Description Default
Create selected Create hierarchy (folder) structure in the Workbench to accommodate the resources being On
folders only imported.
Create links in Create links to the original files and folders instead of copying them under the project folder. Off
workspace
Create virtual Create hierarchy (folder) structure in the Workbench to accommodate the resources being Off, unless the selection is a
folders imported. partial hierarchy, or the 'into
folder' field is a virtual folder
Create link When the 'Create links in workspace' option is set, the link file and folder locations are On
location relative automatically set to be relative to a variable instead of being an absolute path
to:
PROJECT_LOC
Preferences
Import preferences from the local file system.
From preference The file from which to import preferences. Select a previous file from the drop down combo or Browse to select the <blank>
file file in the file system.
Archive File
Choose this option to export files to an archive file.
Export - Archive File Options
Select resources to The project (and resources within that project) to export to an archive. The project holding the
export selected resource
Filter Types... Dialog to select which file types to export. Use this to restrict the export to only certain file types. N/A
Create directory Create hierarchy (folder) structure in the file system as it exists in the Workbench. Off
structure for files
Option Description Default
Create only Create hierarchy (folder) structure in the file system only for selected folders. On
selected
directories
File System
If you choose this option, you will export files to the file system.
Select The project (and resources within that project) to export to the file system. The project
resources to holding the
export selected resource
Filter Types... Dialog to select which file types to export. Use this to restrict the export to only certain file types. N/A
Create Create hierarchy (folder) structure in the file system as it exists in the Workbench. Off
directory
structure for
files
Create only Create hierarchy (folder) structure in the file system only for selected folders. On
selected
directories
Preferences
Export preferences to the local file system.
To preference file A file on the file system to store the preferences. Type the file, select a previous export file from the drop <blank>
down list, or Browse to select a file.
Containing text
Type the expression for which you wish to do the text search. Leave this field empty to search for files.
From the drop-down menu, you can choose to repeat or modify a recent search.
Wildcards
The available wildcards for search expressions are displayed in the search dialog:
"*" matches any set of characters, including the empty string
"?" matches for any character
"\" is the escape for a literal; if you want to search for an asterisk, question mark, or backslash character, type a backslash before it to indicate
that you are not using these characters as wildcards (e.g., "\*", "\?", or "\\")
Wildcards
The available wildcards for file name patterns are displayed in the search dialog:
"*" matches any set of characters, including the empty string
"?" matches for any character
"!" excludes the given file name pattern, e.g. "!*.html or !plugin.xml
Case sensitive
Turn this option on if you want the text search to be case sensitive.
Regular expression
Turn this option on to specify that the search text is a regular expression.
Whole word
Turn this option on if you want to search for whole words that are identical to the search text.
Scope
Choose the scope of your search. You can either search the whole workspace, pre-defined working sets, previously selected resources or projects
enclosing the selected resources.
Search view
Search view
Wildcards:
"*" for any string and "?" for any character
terminating "<" or " " (space) to prevent the automatic prefix matching, e.g. "M*file<" to match Makefile and MockFile but not
MakeTheFiles
Camel case:
"CS" for file names containing "C" and "S" as upper-case letters in camel-case notation.
"CreSNo" for file names containing "Cre", "S", and "No" as parts in camel-case notation.
terminating "<" or " " (space) to fix the number of camel-case parts.
Folder prefixes:
Both pattern kinds also support folder prefixes. If the pattern contains a /, the part before the last / is used to match a path in the workspace,
e.g. "org.eclipse.ui/plugin.xml".
Or a bit more complex: "*/ui</pack*.html" matches e.g. files called "package.html" in a folder named "ui" (but not in folders like "uitools" or
"*/ui/internal").
Relative paths:
For example, "./Mak" matches all files starting with "Mak" in the folder of the active editor or selection, while "../Mak" matches such files in the
parent folder.
Matching items: This list displays matches for the pattern you type in the Select an item to open field.
Recently opened files show up in a history section at the top of the list.
If the pattern matches many files with the same name, the files that are closer to the currently edited or selected resource are shown on
top of the matching items list.
The Open button opens the file with the default editor for the chosen file. A different editor can be selected in the context menu on a file or in the
Open With drop-down button.
The Show In drop-down button can be used to show the chosen file in a view.
The behavior of the Open Resource dialog can be further customized using the dialog menu:
Open Resource Options
Show Status Line When selected, the Open Resource dialog shows an additional bar at the bottom of the dialog which Show status line
displays the full path of the selected file.
Show Derived When selected, the Open Resource dialog also shows derived resources. Do not show derived
Resources resources
Working Set The search scope can be restricted by selecting one or more working sets or the global Window Show all files in the
actions Working Set. workspace.
Opening Resources
Working sets
Navigate actions
Undo
This command reverses your most recent editing action.
Redo
This command re-applies the editing action that has most recently been reversed by the Undo action.
Cut
This command removes the selection and places it on the clipboard.
Copy
This command places a copy of the selection on the clipboard.
Paste
This command places the text or object on the clipboard at the current cursor location in the currently active view or editor.
Delete
This command removes the current selection.
Select All
This command selects all text or objects in the currently active view or editor.
Find/Replace
This command allows you to search for an expression in the active editor, and optionally replace the expression with a new expression.
Find Next
This command allows you to search for the next occurrence of the current selection, or for the next occurrence of the most recent expression found
using the Find/Replace action.
Find Previous
This command allows you to search for the previous occurrence of the current selection, or for the previous occurrence of the most recent expression
found using the Find/Replace action.
Add Bookmark
This command adds a bookmark in the active file on the line where the cursor is currently displayed.
Add Task
This command adds a task in the active file on the line where the cursor is currently displayed.
Word Completion
This action will attempt to complete the word currently being entered in the active editor.
Set Encoding
This action launches a dialog that allows you to change the file encoding used to read and write the file in the active editor.
Go Into
This command refocuses the active view so that the current selection is at the root. This allows web browser style navigation within hierarchies of
artifacts.
Go To
Back: This command displays the hierarchy that was displayed immediately prior to the current display. For example, if you Go Into a
resource, then the Back command in the resulting display returns the view to the same hierarchy from which you activated the Go Into
command. This command is similar to the Back button in an HTML browser.
Forward: This command displays the hierarchy that was displayed immediately after the current display. For example, if you've just selected
the Back command, then selecting the Forward command in the resulting display returns the view to the same hierarchy from which you
activated the Back command. This command is similar to the Forward button in an HTML browser.
Up one level: This command displays the hierarchy of the parent of the current highest-level resource.
Resource: This command allows you to navigate quickly to a resource. For more information see the links to related tasks below.
Open Hyperlink
This command opens one or more hyperlinks at the current caret location. If there's only one link available it directly opens the hyperlink, else brings
up the chooser showing all the available hyperlinks at that location.
Open Resource
This command displays a dialog that lets you select any resource in the workspace to open it in an editor. For more information see the links to related
tasks below.
Show In
This sub-menu is used to find and select the currently selected resource in another view. If an editor is active, these commands are used to select the
resource currently being edited in another view.
Next
This command navigates to the next item in a list or table in the active view. For example, when the search results view is active, this navigates to the
next search result.
Previous
This command navigates to the previous item in a list or table in the active view. For example, when the search results view is active, this navigates to
the previous search result.
Go to Line
This command allows you to jump to a specific line in the active editor.
Back
This command navigates to the previous resource that was viewed in an editor. Analogous to the Back button on a web browser.
Forward
This command navigates to undo the effect of the previous Back command. Analogous to the Forward button on a web browser.
Close Project
This command closes the currently selected project or projects. The selected projects must be currently open for this command to be available.
Closing a project will remove all of that project's state from memory, but the contents on disk are left untouched.
Build All
This command performs an incremental build on all projects in the Workbench. That is, it builds (compiles) all resources in the Workbench that are
affected by any resource changes since the last incremental build. This command is only available if auto-build is turned off. Auto-build is turned off via
the Build Automatically menu option or from the General > Workspace preference page.
Build Project
This command performs an incremental build on the currently selected project. That is, it builds (compiles) all resources in the project that are affected
by any resource changes since the last build. This command is only available if auto-build is turned off. Auto-build is turned off via the Build
Automatically menu option or from the General > Workspace preference page.
Clean
This command discards all previous build results. If autobuild is on, then this invokes a full build.
Build Automatically
This command allows you to toggle the auto build preference. The auto-build preference is also located on the General > Workspace preference
page.
Properties
This command opens a dialog showing the properties of the selected project or of the project that contains the selected resource.
New Window
This command opens a new Workbench window with the same perspective as the current perspective.
New Editor
This command opens an editor based on the currently active editor. It will have the same editor type and input as the original.
Open Perspective
This command opens a new perspective in this Workbench window. This preference can be changed on the General > Perspectives preference
page. All of the perspectives that are open within the Workbench window are shown on the shortcut bar.
The perspectives you will likely want to open are listed first. This list is dependent on the current perspective. From the Other... submenu you can
open any perspective.
Show View
This command displays the selected view in the current perspective. You can configure how views are opened on the General > Perspectives
preference page. Views you are likely to want to open are listed first. This list is dependent on the current perspective. From the Other... submenu
you can open any view. The views are sorted into categories in the Show View dialog.
Customize Perspective
Each perspective includes a predefined set of actions that are accessible from the menu bar and Workbench toolbar.
Save Perspective As
This command allows you to save the current perspective, creating your own custom perspective. You can open more perspectives of this type using
the Window > Perspective > Open Perspective > Other menu item once you have saved a perspective.
Reset Perspective
This command changes the layout of the current perspective to its original configuration.
Close Perspective
This command closes the active perspective.
Close All Perspectives
This command closes all open perspectives in the Workbench window.
Navigation
This submenu contains shortcut keys for navigating between the views, perspectives, and editors in the Workbench window.
Show System Menu: Shows the menu that is used for resizing, closing or pinning the current view or editor.
Show View Menu: Shows the drop down menu that is available in the toolbar of the active view.
Maximize active view or editor: Causes the active part to take up the entire screen, or if it already is, returns it to its previous state.
Minimize active view or editor: Causes the active part to be minimized.
Activate Editor: Makes the current editor active.
Next Editor: Activates the next open editor in the list of most recently used editors.
Previous Editor: Activates the previous open editor in the list of most recently used editors.
Switch to editor: Shows a dialog that allows switching to opened editors. Shows a dialog that allows switching to opened editors.
Quick switch editor: Shows a searchable popup that allows switching to a new editor.
Next View: Activates the next open view in the list of most recently used views.
Previous View: Activates the previous open view in the list of most recently used editors.
Next Perspective: Activates the next open perspective in the list of most recently used perspectives.
Previous Perspective: Activates the previous open perspective in the list of most recently used perspectives.
Working Sets
This submenu contains entries to select or edit working sets.
Preferences
This command allows you to indicate your preferences for using the Workbench. There are a wide variety of preferences for configuring the
appearance of the Workbench and its views, and for customizing the behavior of all tools that are installed in the Workbench.
Launch configurations
Launch external tool
Program launch configuration
Main tab
Refresh tab
Build tab
Targets tab
Properties tab
Classpath tab
Workbench
Now, where Workbench editors keep a navigation history. If you open a second editor while
was I? you're editing, you can press Navigate > Backward (Alt+Left Arrow, or the
back arrow on the workbench toolbar) to go back to the last editor. This makes
working with several open editors a whole lot easier.
Quick access You can quickly find all manner of user interface elements with the Quick Access
search bar at the top of the workbench window. Click in the field or use the Ctrl+3
binding to switch focus to it. Matching elements include (but are not limited to) open
editors, available perspectives, views, preferences, wizards, and commands. Simply
start typing the name of the item you wish to invoke and we will attempt to find
something in the Workbench that matches the provided string.
Quick access If you find the Quick Access field in the toolbar takes up too much space, you can
as a popup hide it via Window > Hide Toolbar. Or select Hide from the context menu in the
toolbar.
Ctrl+E editor You can quickly switch editors using the Ctrl+E keybinding which opens a list of all
list open editors. The list supports type-ahead to find the editor as well as allows you to
close editors using a popup menu or the Delete key.
Like to start A setting on the General > Editors preference page closes all open editors
afresh each automatically whenever you exit. This makes start-up cleaner and a bit faster.
session?
Prevent in- By default, on Windows, OLE applications like Microsoft Word or Excel open as in-
place OLE place editors inside of Eclipse. You can force OLE applications to open as stand-
editors alone applications by unchecking the "Allow in-place system editors" option on the
General > Editors preference page.
Opening You can open an editor on an item by dragging the item from a view like the Project
editors using Explorer or Package Explorer and dropping it over the editor area.
drag and drop
Tiling the You can use drag and drop to modify the layout of your editor work area. Grab an
editor work editor or view tab and drag it to the edge of the editor work area. The green drop
area rectangles indicate which way the editor work area will split.
Splitting an To view or edit multiple sections of an editor at once, you can split / unsplit the
editor currently active editor via:
Window > Editor > Toggle Split Editor (Horizontal)
Window > Editor > Toggle Split Editor (Vertical)
Or just use one of the key bindings:
Ctrl+_ to split horizontally
Ctrl+{ to split vertically
You can also open a second editor instance via Window > Editor > Clone.
Open editors Use the Open mode setting on the General preference page to activate single click
with a single opening for editors. In single click mode, a single click on a file in the Project Explorer
click view (and similar views) selects and immediately opens it.
Collapsing all Use the Collapse All button on the toolbar of the Project Explorer view (and similar
open items views) to collapse all expanded project and folder items.
Global Use Search > File from the main menu to specify the text that you want to replace
find/replace and the scope in which you want to replace it. Then press Replace....
Replace from You can replace the matches in the files by using Replace... or Replace Selected...
Search view from the context menu in the Search view.
Show In If you select a resource and right click, there is a Show In > System Explorer
System context menu entry that will open the folder containing that resource in your system's
Explorer file explorer.
The command for launching the system explorer can be configured on the General
> Workspace preference page.
Linking view to
current open The resource Project Explorer view (and similar views) is not tightly linked to the
editor currently open editor by default. This means that closing or switching editors does not
change the selection in the Project Explorer view. Toggling the Link with Editor
button in the Project Explorer view toolbar ties the view to always show the current file
being edited.
Manual editor / The Navigate > Show In command provides a uniform way to navigate from an open
view editor to a view showing the corresponding file (e.g., in the Project Explorer view), or
synchronization from a file selected in one view to the same file in a different view (e.g., from the
resource Project Explorer view to the Package Explorer view).
Typing Alt+Shift+W opens a shortcut menu with the available view targets.
Quick A look at the Window > Navigation menu reveals a number of ways to quickly
navigation navigate between the various views, editors, perspectives, and menus in the
between views, workbench. These commands have keyword accelerators such as Ctrl+F6 for
editors and switching between editors, Ctrl+F7 for switching between views, Ctrl+F8 for
perspectives switching between perspectives, and F12 for activating the editor.
To directly navigate to a particular view you can define a keyboard shortcut to a view
via the General > Keys
Switch editors You can use Ctrl+PageDown and Ctrl+PageUp to activate the next or previous
and multi-page editor tab, even in multi-page editors. To switch between pages of a multi-page editor,
editors use Alt+PageDown and Alt+PageUp.
Pinning editors When the Close editors automatically preference is active (found on the
General > Editors preference page), you can stop an editor from being closed by
using the Pin Editor button which appears in the workbench toolbar.
Reordering You can rearrange the order of open editors by using drag and drop. Grab the editor
editor tabs tab and drag it to the position you want the editor to appear. When positioning editors,
the stack icon indicates a valid spot to drop.
Middle mouse You can click on a view or editor tab with your middle mouse button to close it. If you
button closes do not have a middle mouse button, try clicking on the scroll wheel if you have one.
tabs
Close The context menu of editor and view tabs offers Close Tabs to the Left and Close
Tabs to the Tabs to the Right menu to close the corresponding tabs.
Left/Right
Minimizing Running out of space? Try minimizing your unused views to reclaim screen real-estate.
views and Each view stack contains a minimize icon along side the maximize icon.
editors
Maximizing You can maximize a view or editor by double-clicking on the view's title bar or the
views and editor's tab. Double-click again to restore it to its usual size.
editors
Detached It's possible to detach a view or editor so that it can be placed wherever desired,
views and including over another Eclipse window.
editors
Simply drag the view by its tab to a location outside the workbench window to detach
it. You can also drag and drop other views into the same window.
To return the view to the workbench window, simply drag the view by its tab back
into the workbench window.
Restoring a Rearranging and closing the views in a perspective can sometimes render it
perspective's unrecognizable and hard to work with. To return it to a familiar state, use Window
layout > Perspective > Reset Perspective.
User If you find yourself repeatedly doing some command, you might be able to streamline
customizable things by assigning a key sequence to trigger that command. Assigning new key
key bindings bindings, and viewing existing bindings, is done from the General > Keys
preference page.
View all While working with your favorite editors and views in Eclipse, just press Ctrl+Shift+L
keyboard to see a full list of the currently available key bindings. This is a great way to learn what
shortcuts is available in the UI and to speed up your productivity by learning more key bindings.
This information is also available in the improved General > Keys preference
page.
Key binding Eclipse supports key bindings that contain more than one key stroke. Examples of
assistance such key bindings are Ctrl+X S (Save in the Emacs key configuration) or
Alt+Shift+Q Y (Show View (View: Synchronize) in the Default key configuration).
It is hard to learn these keys, and it can also be hard to remember them if you don't
use them very often. If you initiate such a key sequence and wait a second, a little pop-
up showing you the possible completions will appear.
Customizing You can customize which items appear on the main toolbar and menu bar using the
toolbar and Window > Perspective > Customize Perspective command.
menu bar
Restoring Select a container resource and use Restore from Local History to restore deleted
deleted files. You can restore more than one file at one time.
resources
Faster Navigate > Open Resource... (Ctrl+Shift+R) brings up a dialog that allows you
workspace to quickly locate and open an editor on any file in the workspace.
navigation
Quickly find a Use the Navigate > Go To > Resource command to quickly find a resource. If the
resource Go To > Resource command does not appear in your perspective, you can add it by
selecting Window > Perspective > Customize Perspective, then Other >
Resource Navigation.
Copying and You can drag and drop files and folders within the Project Explorer view to move
moving them around. Hold down the Ctrl key to make copies.
resources
Importing files You can quickly import files and folders into your workspace by dragging them from
the file system (e.g., from a Windows Explorer window) and dropping them into the
Project Explorer view. The files and folder are always copied into the project; the
originals are not affected. Copy and paste also work.
Exporting files Dragging files and folder from the Project Explorer view to the file system (e.g., to a
Windows Explorer window) exports the files and folders. The files and folder are
always copied; workspace resources are not affected. Copy and paste also work.
Transfer The preferences can be transferred from one workspace to another by exporting and
preferences importing them. In addition, it is possible to only do this for selected categories:
Workspace Use the Project > Close Project command to manage projects within your
project workspace. When a project is closed, its resources are temporarily "offline" and no
management longer appear in the Workbench (they are still sitting in the local file system). Closed
projects require less memory. Also, since they are not examined during builds, closing
a project can improve build times.
Deleting Use the Delete Completed Tasks command in the Task view context menu to
completed remove all completed tasks from the Tasks view. This is more convenient than
tasks individually selecting and deleting completed tasks.
Viewing Use the Properties view ( Window > Perspective > Show View > Properties)
resource when viewing the properties for many resources. Using this view is faster than opening
properties the Properties dialog for each resource.
Extra resource Label decorations are a general mechanism for showing extra information about a
information resource. Use the General > Appearance > Label Decorations preference
page to select which of the available kinds of decorations you want to see.
Filtering Most views that show resources support filtering of their items. You control which
resources items are visible by applying filters or working sets. The commands to filter are found
in the view menu.
Quick fix in You can use the Quick Fix command in the Tasks view to suggest an automatic fix for
Tasks view the selected item. The Quick Fix command is only enabled when there is a suggested
fix.
Creating path When creating a linked folder or file, you can specify the target location relative to a
variables path variable. By using path variables, you can share projects containing linked
resources without requiring team members to have exactly the same path in the file
system. You can define a path variable at the time you create a linked resource, or via
the General > Workspace > Linked Resources preference page.
Comparing zip Select two zip archives or one archive and a folder in the resource Project Explorer
archives with view and choose Compare With > Each Other from the view's popup menu. Any
each other or differences between the two inputs are opened in a Compare editor. The top pane
with a folder shows all the archive entries that differ. Double clicking on an item performs a content
compare in the bottom pane.
Switch Instead of shutting down eclipse and restarting with a different workspace you can
workspace instead use File > Switch Workspace. From here you can either open previous
workspaces directly from the menu or you can open the workspace chooser dialog to
choose a new one.
When you change certain preferences that require a restart to take effect (such as the
General > Appearance preferences), use File > Restart.
Show The General > Workspace preference page shows the current workspace path.
workspace In addition, you can show the path in window title by checking the option "Show
path current workspace path in window title".
The -showLocation command line argument can also be used to show the path in
window title and it overrides the preference.
Always run in Many operations can be optionally run in the background so that you can continue
background working while they complete.
Click Always run in background or toggle this on the General preference page
so that you never get the initial dialog for these operations.
Disabling If there are parts of the Eclipse Platform that you never use it's possible that you can
unused disable them from the UI entirely. Segments of the Workbench that may be filtered can
capabilities be found in the General > Capabilities preference page. By disabling capabilities
you are able to hide views, perspectives, preference pages and other assorted
contributions.
Storing the Usually the encodings for all files in a project are stored in one preferences file. If you
encoding of are using a version control system and the preferences file is shared, the encodings for
derived all resources, including derived, are shared along with it. To store the encodings of
resources derived resources in a separate preferences file and avoid sharing it, go to Project >
separately Properties > Resource and select the Store the encoding of derived resources
separately option.
Editing
Finding a string Use Edit > Incremental Find Next (Ctrl+J) or Edit > Incremental Find
incrementally Previous (Ctrl+Shift+J) to enter the incremental find mode, and start typing the
string to match. Matches are found incrementally as you type. The search string is
shown in the status line. Press Ctrl+J or Ctrl+Shift+J to go to the next or previous
match. Press Enter or Esc to exit incremental find mode.
Go to last edit Navigate > Go to Last Edit Location (Ctrl+Q) takes you back to the place
location where you last made a change. A corresponding button marked is shown in the
toolbar. If this toolbar button does not appear in your perspective, you can add it by
selecting Window > Perspective > Customize Perspective, then Other >
Editor Navigation.
Shortcuts for All text editors based on the Eclipse editor framework support editing functions,
manipulating including moving lines up or down (Alt+Arrow Up and Alt+Arrow Down), copying
lines lines (Ctrl+Alt+Arrow Up and Ctrl+Alt+Arrow Down), inserting a new line above
or below the current line (Ctrl+Shift+Enter and Shift+Enter), and converting to
lowercase or uppercase (Ctrl+Shift+Y and Ctrl+Shift+X).
Quick Diff: Quick Diff provides color-coded change indication while you are typing. It can be
seeing what has turned on for text editors using either the ruler context menu, Ctrl+Shift+Q or for all
changed as you new editors on the General > Editors > Text Editors > Quick Diff preference
edit page. The colors show additions, deletions, and changes to the editor buffer as
compared to a reference, for example, the contents of the file on disk.
When the mouse cursor is placed over a change in the vertical ruler, a hover displays
the original content, which can be restored using the ruler's context menu. The
context menu also allows you to enable/disable Quick Diff.
Customizing the You can customize the presentation of annotations in editors on the General >
presentation of Editors > Text Editors > Annotations preference page:
annotations
Next / previous You can use Ctrl+. and Ctrl+, to navigate to the next or previous search match,
navigation editor error, or compare difference. These are the shortcut keys for Navigate >
Next and Navigate > Previous.
Line delimiter You can set the line delimiter that is used when creating new text files. You can
support provide a single setting for the entire workspace, using the General >
Workspace preferences, or for a given project.
Note: Changing those settings does not convert existing files. To convert the line
delimiters in a project, folder or file use File > Convert Line Delimiters To >.
Word In any text editor you can complete a prefix to a word occurring in all currently open
completion editors or buffers. The default key binding for word completion is Alt+/..
Open untitled A text editor can be opened without creating a file first: select File > New >
files Untitled Text File.
8. Notices
The material in this guide is Copyright (c) Eclipse contributors 2000, 2013.
Terms and conditions regarding the use of this guide.