手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>程序设计>Java技术>列表

Eclipse 3.1 M5a 发布!!!

来源:互联网 作者:west263.com 时间:2008-02-23
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!
Ant "objects" presentation in the UI

Ant tasks, types, properties, and extra classpath entries are differentiated in the Ant preferences and Ant launch configuration tabs based on their availability for same or separate JRE builds.


Ant debugger call stack and properties

The Ant debugger presents the dependency call stack for any target.

The presentation of Ant properties are also grouped in the Variables view for your convenience:
  • System: Ant properties set from the System for the the build
  • User: properties such as those set using the -D option
  • Runtime: all properties set during the execution of the build

Ant target per build kind

The Targets tab for an Ant builder allows you to specify the target(s) that should be executed for each build kind. This includes the target to execute when you invoke a "Clean".


Part 3


JDT


Boxing/unboxing diagnosis

The J2SE 5.0 autoboxing capability is powerful but it can lead to unexpected behavior especially when passing arguments. The compiler introduces an optional diagnosis that indicates when autoboxing or autounboxing is performed. In the following example, one might think that foo(Integer) would be called, but since autounboxing is performed, foo(int) is called.


Assignment with no effect diagnosis for postfix expression

The optional diagnosis for assignment with no effect now detects the case where a postfix expression is assigned to the same variable, e.g. i = i ;


Searching generic methods and constructors

The Java search engine now finds references to, and declarations of, generic and parameterized methods.


Searching type parameters

The Java search engine now finds references to, and declarations of, type parameters in generic types and methods.


Source Actions

The source actions available in the Source context menu now support all the features of J2SE 5.0:
  • Override/Implement Methods supports generics and varargs in method declarations
  • Generate Getters and Setters works on fields of generic type as well
  • Generate Delegate Methods has support for generics and varargs, and handles methods from types occurring in type bounds as well
  • Add Constructors from Superclass offers support for generics
  • Generate Constructor using Fields offers support for generics

(More details on JDT UI's and JDT Text's Java 5.0 status for 3.1 M5 is available here.)


Change Signature and other refactorings are J2SE5-aware

Many refactorings have been improved to handle new J2SE 5.0 language features. For example, Change Method Signature now allows editing methods whose parameters are parameterized types:


Other refactorings that have been updated include Rename, Inline Constant, Inline and Extract Method, Generalize Type, and Introduce Factory.


Extract Interface refactoring

The extract interface refactoring has been rewritten in order to provide full support for J2SE 5.0 and to better respect code style preferences. New features include:
  • Support for generic types and varargs of J2SE 5.0
  • Full rewriting of existing method comments
  • Full use of code templates during code generation


Static import groups

To organize your static imports, create groups for the static imports and place them where you prefer. A new feature is to define an 'others' group to collect up all imports not matched by any other group:


The 'others' group feature is also available for non-static imports.


New quick fixes

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!