Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-dev] How to be informed of root TreeItem addition?

Hi Mickael,

We were faced to the same problem in the past, and there was no solution. I've spent a little time checking SWT Source Code, and it is not possible for the moment.

Our idea was not very smart : a thread checked regularly the Tree to determine the changes... Efficient at least.

The enhancement you asked (SWT.ItemAdded) makes sense for me, and it could be interesting for many widgets (table, toolbar, ...)

Regards

Laurent


Le jeu. 28 nov. 2019 à 11:46, Mickael Istria <mistria@xxxxxxxxxx> a écrit :
Hi all,

In the context of https://bugs.eclipse.org/bugs/show_bug.cgi?id=553353 , we'd like to be able to react to Tree emptiness or non-emptiness. Eike and I have tried different patches, but none of us could find an event to be informed of TreeItem addition to the root of the tree (deletion can be detected by Dispose, but there is no counter-part for addition).
Is anyone aware of a trick to be notified when something is added in the Tree?
If not, would an enhancement request about a new type of event SWT.ItemAdded and related listeners make sense?

Thanks in advance
--
Mickael Istria
Eclipse IDE developer, for Red Hat Developers
_______________________________________________
platform-dev mailing list
platform-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/platform-dev

Back to the top