Platform Changes |
|
DeferredImageDescriptor API |
The DeferredImageDescriptor API has been added to JFace
allowing the creation of ImageDescriptor instances from
a URL, where the calculation of the URL is potentially costly
(because it might involve searching through multiple directories or
bundles/fragments on disk).
The new API can be called using
Old way:
New way:
|
Use System colors in workbench CSS theme files |
In workbench theme CSS files, you can now reference the system colors defined by SWT. To do so, use the
SWT field name replacing uderscores _ by dashes - and prefixing with hash # .
For example, to reference the system color |
Additional widget factories | Factories for additional SWT widgets have been created: SashFactory, ShellFactory and SectionFactory. |
SWT Changes |
|
Support for Chromium browser renderer |
SWT now supports Chromium as a browser renderer on all platforms using a new SWT.CHROMIUM constant. Please see this
FAQ entry for details on using the Chromium style browser.
|
Colors have new Device free constructors | Starting from Eclipse 4.16, SWT no longer required Colors to be disposed, with Eclipse 4.17 new constructors are available which don't require a Device when creating Colors. |
Support for dark theme Menu under Windows10 |
SWT supports dark theme Menu under Windows10 as below:
Old:
New:
On Windows 10, all the dark theme tweaks including the dark menu can be disabled using the
-Dorg.eclipse.swt.internal.win32.disableCustomThemeTweaks=true |
Improved dark theme Combo under Windows |
SWT supports improved dark theme Combo under Windows10 as below:
Old:
New:
On Windows 10, all the dark theme tweaks including the dark combo can be disabled using the
-Dorg.eclipse.swt.internal.win32.disableCustomThemeTweaks=true |