Eclipse Workbench
The workbench is the main work place for developers. Eclipse can also seamlessly integrate a variety of plug-ins into the workbench, or you can develop a variety of plug-ins in the work console. The Eclipse Workbench consists mainly of title bars, menu bars, toolbars, editors, perspectives, and related views.
Perspectives and views
Perspectives and views are concepts in Eclipse, 1. Perspective (concept) is an additional organizational layer provided by the Eclipse Workbench, which acts as an organization that implements the layout of multiple views and a collection of available operations, and defines a name for the collection. Eclipse, for example, provides a perspective that organizes a collection of views and operations related to Java programming, and a perspective that organizes the views and set of actions related to program debugging. Eclipse's Java Development environment provides several common perspectives, such as Java perspective, Resource perspective, debug perspective, and group Sync perspective. you can toggle between different perspectives, using only one perspective at a time. 2. The view (function) is used to browse the hierarchy of information, display properties of the activity editor, such as the console view for displaying program run-time output information and exception errors, and the Package Explorer view to browse the file structure of the project. Views can appear individually, or they can be overlaid with other views with tab styles, they can have their own separate menus and toolbars, and can be dragged to change the layout position.
Tip: Right-click on the view title and choose the Detach command from the popup shortcut menu to detach the view from the Eclipse Workbench interface, and the same action to merge the view into the Workbench interface again.
Menu bar
The Eclipse's menu bar contains basic Eclipse commands that dynamically add menus about the editor when using different editors.
Each menu has different commands, commands are used to complete the final operation, (for example) file opening and saving, code formatting, program operation and distribution debugging. The commands in the menu are numerous, but not all commands are used frequently.
1. "File" menu
The File menu contains commands such as new, save, close, print, switch workspace, properties, and so on. The menu contains many things, but there are also common and infrequently used ones.
2. "Edit" menu
The Edit menu is used for helper code design work, with advanced commands such as quick fix, extend selection to, and content assist, in addition to the frequently used cut, copy, paste commands.
3. "Source Code" menu
The commands that are contained in the source menu are commands that are related to code writing and are used primarily for helper.
4. "Refactoring" menu
The refactoring menu is the most critical menu for Eclipse, which includes commands for refactoring the project, which must be mastered.
5. "Project" menu
The Project menu is primarily used to manage projects in eclipse, enabling you to open and close projects, automate builds, and more. Common commands
6. "Run" menu
The Run menu lists the various actions related to program run and test, as well as the ability to save running and debugging records.
7. "Window" menu
The Window menu is used primarily to show, hide, or work with various views, perspectives, and actions in eclipse.
Tool bar
The Eclipse's toolbar is located below the menu bar, which is the same layout format as most software. The buttons in the toolbar are shortcut icons for the menu commands, and new toolbar buttons related to the editor are added dynamically when you open different editors. In addition to the toolbar below the menu bar, which is called the main toolbar, there are a variety of toolbars in eclipse, including the View toolbar, the Perspective toolbar, and the Quick View toolbar.
1. Main toolbar
A toolbar located below the Eclipse menu bar that displays related tool buttons based on different perspectives and different types of editors.
2. View toolbar
The Eclipse interface contains multiple views, and depending on the functional requirements of the view, the corresponding View toolbar is added to the title bar of the view. For example, the console view is used to output output and run-time exception information in a program run.
3. Perspective Toolbar
The Perspective toolbar mainly includes toggling the thumbnail buttons for different perspectives that are already open, and selecting the button to open other views. Right-clicking on the corresponding tool button pops up the Management menu of the perspective, enabling you to customize, close, reset, layout, and display text.
4. Quick View Toolbar
The Quick View toolbar contains an icon button for a quick view that is hidden as an icon button that displays the specified view when the specified tool button is clicked, which is automatically hidden to the Quick toolbar when the view loses focus. The Quick View toolbar appears by default in the lower-left corner of the workbench.
The Package Explorer View
This view is used to browse Java elements in the project structure, including packages, classes, class library references, and so on, but the main purpose is to manipulate the source code in the project.
The console view
This view is used to display the output of the program runtime and exception information at run time, before learning Swing program design, you must use the console to implement interaction with the program, for example, to facilitate the debugging of a method, before and after method execution, output "method start" and "Method end" information respectively.
1.1 Familiar with Eclipse development tools