Platform and Equinox API

Here are descriptions of some of the changes of interest to plug-in developers made to the Eclipse Platform and SWT for the 4.32 release of Eclipse.

New features oriented towards end-users of the platform can be viewed in the What's New section of the Eclipse Platform User Guide.

Platform Changes

Auto-Expand for Single Child Elements in JFace Tree Viewers

The API method org.eclipse.jface.viewers.AbstractTreeViewer.setAutoExpandOnSingleChildLevels(int level) was added to JFace. If this method is called on a tree viewer with some positive value or the constant ALL_LEVELS, expanding a tree item that only has a single child element will lead to a recursive expansion of child items. The recursive expansion stops once an item has more than one child item or the number of expansions reaches the value passed to the method.

To ensure backwards compatibility, this feature is disabled by default. Each instantiation of a concrete implementation of AbstractTreeViewer is responsible for enabling this feature if needed.