Adopting JDT Mars (4.5) mechanisms and APIs

This section describes changes that are required if you are trying to change your 4.4 plug-in to adopt the 4.5 mechanisms and APIs.

  1. Formatter Extension Point
  2. Import Rewrite Cleanup

1. Formatter Extension Point

A new extension point with id org.eclipse.jdt.core.JavaCore.JAVA_FORMATTER_EXTENSION_POINT_ID has been added which can be used to provide a custom formatter. By default, the formatter is org.eclipse.jdt.core.JavaCore.DEFAULT_JAVA_FORMATTER.

2. Import Rewrite Cleanup

Import rewrite has been cleaned up to provide consistent behavior and has the following features: