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 <mist...@redhat.com> 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 <https://www.eclipse.org/downloads/eclipse-packages/> > developer, for Red Hat Developers <https://developers.redhat.com/> > _______________________________________________ > platform-dev mailing list > platform-dev@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/platform-dev
_______________________________________________ platform-dev mailing list platform-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev