eclipse JDT Plug-in Developer Guide

JDT Programmer's Guide

Eclipse platform is a full-featured Java integrated development environment (IDE) to pass. Java development tools (JDT) allows users to write, compile, test, debug and edit the Java programming language.

JDT advantage of the many platforms and framework extension points "platform plug-in Developer's Guide," describes. JDT most likely to be seen as a set of plug-ins, it will add Java-specific behavior to a common platform resource model, and will contribute to the workbench Java-specific views, editors, and actions.

This guide discusses extension points and API JDT provides. We assume that you know the plug-in extension points, the concept of workspace resources and table UI.

Given the JDT provides a full-featured Java IDE, why you need to use JDT API? If you are building a plug-in and Java programs or interactive resources, as part of its function, you may need to do one or more of the following things:

To programmatically manipulate Java resources, such as creating projects, generate Java source code, implementation issues generated or detection code.

Programmatically start the Java program from the platform

Provide a new VM startup program to support the new Java runtime series

Add new functions and extensions to the Java IDE itself

JDT is divided into three main sections:

Core JDT - for compiling and headless infrastructure operations Java code.

JDT UI interface - IDE user interface extension.

Debug JDT - specific start-up and commissioning support for the Java programming language.

We will examine the structure and the API provided by each component.

JDT Core

Core JDT (org.eclipse.jdt.core ) is the core plug-ins and Java API defined elements. You should always plug-in list, when you as a Java to develop their own specific function.

JDT Core packet you access to infrastructure Java IDE Java object model and headless. JDT Core package comprising:

org.eclipse.jdt.core - class definition describes the Java model.
org.eclipse.jdt.core.compiler - API is defined as the compiler infrastructure.
org.eclipse.jdt.core.dom - support abstract syntax tree (AST), it can be used to check the structure of the coding unit, until the statement level.
org.eclipse.jdt.core.dom.rewrite - Support rewritable abstract syntax tree (AST), which tree structure may be used to compile the statement to the operation unit level.
org.eclipse.jdt.core.eval - Support for scrapbook or debugger code segment is calculated.
org.eclipse.jdt.core.formatter - support compilation unit, type, statements, expressions and other formatting.
org.eclipse.jdt.core.index - JDT supports the generation of index search engine that can be used.
org.eclipse.jdt.core.jdom - support a Java Document Object Model (DOM), which can be used for structural unit of the Java compiler. All types in this package have been abandoned.
org.eclipse.jdt.core.search - support the search and description match the specific elements of Java in the Java model workspace.
org.eclipse.jdt.core.util - Provides utility classes for manipulating .class files and Java model elements.
org.eclipse.jdt.core.jdom since version 3.0 has been deprecated. Compiles cell structure should be done using org.eclipse.jdt.core.dom.

JDT UI

JDT Debug

Guess you like

Origin www.cnblogs.com/wulinghui/p/11036908.html