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.
精彩评论