|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mailster.gui.utils.DialogUtils
public class DialogUtils
Contains Dialog specific utility methods.
| Constructor Summary | |
|---|---|
DialogUtils()
|
|
| Method Summary | |
|---|---|
static void |
centerShellOnParentShell(org.eclipse.swt.widgets.Shell shell)
Center a shell relatively to it's parent. |
static void |
centerShellOnScreen(org.eclipse.swt.widgets.Shell shell)
Center a shell on screen. |
static org.eclipse.jface.dialogs.MessageDialog |
createQuestionDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String message,
org.eclipse.swt.graphics.Image titleImage)
Creates a question dialog. |
static void |
selectComboValue(org.eclipse.jface.viewers.ComboViewer viewer,
java.lang.String key,
org.eclipse.jface.preference.IPreferenceStore store)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DialogUtils()
| Method Detail |
|---|
public static void centerShellOnScreen(org.eclipse.swt.widgets.Shell shell)
shell - the shell to center on screenpublic static void centerShellOnParentShell(org.eclipse.swt.widgets.Shell shell)
shell - the shell to center on screen
public static org.eclipse.jface.dialogs.MessageDialog createQuestionDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String message,
org.eclipse.swt.graphics.Image titleImage)
open method will return either
IDialogConstants.YES_ID if the question
dialog was confirmed with YES,
IDialogConstants.NO_ID if the dialog
was left with NO or -1 if the dialog was dismissed without
pressing a button(ESC, etc.). Note that the open method
blocks.
parentShell - the parent shelltitle - the dialog title, or null if nonemessage - the dialog messagetitleImage - the dialog title image, or null if none
MessageDialog
public static void selectComboValue(org.eclipse.jface.viewers.ComboViewer viewer,
java.lang.String key,
org.eclipse.jface.preference.IPreferenceStore store)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||