How do I detect that a SWT dialog has been opened and is visible?
问题 I have an SWT WizardDialog with a number of pages. When this dialog first opens I have to do a check for some conditions and if those conditions are met I need to show a popup over the freshly opened dialog. So I have this code to listen for SWT.Show event. The event listener responds to SWT.Show to conduct its tests and show a message box: final WizardDialog dialog = new WizardDialog(shell, wizard); dialog.setTitle("New Wizard"); dialog.create(); dialog.getShell().addListener(SWT.Show, new