Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Static Public Member Functions | |
static int | openWindow (Window wd) |
static int | openErrorMessageDialog (Shell shell, String dialogTitle, String dialogMessage) |
static void | showErrorPopup (final Logger log, final String title, final String message, Exception e, IProgressMonitor monitor) |
static int | openInformationMessageDialog (Shell shell, String dialogTitle, String dialogMessage) |
static int | openWarningMessageDialog (Shell shell, String dialogTitle, String dialogMessage) |
static boolean | openQuestionMessageDialog (Shell shell, String dialogTitle, String dialogMessage) |
static boolean | popUpCustomQuestion (final String title, final String message, final String[] dialogButtonLabels, boolean failSilently) |
static boolean | popUpYesNoQuestion (final String title, final String message, boolean failSilently) |
static void | popUpFailureMessage (final String title, final String message, boolean failSilently) |
static int de.fu_berlin.inf.dpp.ui.util.DialogUtils.openErrorMessageDialog | ( | Shell | shell, |
String | dialogTitle, | ||
String | dialogMessage | ||
) | [static] |
Opens a MessageDialog of the type MessageDialog#ERROR and dispatches a call to forceActive (which gives a visual hint on the taskbar that the application wants focus).
shell | the parent shell |
dialogTitle | the dialog title, or null if none |
dialogMessage | the dialog message |
static int de.fu_berlin.inf.dpp.ui.util.DialogUtils.openInformationMessageDialog | ( | Shell | shell, |
String | dialogTitle, | ||
String | dialogMessage | ||
) | [static] |
Opens a MessageDialog of the type MessageDialog#INFORMATION and dispatches a call to forceActive (which gives a visual hint on the taskbar that the application wants focus).
shell | the parent shell |
dialogTitle | the dialog title, or null if none |
dialogMessage | the dialog message |
static boolean de.fu_berlin.inf.dpp.ui.util.DialogUtils.openQuestionMessageDialog | ( | Shell | shell, |
String | dialogTitle, | ||
String | dialogMessage | ||
) | [static] |
Opens a MessageDialog of the type MessageDialog#QUESTION and dispatches a call to forceActive (which gives a visual hint on the task-bar that the application wants focus).
shell | the parent shell |
dialogTitle | the dialog title, or null if none |
dialogMessage | the dialog message |
static int de.fu_berlin.inf.dpp.ui.util.DialogUtils.openWarningMessageDialog | ( | Shell | shell, |
String | dialogTitle, | ||
String | dialogMessage | ||
) | [static] |
Opens a MessageDialog of the type MessageDialog#WARNING and dispatches a call to forceActive (which gives a visual hint on the taskbar that the application wants focus).
shell | the parent shell |
dialogTitle | the dialog title, or null if none |
dialogMessage | the dialog message |
static int de.fu_berlin.inf.dpp.ui.util.DialogUtils.openWindow | ( | Window | wd | ) | [static] |
Calls open() on the given window and returns the result.
static boolean de.fu_berlin.inf.dpp.ui.util.DialogUtils.popUpCustomQuestion | ( | final String | title, |
final String | message, | ||
final String[] | dialogButtonLabels, | ||
boolean | failSilently | ||
) | [static] |
Ask the User a given question. It pops up a QuestionDialog with given title and message. Additionally custom button labels are applicable.
title | dialog title |
message | displayed message |
dialogButtonLabels | custom button labels |
failSilently | don`t open the dialog |
static void de.fu_berlin.inf.dpp.ui.util.DialogUtils.popUpFailureMessage | ( | final String | title, |
final String | message, | ||
boolean | failSilently | ||
) | [static] |
Indicate the User that there was an error. It pops up an ErrorDialog with given title and message.
static boolean de.fu_berlin.inf.dpp.ui.util.DialogUtils.popUpYesNoQuestion | ( | final String | title, |
final String | message, | ||
boolean | failSilently | ||
) | [static] |
Ask the User a given question. It pops up a QuestionDialog with given title and message.
static void de.fu_berlin.inf.dpp.ui.util.DialogUtils.showErrorPopup | ( | final Logger | log, |
final String | title, | ||
final String | message, | ||
Exception | e, | ||
IProgressMonitor | monitor | ||
) | [static] |
Shows an error window and sets monitors subTask to message
or exceptions message.
title | Title of error window |
message | Message of error window |
e | Exception caused this error, may be null |
monitor | May be null |