private void showMessageDialogConfirm() { String title = "Confirmation"; String mesg = "Nothing will be done. Ok?"; boolean result = MessageDialog.openConfirm(getShell(), title, mesg); messageDlgResLabel.setText("Result: " + result); messageDlgResLabel.pack(); }