John Smith
John Smith

Reputation: 105

Fire event after expand/collapse tree

I need to fire event resize after collapse and expand. When I try to do that using SWT.Collapse and SWT.Expand, there is no changes on tree because its fire before its happen. Is there any way to this?

Upvotes: 0

Views: 425

Answers (1)

greg-449
greg-449

Reputation: 111142

Try calling Display.asyncExec to schedule a Runnable in the SWT.Collapse/Expand listener. The Runnable will not run until the current Tree operation is complete.

Upvotes: 1

Related Questions