Skip to content

I20251205-1800

@ptziegler ptziegler tagged this 05 Dec 13:59
When the children of a previously expanded TreeItem are removed, the
call to getExpanded() should continue to return "true". On both Linux
and MacOS, this property is not persisted and therefore stored in a
local variable. But on Linux, a call to getExpanded() still returns the
result from a call to the GTK API.

To harmonize the behavior between the different operating systems,
following changes are done:

1) The call to getExpanded() now always returns the local variable,
similar to how it's done for MacOS.

2) The call to setExpanded() doesn't modify the tree item if it is
already expanded or a leaf node.

Closes https://github.com/eclipse-platform/eclipse.platform.swt/issues/2834
Assets 2
Loading