Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在折叠和展开后触发事件调整大小。当我尝试使用 SWT.Collapse 和 SWT.Expand 执行此操作时,树上没有任何变化,因为它在发生之前就被触发了。有什么办法吗?
尝试调用以在侦听Display.asyncExec器中安排 a 。在当前操作完成之前不会运行。RunnableSWT.Collapse/ExpandRunnableTree
Display.asyncExec
Runnable
SWT.Collapse/Expand
Tree