Platform and Equinox API
Platform Changes |
|
BrowserViewer uses URISchemeHandler extensions |
The BrowserViewer now uses the extensions to org.eclipse.urischeme.uriSchemeHandlers .
When clicking a hyperlink with a non-default supported web browser URI scheme, the extensions are checked and if one can
handle the URI scheme, it will be triggered.
One example is Marketplace Client providing support for |
Handle eclipse+command:// URLs |
eclipse+command:// Link handler makes the Eclipse application start a command.
Such URLs have the form This link handler must be activated from the Link handlers preference page to bind the Eclipse application with this URL scheme in the OS. |
org.eclipse.e4.core.di.extensions APIs made public |
The dependency injection annotation APIs in org.eclipse.e4.core.di.extensions such as @EventTopic have been made an official API.
These APIs have already been commonly used by dependency injection in E4 RCP applications, but have only been marked as provisional APIs thus far. The provisional flag has now been removed. |
Saferunner can return results |
SafeRunner now supports runnables that return a result.T run(ISafeRunnableWithResult<T> code);
Example:
Using lambda:
|
Active tab highlight CSS option |
The active tab can now be highlighted by using the swt-selected-tab-highlight CSS property.
By default, the highlight is placed at the top of the tab, but it can be changed by using the boolean CSS property swt-selected-highlight-top .
Here's how it looks when enabled with the dark theme:
|
Added support for square CTabs |
Square tabs can be enabled in CSS by specifying an swt-corner-radius of 0.
|
SWT Changes |
|
Support for Ligatures on Windows |
Ligatures are now supported by the StyledText widget on Windows. It was already supported on Linux and macOS.
Screenshot of ligatures drawn in
|
Colors don't need to be disposed |
Starting from Eclipse 4.16, SWT no longer requires Color s to be disposed as they are not allocated
any OS resources.
|
Minimum GTK version update | Starting from Eclipse 4.16, SWT/GTK no longer supports versions of GTK older than 3.20. |
Dark theme tweaks Windows |
Various tweaks were implemented to improve dark theme experience on Windows, where OS supported dark theme is not quite there yet:
On Windows 10 all the dark theme tweaks including the dark scrollbars can be disabled using the
-Dorg.eclipse.swt.internal.win32.disableCustomThemeTweaks=trueNote: Once this Java property is set, all above display.setData() calls won't come into effect.
|
Support for dark scrollbars on Windows |
SWT now supports having dark scrollbars on Windows.
Dark scrollbars can be enabled via
On Windows 10, all the dark theme tweaks including the dark scrollbars can be disabled using the
-Dorg.eclipse.swt.internal.win32.disableCustomThemeTweaks=trueNote: Once this Java property is set, the above display.setData() call won't come into effect.
|
S-Leak SWT Tool has save options |
Add a save to file option for S-Leak. Two new buttons are added,
save and save as.
When saving, there are some options to control saving:
|