Class MessageDialogHelper

java.lang.Object
uk.ac.gda.ui.dialog.MessageDialogHelper

public class MessageDialogHelper extends Object
This class adds to the static methods already provided by MessageDialog
  • Constructor Details

    • MessageDialogHelper

      public MessageDialogHelper()
  • Method Details

    • openYesNoToAll

      public static MessageDialogHelper.Answer openYesNoToAll(org.eclipse.swt.widgets.Shell parent, String title, String message)
      Convenience method to open a simple Yes/YesToAll/No/NoToAll question dialog.
      Parameters:
      parent - the parent shell of the dialog, or null if none
      title - the dialog's title, or null if none
      message - the message
      Returns:
      Answer.YES, Answer.YES_TO_ALL, Answer.NO, Answer.NO_TO_ALL corresponding to the pressed button. Or Answer.DEFAULT if dialog.open() returns SWT.DEFAULT