blob: 74afe7fce56fcb3df3016ea755b18f883bcd17b7 [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 <code>org.eclipse.jface.viewers.LabelProvider</code> and <code>org.eclipse.jface.viewers.ColumnLabelProvider</code> classes now
support lambda functions for their <code>getText()</code> and <code>getImage()</code> methods.
This is provided through the new static methods <code>createImageProvider()</code> and <code>createTextProvider()</code> respectively.
<p>
For use cases where the LabelProvider should implement both the <code>getText()</code> and <code>getImage()</code> methods, the static method <code>createTextImageProvider()</code> 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 change default layout to flat in Project Explorer</td>
<td class="content">
In Eclipse 4.15, the default project layout in the <b>Project Explorer</b> has been switched to <b>hierarchical layout</b>, and a new preference
is available for RCP providers who want to force <b>flat layout</b> by default instead.
<p>
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.
</p>
</td>
</tr>
<tr id="disable-swt-addons"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=394231 -->
<td class="title">Allow configuration of enabled SWT add-ons in application model</td>
<td class="content">
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.
</td>
</tr>
<tr id="cheatsheet-hyperlinks"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=559885 -->
<td class="title">Hyperlink support in cheatsheet item description</td>
<td class="content">
You can now add hyperlinks in a cheat sheet item description.
<p><img src="images/hyperlinks.png" alt=""/></p>
<p>Hyperlinks are expressed using <code>&lt;a href="URL"&gt;display link&lt;/a&gt;</code>, where URL
is a valid URL to an external web site or a CheatSheet URL that represents a CheatSheat action.</p>
<p>All cheat sheet URLs have the following
form: <code>http://org.eclipse.ui.cheatsheet/&lt;action_name&gt;?param1=value1&amp;param2=value2</code>
and will be processed by the cheat sheet framework.</p>
<p>The following predefined actions are included in the cheat sheet framework:</p>
<ul>
<li>showView - activates view with given view id</li>
<li>execute - executes the specified command</li>
</ul>
<p>Examples:</p>
<ul>
<li>Execute command: <code>&lt;a href="http://org.eclipse.ui.cheatsheet/execute?command=org.eclipse.search.ui.openSearchDialog"&gt;Open Search Dialog&lt;/a&gt;</code><br/></li>
<li>Show view: <code>&lt;a href="http://org.eclipse.ui.cheatsheet/showView?id=org.eclipse.pde.runtime.LogView"&gt;Show Error Log&lt;/a&gt;</code></li>
<li>External: <code>&lt;a href="https://eclipse.org"&gt;eclipse.org&lt;/a&gt;</code></li>
</ul>
</td>
</tr>
<!-- ******************** End of Platform ********************** -->
<!-- *********************** SWT *********************** -->
<tr>
<td id="SWT" class="section" colspan="2"><h2>SWT Changes</h2></td>
</tr>
<tr id="CTabItem"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=559986 -->
<td class="title">New APIs to style CTabItem</td>
<td class="content">
New APIs have been added to <code>CTabItem</code> to set the foreground color and selection foreground color of the individual <code>CTabItem</code>.
<p>
<code>
public void CTabItem.setForeground(Color color)<br/>
public Color CTabItem.getForeground()<br/>
</code>
</p>
<p>
<code>
public void CTabItem.setSelectionForeground(Color color)<br/>
public Color CTabItem.getSelectionForeground()
</code>
</p>
</td>
</tr>
<tr id="webkit1-removal"> <!-- https://bugs.eclipse.org/558070 -->
<td class="title">WebKit1 support dropped</td>
<td class="content">
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.
</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>