站内搜索: 请输入搜索关键词

当前页面: 开发资料首页Eclipse 专题Eclipse 3.1 M7 发布了...

Eclipse 3.1 M7 发布了...

摘要: Eclipse 3.1 M7 发布了...

Eclipse 3.1 M7 - New and Noteworthy

It's spring once again, and it brings with it a host of new and interesting things to round out milestone build M7 (May 13, 2005) which is now available for download. See the M7 build notes for details about bugs fixed and other changes. M7 is the final milestone build of the Eclipse Platform 3.1 development cycle, and marks the official start of the 3.1 endgame.

<table cellspacing="0" cellpadding="10" width="80%" border="0"><tr><td colspan="2">

JDT


</td></tr><tr><td valign="top" align="left" width="30%">

New Open Type dialog

</td><td valign="top" width="70%">The Java Open Type dialog has been improved in a number of ways:

There are major architectural changes under the hood as well. The types shown in the dialog are now found with a Java search engine query. This nets a saving of 4-6MB on a normal Eclipse development workspace over the memory hungry approach used previously.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Performance improvements

</td><td valign="top" width="70%">Performance has been improved across JDT Core. As an example, launching a workspace containing all Eclipse SDK sources used to take close to 2 minutes in 3.1 M6. It now takes under 10 seconds. Below is a snapshot of fingerprint performance tests for JDT Core.

See the Eclipse project performance page for details on all the performance work that has been going on throughout the 3.1 cycle.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Refactoring Undo/Redo available from Edit menu

</td><td valign="top" width="70%">

Refactoring Undo/Redo is now available from the Edit menu, and the separate Refactor Undo/Redo actions have been removed from the global menu bar. Additionally, refactoring Undo/Redo operations are now integrated with Java editor Undo/Redo, resulting in a more transparent undo story in the editor. For example, a refactoring triggered from within the editor is now undoable in the editor by simply pressing Ctrl+Z.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

New Type wizards support generics

</td><td valign="top" width="70%">The New Type wizards now support J2SE5 generic types in various fields: </td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Improved folding icons

</td><td valign="top" width="70%">The new lightweight folding icons shown in the Java editor now differ from the override and implements indicators: </td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Parameter guessing for type parameters

</td><td valign="top" width="70%">Code Assist now inserts the correct type parameters when completing a type in the Java editor. Type parameters that cannot be disambiguated will be selected, and the Tab key will move from one parameter to the next.

In this example String is inserted as the first type parameter, while Number is proposed for the second:

To try out this feature, you need to enable Fill argument names on the Java > Editor > Code Assist preference page.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Mixed indentation settings

</td><td valign="top" width="70%">The Java formatter preferences now allows the tab size to be configured independently from the indentation size (see the Indentation tab in your formatter profile):

For example, set Tab size to 8 and Indentation size to 4 to indent your source with four spaces. If you set the Tab policy to Mixed, every two indentation units will be replaced by a tab character.

Formatter profiles can be configured on the Java > Code Style > Formatter preference page.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Move Lines adjusts indentation

</td><td valign="top" width="70%">The Move Lines (Alt+Up/Down) and Copy Lines (Ctrl+Alt+Up/Down) commands now automatically adjust the indentation of the selected lines as you move them through Java source code.</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Shortcuts for quick assists and quick fixes

</td><td width="70%">Some of the popular quick assists like Rename In File and Assign To Local can be invoked directly with Ctrl+2 R and Ctrl+2 L. Check the keys preference page for more quick fixes that support direct invocation. </td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Support for @SuppressWarnings annotation

</td><td valign="top" width="70%">The J2SE 5.0 @SuppressWarnings annotation is now supported. Examples of recognized warning names are: "all", "deprecation", "serial", "unchecked", "finally". In the example below, the first field is tagged with the @SuppressWarnings("deprecation") annotation and no deprecation warning is reported. The second field is not tagged and a deprecation warning is reported.

Note that a compiler option controls whether @SuppressWarnings annotations are active or not.

By default, unhandled warning tokens are signaled by a warning. This warning can also be suppressed using the @SuppressWarnings("warningToken") annotation.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Support for capture conversion

</td><td valign="top" width="70%">In J2SE 5.0 compliance mode, the compiler supports capture conversion as defined in the JLS 5.1.10 (3rd edition). This restricts the possibility of assignment when wildcards are involved. </td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Improved completion on empty word

</td><td valign="top" width="70%">Java code completion on an empty word no longer automatically proposes all types visible at the completion location. You have to type the first character of the type to get a completion proposal. </td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Completion inside annotations

</td><td valign="top" width="70%">Code completion inside a J2SE 5.0 single member annotation or annotation attribute value is now supported. </td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Support for Javadoc inside package-info.java

</td><td valign="top" width="70%">Doc comments inside the package-info.java (the J2SE 5.0 replacement for package.html) are now processed, and the syntax and references in standard comment tags are verified. </td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Class file naming change for local inner types

</td><td valign="top" width="70%">In 5.0 compliance mode, the Java compiler now generates class files that follow the naming convention specified in JLS 13.1 (3rd edition) for local inner types. As a consequence, instead of generating a file named X$1$A.class, it will simply be X$1A.class. </td></tr><tr><td colspan="2">

PDE


</td></tr><tr><td valign="top" align="left" width="30%">

Bundle manifests for plug-in

</td><td valign="top" width="70%">In Eclipse 3.1, it is strongly recommended that plug-ins contain an OSGi bundle manifest.mf. In addition to faster startup and classloading, this format will allow you to take advantage of many of the new runtime capabilities such as fine control over what packages you want to expose to clients.

The option to create a manifest.mf in the New Plug-in Project creation wizard is now on by default.

You can create a bundle manifest.mf for an existing plug-in on the Overview page of the plug-in manifest editor.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

PDE enforces code accessibility

</td><td valign="top" width="70%">The plug-in's manifest.mf file allows you to control on a per-package basis the visibility of your plug-in's code to downstream plug-ins.

PDE manages each plug-in's Java classpath and checks these visibility rules at compile time. This means no one will never be caught by surprise by classloading errors at runtime, and will always be aware when they are referencing internal (discouraged) types.

</td></tr><tr><td valign="top" align="left" width="30%">

Cross-platform product export

</td><td valign="top" width="70%">If you have the RCP delta pack installed, you can now build and export your product for multiple platforms at the same time via the Eclipse Product export wizard (File > Export > Eclipse Product). </td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

RCP template with an intro

</td><td valign="top" width="70%">An intro part is a workbench part designed to introduce users to your product. The New Plug-in Project creation wizard now provides a template that give you a head start at creating the intro for your RCP product. </td></tr><tr><td colspan="2">

Platform UI


</td></tr><tr><td valign="top" align="left" width="30%">

New splash

</td><td valign="top" width="70%">

The new 3.1 splash screen is in:

We like it, but we're interested to hear what you think of it. Comments are welcome (use bug report 95034).

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Import existing project from archive

</td><td valign="top" width="70%">

You can now import an existing project from an archive file (.tar or .zip) as well as from the file system.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

MessageDialog has accessible listener

</td><td valign="top" width="70%">

MessageDialog now shows accessibility information for the info, error, question and warning graphics when accessibility tools are enabled.

The screen shot below shows the resulting information using Microsoft™ inspect32.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Preferences and properties dialog highlights hits

</td><td valign="top" width="70%">

The preferences and properties dialog now highlights hits on the type filter. Keywords are also supported. The example below shows the hits for the keyword "tab".

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Improved error part

</td><td valign="top" width="70%">

If an internal error occurs while initializing a view or editor, the workbench will substitute an error part that describes the problem. This eliminates many modal error dialogs, and helps keep failures from spreading beyond the failing part.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

File permissions propagated on import

</td><td valign="top" width="70%">

Import now propagates user file permissions for archive, read-only, and executable files.

</td></tr><tr><td colspan="2">

Update/Install


</td></tr><tr><td valign="top" align="left" width="30%">

Improved handling of feature dependencies

</td><td valign="top" width="70%">When installing a feature that depends on other features, the install wizard lets you automatically include all available dependencies. If you see a dependency error when selecting a feature to install, press the Select Required button to have the pre-requisites automatically selected. </td></tr><tr><td colspan="2">

Platform Text


</td></tr><tr><td valign="top" align="left" width="30%">

Undoing first change

</td><td valign="top" width="70%">The dirty indicator (*) in the editor tab now goes away if the initial change is undone.</td></tr><tr><td colspan="2">

Help


</td></tr><tr><td valign="top" align="left" width="30%">

Dynamic content injection in Help topics

</td><td valign="top" width="70%">The Help web application can now inject content in the topics it serves. This feature is used to inject: </td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Support for per-plug-in search index

</td><td valign="top" width="70%">It's now possible to include a pre-built search index within a documentation plug-in or fragment. The pre-built index gets merged into the master search index on the first search. This feature cuts down the first search delay dramatically (example: first-time search for Eclipse SDK is now down to 2-4sec from 40+sec).

Indexes can be built manually from PDE pop-up menu, and also through the PDE-provided Ant task.

</td></tr><tr><td colspan="2">

Intro


</td></tr><tr><td valign="top" align="left" width="30%">

Help system topics in welcome

</td><td valign="top" width="70%">

The Welcome framework now has enhanced support for displaying help system topics in an Intro page. An Intro URL command can be used to specify the Help topic id and the path to a target

element in the Intro page where the embedded documentation should appear.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

HTML-based welcome on Linux and Mac OS

</td><td valign="top" width="70%">

Windows, Linux, and Mac OS X now all use an HTML-based presentation to show intro content. This is what Linux users will see when they start 3.1:

Mac OS X:

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Support for JARing Intro plug-ins

</td><td valign="top" width="70%">

Plug-ins that have Intro content can now be JAR'ed just like any other plug-in.

</td></tr><tr><td colspan="2">

Ant


</td></tr><tr><td valign="top" align="left" width="30%">

system-path variable

</td><td valign="top" width="70%">

A new dynamic variable "system-path" allows you to define an external tool simply by specifying the name of a tool on the system path when configuring your external tool launch configuration.

</td></tr><tr><td colspan="2">
</td></tr><tr><td valign="top" align="left" width="30%">

Reconcile control in the Ant editor

</td><td valign="top" width="70%">

You can now turn off the automatic background reconcile for the Ant editor. This improves typing performance for buildfiles with numerous "large" imports. The Ant editor outline and internal data structures will be resynchronized automatically when the editor is saved (or when the reconcile is toggled back on).

</td></tr><tr><td colspan="2">
</td></tr></table>

The above features are just the ones that are new since the previous milestone build. Summaries for earlier 3.1 milestone builds:

  • New for Eclipse 3.1 milestone build M1 (August 13, 2004)
  • New for Eclipse 3.1 milestone build M2 (September 24, 2004)
  • New for Eclipse 3.1 milestone build M3 (November 5, 2004)
  • New for Eclipse 3.1 milestone build M4 (December 17, 2004)
  • New for Eclipse 3.1 milestone build M5 (February 17, 2005)
  • New for Eclipse 3.1 milestone build M6 (April 1, 2005)


↑返回目录
前一篇: 使用 Eclipse 插件来编辑、编译和调试应用程序
后一篇: 利用Eclipse编辑中文资源文件