Eclipse practice (1)

xiaoxiao2021-03-06  106

The first part uses Eclipse

The first part will give you how to use Eclipse to develop fast and effective development of Java code. Chapter 1 and Chapter 2 describes the history of Eclipse, how to get and install and how to develop and debug Java projects using Eclipse. Chapters 3 and 4 will conduct in-depth research on Java development and unit testing. Chapters Fifth and Chapter VI will introduce two of the two of the programmers and the development team, and Eclipse provides seamless binding for the two tools. Chapter 7 introduces the Sysdeo Tomcat plug-in and describes how to use this plugin to develop the Servelet and JSP. Through this section, readers will find more Eclipse use skills through their own encoding practice.

First chapter review

outline:

L Eclipse.com L. Eclipse Design Overview L Prographain

Many blacksmiths are proud of making their own tools. The first step is to make new tools when they conduct business activities or conduct a certain task with specific needs. Use forging, anvil and hammers, blacksmith repeatedly heated, forged and cooling such a process until steel becomes a suitable shape, size, and toughness.

In contrast, software development is more like a pure and abstract process. However, the code is more like a metal at high temperatures. With full skills and efforts, you can turn the code and metal into a meticulous tool or a miracle with a robust structure.

For software developers, Eclipse seems to be a blacksmith's studio, first equipped with tools such as furnace, anvil, hammer and other tools. It is like a blacksmith that may use some existing tools to make a new tool, perhaps use a series of clamps. You can develop software using some extensions of Eclipse. An important feature of Eclipse is good scalability. But don't think it can do anything, if you can make full use of Eclipse, you don't need to build your own tool, or you may not need any new tools.

Eclipse has grown together with a Java development environment, including an open source debugger. In addition, due to the popularity and open source characteristics of Eclipse, many professional tools (produced for Eclipse, using Eclipse) are now free, and more and more tools are developing in this direction.

1.1 Eclipse from

Sudden appearance of Eclipse is an incredible appearance of a featured and mature software development environment. The Eclipse1.0 release is released in November 2001. In fact, at the beginning of Eclipse, it has been criticized by lack of characteristics and methods. One of the most popular two-in-one in developers is the best environment (which is the best in which the operating system is the best). After arguing, it is surprisingly a near consistent conclusion, Eclipse What is it?

Some companies don't wait until the software version 3.0 is not adopted (it even suggests that you wait 3.1 until many serious misses). However, although Eclipse1.0 lack characteristics is not suitable for everyone's way of work, it still shows many superiorities. Its biggest advantage is that it is free, open source project, which has a lot of resources. Eclipse developers can really listen to users, and developers are the biggest beneficiaries of Eclipse. March 2003 Eclipse2.1 issued, it exceeded the expectations of nearly everyone, many people rushed to download, so that they were very difficult to download their copies in the first week of issuance.

1.1.1 background

Eclipse is not a technically an accidental event. It is said that IBM has invested more than 40 million US dollars to develop it before the Eclipse is handed over to open source organization Eclipse.org, and the company originally developed Eclipse, including Borland, IBM , Merant, QNX Software System, Rational Software, Redhat, SUSE, TOGETHERSOFT, and WebGain. Since the addition of the company added to the open source, the company has Hewlett Pachard, Fujitsu, Oracle and Sybase. IBM's subsidiary OTI (mainly engaged in Eclipse development) continues to lead Eclipse development. OTI is a famous object developer developer, which can be traced back to 1988. Object-oriented development languages ​​at the time were SmallTalk, 1996 OTI was merged by IBM and was forced to turn to the development of Visual Age products, making it a standard object-oriented development tool. Many SmallTalk's advanced philosophy is integrated to make Visual Age a special case for Java development. For example, it hides the concept of a file. Like other Visual Age products, VA4J is written in SmallTalk.

Eclipse is essentially written with VA4J using Java Preparation, and other IDEs have a SmallTalk feature compared to other IDE, that is, because of this feature, it will gradually disappear. Some OO's purexists are very disappointed, but this makes Java more popular and practical, as if there is an excellent translator. Eclipse found a balance point in theory and actual intermediate.

1.1.2 Eclipse organization

Eclipse is administrative and guidance for a association, including representatives of various partners. It determines the goal of Eclipse. The main goals contain two aspects to ensure the strong development of Eclipse open source and to seek business opportunities for partners.

In operation, Eclipse is led by the PMC (Project Management Committee) and supervised overall. Eclipse is divided into several small items:

N platform

N JDT (Java Development Toolkit, It is known by Erich Gamma, Erich Gamma's research in design model and agile development method, has been known for everyone)

N plug-in development environment (PDE)

Each small project is subdivided into a series of components, and the platform sub-project is divided into 12 components, including Compare, Help, and SEACH. JDT contains three components: Debug (it provides Java debugging support), UI, and Core. PDE contains two components: UI and Core. Those who can contribute to this project not only include IBM and their partners, just like other open source projects, welcome any individual and company to participate in this project and make their own contribution.

1.1.3 open source software

slightly

1.2 eclipse

To date, we will make Eclipse metaphor for the blacksmith's studio, you can not only make products, you can also make tools for manufacturing products. In fact, this is a very appropriate metaphor. When you downloaded Eclipse SDK, you get a PDE with JDT and Eclipse extensions written and debug Java programs. If you only need a Java IDE, you don't need anything else, of course, in addition to JDT, you don't have to use PDE. This is why many people choose Eclipse, and the first part of the book will focus on the method of using Eclipse as an IDE.

JDT Although it is a plugin of Eclipse, Eclipse is an Eclipse platform for primary level, and his purpose is to provide an integrated development tool, which can be developed using the Eclipse plugin. It is very useful to extend Eclipse using plugins like JDT. The advantage of Eclipse is to have a very small running kernel, which is implemented by one or a series of plugins. So, Eclipse SDK is like a blacksmith's studio, and the Eclipse platform is a foundation, as if there is only a studio of electricity, water and line chart. If you want to be a pottery worker rather than a blacksmith, then you install a pottery kiln and a pottery hand wheel. If you want to use Eclipse to develop C / C , then you will replace JDT into CDT. The plug-in design makes Eclipse have good scalability. More importantly, Eclipse also provides good support to the collaboration of components, not only easy to install, but also seamlessly. Translator: Jiang Hai Long (please specify please)

转载请注明原文地址:https://www.9cbs.com/read-124259.html

New Post(0)