Fire event after expand/collapse tree

筅森魡賤 提交于 2019-12-11 15:33:47

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/18868107/fire-event-after-expand-collapse-tree

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!