From 1195eb525e324cb501434f370d2f50239168b873 Mon Sep 17 00:00:00 2001 From: Heiko Klare Date: Thu, 23 May 2024 15:40:49 +0200 Subject: [PATCH] Add N&N for auto-expand of single child elements in tree viewers See https://github.com/eclipse-platform/eclipse.platform.ui/pull/1072 --- news/4.32/platform_isv.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/news/4.32/platform_isv.html b/news/4.32/platform_isv.html index dce4412d5..0b539f549 100644 --- a/news/4.32/platform_isv.html +++ b/news/4.32/platform_isv.html @@ -38,6 +38,24 @@

Platform and Equinox API

Platform Changes

+ + + Auto-Expand for Single Child Elements in JFace Tree Viewers + +

+ The API method + org.eclipse.jface.viewers.AbstractTreeViewer.setAutoExpandOnSingleChildLevels(int level) was added to + JFace. If this method is called on a tree viewer with some positive value or the constant ALL_LEVELS, + 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. +

+

+ To ensure backwards compatibility, this feature is disabled by default. Each instantiation of a concrete + implementation of AbstractTreeViewer is responsible for enabling this feature if needed. +

+ +