In the previous article, we have learned about eclipse. From this article, we will start to learn how to use eclipse. First, let's take a quick look at the eclipse interface and main functions, understand the eclipse interface, and understand the main functions of Eclipse, it is recommended that you browse this blog quickly to have a general understanding of the interface and eclipse functions and development process, and then perform operations on Eclipse according to the content. [I am not a great god. Posting is only suitable for entry-level users. If you are a great god, you don't have to read it! Of course, you can take a look at it]
2.1 eclipse Interface
First, let's take a look at the interface. Eclipse, as a rich client platform, sets up a new set of standards on the interface. To improve performance, it adopts a combination of Java and system APIs and does not use swing in the interface, instead, you can directly use the interface APIs provided by the system. The performance is almost the same as that of General system software.
2.1.1 concept of workbench
The basic layout of the eclipse interface is not much different from that of a General windows program. The most peripheral window is a standard window with a title bar. The title bar is a menu, and the menu is a toolbar, at the bottom of the window is the status bar. The middle part is the user's workspace. In eclipse, the region provided for user operation is workbench-workbench. Eclipse designers say that a software interface is like a craftsman's workbench, where the craftsman uses a variety of tools to give full play to his talents, complete one excellent work after another.
2.1.2 perspective
The eclipse workbench contains multiple perspectives, but only one perspective is displayed at a time. One perspective is a set of views and editors, and the layout modes of these views and editors.
2.1.3 Editor
Most of the perspectives will have an editor window. The editor occupies the largest part of the perspective. Some perspectives without an Editor only hide the editor area. Eclipse can open related editors based on the file format opened. For example, to open a text editor, the displayed editor is the simplest text editor. To open a Java document, the corresponding editor is the Java editor.
2.1.4 View
According to the definition of Eclipse, views provide support for the editor, display some information, or provide other editing methods. On the eclipse platform, the built-in views include: Project browser view, task view, problem view, Overview view, label view, console view, browser view, search view, and attribute view. You can use the window> show View menu to expand some common views. You can use the other... in the show view submenu to open the show view dialog box.
2.1.5 project explorer View
The project browsing view is the most commonly used view. It provides a tree list that lists projects in the workspace and the file structures in the project. You can open, delete, or move or modify files in a project in the project browsing view.
2.1.6 overview view outline
The overview view displays the structure of the file being edited. For example, to open a *. Java file, the overview view displays the class structure in the *. Java file.
2.1.7 task View
Like Task Management in daily office, this task view is used to record task reminders. Tasks on the list come from many aspects, some of which are manually added by users, most of which are automatically created based on files in the project. For example, if you enter a comment containing the todo word in the Java source code, a task is automatically added to the List.
The task management function in eclipse is relatively simple. However, you can install some new plug-ins to enhance the task functions, such as adding team task management and project plans.
2.1.8 problem view problems
The problem view lists the existing problems. These problems include system running problems, problems in project files, compilation problems, and debugging and running problems. These problems are classified into two categories: Error and warning)
2.1.9 Properties
Attribute view is also a common view. Attribute view displays the available attributes of the currently selected object. The currently selected object can be in the editor or in other views.
2.1.10 search View
The search view displays the current search results. Eclipse provides a variety of search functions, and the search function can be expanded with the plug-in. You can use the search button on the toolbar to open the Search dialog box.
2.1.11 global settings of eclipse
The Global Setting Dialog Box of eclipse is also a frequently used interface. Select WINDOW> preference to open the global Settings dialog box. 2-14. The Global Settings dialog box is divided into two parts.