blob: 79aec1533944a24a2b2ee809a8187254930e886c [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="copyright" content="Copyright (c) Eclipse contributors and others 2019, 2020. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page."/>
<meta http-equiv="Content-Language" content="en-us"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="STYLESHEET" href="news.css" type="text/css"/>
<style type="text/css">
body {max-width: 900px;}
table.news col.title {width: 30%;}
/*img {max-width: 520px;}*/
table.news {table-layout: fixed; border-collapse: collapse; width: 100%;}
table.news td {border-top: solid thin black; padding: 10px; overflow: visible;}
table.news tr {vertical-align: top;}
table.news tr td.section {font-size: 20px; font-weight: bold;}
table.news tr td.title {vertical-align: top; font-weight: bold;}
table.news tr td.content {vertical-align: top;}
ul {padding-left: 13px;}
</style>
<title>Eclipse Project 4.15 - New and Noteworthy</title>
</head>
<body>
<h2>Platform and Equinox API</h2>
<ul>
<li><a href="#Platform">Platform Changes</a></li>
<li><a href="#SWT">SWT Changes</a></li>
</ul>
<!-- ****************** START OF N&N TABLE****************** -->
<table class="news">
<colgroup>
<col class="title" />
<col />
</colgroup>
<tbody>
<!-- ******************** Platform ********************** -->
<tr>
<td id="Platform" class="section" colspan="2"><h2>Platform Changes</h2></td>
</tr>
<tr id="labelProvider-lambda"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=558205 -->
<td class="title">Easier usage of LabelProvider and ColumnLabelProvider</td>
<td class="content">
The <b><code>org.eclipse.jface.viewers.LabelProvider</code></b> and <b><code>org.eclipse.jface.viewers.ColumnLabelProvider</code></b> classes now
support lambda functions for their <b><code>getText()</code></b> and <b><code>getImage()</code></b> methods.
<p>
This is provided through the new static methods <b><code>createImageProvider()</code></b> and <b><code>createTextProvider()</code></b> respectively.
For use cases where the LabelProvider should implement both the <b><code>getText()</code></b> and <b><code>getImage()</code></b> methods, the static method <b><code>createTextImageProvider()</code></b> can be used.
</p>
<p>Former constructs like:</p>
<pre>
viewer.setLabelProvider(new LabelProvider() {
@Override
public String getText(Object element) {
return element.toString();
}
@Override
public Image getImage(Object element) {
return defaultImage;
}
});
</pre>
can now be replaced by:
<pre>
viewer.setLabelProvider(LabelProvider.createTextImageProvider(element -> element.toString(),
element -> defaultImage));
</pre>
</td>
</tr>
<tr id="project-explorer-initial-layout-preference"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=491185 -->
<td class="title">Preference to force default layout in Project Explorer to Flat</td>
<td class="content">
As default Project Layout in Project Explorer has been switched to hierarchical, a new preference
is available for RCP providers who want to force Flat layout by default instead. The preference is
<code>org.eclipse.ui.navigator.resources/defaultToFlatLayout</code> and can be set to <code>true</code>
in <code>plugin_customization.ini</code> or programatically <i>before</i> Project Explorer opens for
the first time, in order to force a Flat project layout. Subsequent change to this preference after
first initialization of Project Explorer will have no effect.
</td>
</tr>
<!-- ******************** End of Platform ********************** -->
<!-- *********************** SWT *********************** -->
<tr>
<td id="SWT" class="section" colspan="2"><h2>SWT Changes</h2></td>
</tr>
<tr id="webkit1-removal"> <!-- https://bugs.eclipse.org/558070 -->
<td class="title">WebKit1 Support Removed</td>
<td class="content">
As of 4.15 M1, SWT-GTK will no longer support WebKit1 as a browser backend. Only WebKit2 is supported, and
all WebKit1 code has been removed.
</td>
</tr>
<!-- *********************** End of SWT *********************** -->
</tbody>
</table>
<!-- ****************** END OF N&N TABLE ****************** -->
<script type="text/javascript" src="scripts.js"></script>
<p style="text-align:center">
<a href="jdt.php">Previous</a> <a style="margin:1em" href=".">Up</a> <a href="pde.php">Next</a>
</p>
</body>
</html>