Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add N&N for auto-expand of single child elements in tree viewers #171

Merged
merged 2 commits into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions news/4.32/platform_isv.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
<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****************** -->
Expand All @@ -38,12 +40,32 @@ <h2>Platform and Equinox API</h2>
<tr>
<td id="Platform" class="section" colspan="2"><h2>Platform Changes</h2></td>
</tr>

<tr id="treeviewer_autoexpand_singlechild"> <!-- https://github.com/eclipse-platform/eclipse.platform.ui/issues/1063 -->
<td class="title">Auto-Expand for Single Child Elements in JFace Tree Viewers</td>
<td class="content">
<p>
The API method
<code>org.eclipse.jface.viewers.AbstractTreeViewer.setAutoExpandOnSingleChildLevels(int level)</code> was added to
JFace. If this method is called on a tree viewer with some positive value or the constant <code>ALL_LEVELS</code>,
expanding a tree item that only has a single child element will lead to a recursive expansion of child items. The
recursive expansion stops once an item has more than one child item or the number of expansions reaches the value
passed to the method.
<p>
<p>
To ensure backwards compatibility, this feature is disabled by default. Each instantiation of a concrete
implementation of <code>AbstractTreeViewer</code> is responsible for enabling this feature if needed.
</p>
</td>
</tr>
<!-- ******************** End of Platform ********************** -->

<!-- *********************** SWT *********************** -->
<!--
<tr>
<td id="SWT" class="section" colspan="2"><h2>SWT Changes</h2></td>
</tr>
-->
<!-- *********************** End of SWT *********************** -->
<tr><td colspan="2"/></tr>
</tbody>
Expand Down