Package uk.ac.gda.ui.dialog
Class MessageDialogHelper
java.lang.Object
uk.ac.gda.ui.dialog.MessageDialogHelper
This class adds to the static methods already provided by MessageDialog
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible answers from message dialogs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageDialogHelper.AnsweropenYesNoToAll(org.eclipse.swt.widgets.Shell parent, String title, String message) Convenience method to open a simple Yes/YesToAll/No/NoToAll question dialog.
-
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, ornullif nonetitle- the dialog's title, ornullif nonemessage- the message- Returns:
Answer.YES,Answer.YES_TO_ALL,Answer.NO,Answer.NO_TO_ALLcorresponding to the pressed button. OrAnswer.DEFAULTif dialog.open() returnsSWT.DEFAULT
-