开发者

Can you disable the cancel button in a jface wizard?

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 d开发者_如何学Goisable the 'Cancel' button temporarily in my jface wizard and also if possible the 'close' button in the title bar.

Is this possible?


pass your long-running code wrapped by IRunnableWithProgress into wizard.getContainer().run(true, false, rwp). Inside your code you will have access to IProgressMonitor, which basically controls the visual progress bar.


How are you communicating with the server? Are you running it inside IWizardContainer.run()? you can pass cancellable = false.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜