本文介绍了您可以在jface向导中禁用“取消"按钮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户在我的jface向导中按下下一步"按钮时,它将与我的服务器异步通信.但是无法取消此操作,因此我想基本上在jface向导中暂时禁用取消"按钮,如果可能的话,还要在标题栏中禁用关闭"按钮.
When the user presses the 'next' button in my jface wizard, it will be communicating with my server asynchronouly.However this operation cannnot be cancelled, so I want to basically disable the 'Cancel' button temporarily in my jface wizard and also if possible the 'close' button in the title bar.
这可能吗?
推荐答案
您如何与服务器通信?您是否在IWizardContainer.run()中运行它?您可以传递cancellable = false.
How are you communicating with the server? Are you running it inside IWizardContainer.run()? you can pass cancellable = false.
这篇关于您可以在jface向导中禁用“取消"按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!