Platform and Equinox API
Platform Changes |
|
Easier usage of LabelProvider and ColumnLabelProvider |
The org.eclipse.jface.viewers.LabelProvider and org.eclipse.jface.viewers.ColumnLabelProvider classes now
support lambda functions for their getText() and getImage() methods.
This is provided through the new static methods createImageProvider() and createTextProvider() respectively.
For use cases where the LabelProvider should implement both the Former constructs like: viewer.setLabelProvider(new LabelProvider() { @Override public String getText(Object element) { return element.toString(); } @Override public Image getImage(Object element) { return defaultImage; } });can now be replaced by: viewer.setLabelProvider(LabelProvider.createTextImageProvider(element -> element.toString(), element -> defaultImage)); |
Preference to change default layout to flat in Project Explorer |
In Eclipse 4.15, the default project layout in the Project Explorer has been switched to hierarchical layout, and a new preference
is available for RCP providers who want to force flat layout by default instead.
The preference is |
Allow configuration of enabled SWT add-ons in application model | Loading the add-ons for SWT, automatically enables all the add-ons (Drag'n'Drop, MinMax, Split, Cleanup). You can now disable unwanted add-ons using tags (DisableDnDAddon, DisableMinMaxAddon, ...) on the application model. |
Hyperlink support in cheatsheet item description |
You can now add hyperlinks in a cheat sheet item description.
Hyperlinks are expressed using All cheat sheet URLs have the following
form: The following predefined actions are included in the cheat sheet framework:
Examples:
|
SWT Changes |
|
New APIs to style CTabItem |
New APIs have been added to CTabItem to set the foreground color and selection foreground color of the individual CTabItem .
|
WebKit1 support dropped | Starting from Eclipse 4.15, SWT/GTK no longer supports WebKit1 as a browser backend. Only WebKit2 is supported, and all WebKit1 code has been removed. |