Eclipse 3.4 M5 - New and Noteworthy

There's a hot new drop of Eclipse to warm you up during the northern winter. Here are some of the more noteworthy things available in milestone build M5 (February 8, 2008) which is now available for download. See the build notes for details about bugs fixed and other changes.


Platform


Regions on controls You can now set a Region into a Control, which allows for the creation of non-rectangular controls. This example snippet created the snapshot shown below.

Region on Control


Tristate buttons API was added to allow for tristate check buttons similar to the check buttons in a table or tree. This example snippet created the snapshot shown below.

Tristate button


Print control to GC API was added to allow the printing of any Control to a GC. For more info, check out Snippet 292.

Print a Control


Browser now uses XULRunner 1.9 interfaces The Browser widget has been updated to work with the upcoming XULRunner 1.9 release (which is compatible with older XULRunner versions). This affects all Browser instances on Linux, as well as Windows and OSX Browser instances created with style SWT.MOZILLA.

xulrunner19


Drag and drop improvements on Mac When inserting an item into a tree, an indicator is now displayed to show where the item will end up.

Mac tree insert


SWT for Windows 64-bit Itanium Edition Windows IA64 has joined the lineup of supported configurations for which SWT is routinely built. To use it you must be running on Windows 64-bit Itanium Edition with a 64-bit JRE.

Direct interaction with text hovers Are you tired of pressing F2 to see the full contents of a hover and to scroll down? If yes, then enable the new Allow to move into hovers preference on the Text Editors preference page:

Picture showing the text editor preferences

Once enabled, you can just move your mouse into hovers that support this functionality and start scrolling.

The Javadoc hovers in the Java editor now support links to other elements and have a toolbar at the bottom for navigating, moving to the Javadoc view and opening the corresponding declaration:

Picture showing the Javadoc hover with mouse cursor on link


Retain case of match when replacing There's a new regular expression that allows the case of each match to be retained when using Find/Replace:

Picture showing the Find/Replace dialog with the retain case regular expression

For example, replacing "test" with "\CFoo" in "Test test= TEST" results in "Foo foo= FOO".


All Markers view

The All Markers view has been added for users who prefer to have their problems, bookmarks and tasks in the same view (i.e., as it was back in the days before Eclipse 3.0).

It can be found by selecting Window > Show View > Other > All Markers

All markers view


Help feature The new feature, org.eclipse.help-feature, contains all of the plug-ins required by an RCP application in order to launch the help system.

Intro customizations New customizations have been added to allow a product to define the start page, home page, and standby page when using universal intro.

Infocenter as web archive The help infocenter can now be packaged as a web archive (WAR file) which can be deployed on a wide variety of servers.

JDT



Improved cursor jumping on Quick Fix/Quick Assist Invoking Quick Fix on a line with problem annotations moves the cursor to the closest problem, which isn't always quite what you want. For example, if you want to rename the field fString in the following scenario:

Rename fString with warning on same line

invoking Quick Fix (Ctrl+1) will move the cursor to the warning, which is the wrong cursor position to do a rename:

Quick fix opened at warning position

You can now invoke Quick Fix again to jump back to the original position and choose to rename:

Quick fix opened at original position


Annotation formatting improvements Starting with 3.4M5, the Java source code formatter provides fine-grained options for line breaks after annotations. Instead of specifying whether line breaks should be inserted after all types of annotations, it's now possible to specify this separately for each of the different types of annotations:
  • Annotations on members:

    A member annotation

  • Annotations on parameters:

    A parameter annotation

  • Annotations on local variables:

    A local variable annotation

The corresponding formatter settings are:

Formatter preference dialog showing the new line tab page


Improved diagnosis of unnecessary thrown exceptions The 'Unnecessary declaration of thrown exception' compiler diagnosis has been extended to optionally report warnings for unchecked exceptions (e.g. subclasses of java.lang.RuntimeException and java.lang.Error), if no such exception has been explicitly thrown in the code.

By default, the compiler ignores unnecessary unchecked exceptions, but this diagnosis can be activated on the Java > Compiler > Errors/Warnings preference page by unchecking the corresponding box:

Unnecessary unchecked exception preference


PDE


Context Help editor

There is a new Context Help editor available to assist clients creating context-specific help for their applications.

Context Editor


Browse launch configuration logs

The Error Log view can now be used to quickly browse launch configuration logs.

Error Log view


Flexible plug-in project conversion

In order to encourage clients to not use embedded JARs, it's now easier to convert an existing JAR to a plug-in project. To do this, simply select the JAR within your project that you want to convert and run PDE Tools > Convert Jars to Plug-in Projects.

Convert Jars to Plug-in action


Bundle-ActivationPolicy support

To further align with OSGi R4.1, PDE now supports the Bundle-ActivationPolicy manifest header, the replacement for the now-deprecated Eclipse-LazyStart header.

Bundle-ActivationPolicy quickfix


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