## What's New in Eclipse 4.21 (Platform)

Here are descriptions of some of the more interesting or significant changes made to the Eclipse Platform for the 4.21 release of Eclipse. They are grouped into:

- Views, Dialogs and Toolbar
- Preferences
- General Updates

Plug-in developers will also be interested in the corresponding What's new document in the plug-in developer's guide.

We also recommend to read the Tips and Tricks.

## Views, Dialogs and Toolbar

New clean message dialog api

A new API in the class PlainMessageDialog is introduced. It uses a builder pattern to create an immutable instance of PlainMessageDialog. It has a clean API and consists of methods for e.g. the button labels, the message and the image.

Example Usage:
`int answer = PlainMessageDialog.getBuilder(myShell, "The new dialog").image(SWT.ICON_Question).message("Like it?").buttLabels(Arrays.asList(IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL)).build().open();`

Accepted licenses remembered permanently | Before accepted licenses were only remembered during runtime and not persisted between restarts. The user selection of accepted licenses is now persisted between restarts.

## Themes and Styling

New close icon on tabs | The drawing of the close icon of tabs has been updated to align better with the operating system. Old: New:
Eclipse Windows now supports dark-theme tool-tips | Eclipse on Windows now support dark-theme tool-tips. Refer below screens-shot which show various tool-tips@dark-theme:

## General Updates

New method `create(int style)` in GridDataFactory | GridDataFactory contains a new static method `create(int style)` which returns a new GridDataFactory instance. This method is similar to `new GridData(int style)`.
Minimum Java version for SWT | SWT now requires minimum Java 11 to run SWT.
Ant 1.10.11 | Eclipse has adopted Ant version 1.10.11.