public class MessageDialogWithPreference
extends org.eclipse.jface.dialogs.MessageDialogWithToggle
Modifier and Type | Class and Description |
---|---|
static class |
MessageDialogWithPreference.Preference |
Modifier and Type | Field and Description |
---|---|
protected MessageDialogWithPreference.Preference |
preference |
CONFIRM, ERROR, INFORMATION, NONE, QUESTION, QUESTION_WITH_CANCEL, WARNING
imageLabel, message, messageLabel
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
Constructor and Description |
---|
MessageDialogWithPreference(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
org.eclipse.swt.graphics.Image image,
java.lang.String message,
int type,
java.lang.String[] labels,
int index,
java.lang.String toggle,
MessageDialogWithPreference.Preference preference) |
Modifier and Type | Method and Description |
---|---|
protected void |
buttonPressed(int code) |
MessageDialogWithPreference.Preference |
getPreference() |
java.lang.String |
getPrefKey()
Deprecated.
Use
getPreference() . getKey() instead. |
org.eclipse.jface.preference.IPreferenceStore |
getPrefStore()
Deprecated.
Use
getPreference() . getStore() instead. |
int |
open() |
static MessageDialogWithPreference |
open(int kind,
org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
java.lang.String message,
java.lang.String toggle,
MessageDialogWithPreference.Preference preference,
int style) |
static MessageDialogWithPreference |
openError(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
java.lang.String message,
java.lang.String toggle,
MessageDialogWithPreference.Preference preference) |
static MessageDialogWithPreference |
openInformation(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
java.lang.String message,
java.lang.String toggle,
MessageDialogWithPreference.Preference preference) |
static MessageDialogWithPreference |
openOkCancelConfirm(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
java.lang.String message,
java.lang.String toggle,
MessageDialogWithPreference.Preference preference) |
static MessageDialogWithPreference |
openWarning(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
java.lang.String message,
java.lang.String toggle,
MessageDialogWithPreference.Preference preference) |
static MessageDialogWithPreference |
openYesNoCancelQuestion(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
java.lang.String message,
java.lang.String toggle,
MessageDialogWithPreference.Preference preference) |
static MessageDialogWithPreference |
openYesNoQuestion(org.eclipse.swt.widgets.Shell shell,
java.lang.String title,
java.lang.String message,
java.lang.String toggle,
MessageDialogWithPreference.Preference preference) |
void |
setPreference(MessageDialogWithPreference.Preference preference) |
void |
setPrefKey(java.lang.String key)
Deprecated.
Use
setPreference(Preference) instead. |
void |
setPrefStore(org.eclipse.jface.preference.IPreferenceStore store)
Deprecated.
Use
setPreference(Preference) instead. |
createButtonsForButtonBar, createDialogArea, createToggleButton, getToggleButton, getToggleState, open, openError, openInformation, openOkCancelConfirm, openWarning, openYesNoCancelQuestion, openYesNoQuestion, setToggleButton, setToggleMessage, setToggleState
configureShell, createButton, createCustomArea, customShouldTakeFocus, getButton, getButtonLabels, getDefaultButtonIndex, getImage, getMinimumMessageWidth, handleShellCloseEvent, open, openConfirm, openError, openInformation, openQuestion, openWarning, setButtonLabels, setButtons
createButtonBar, createContents, createDialogAndButtonArea, createMessageArea, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImage
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, dialogFontIsDefault, getBlockedHandler, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
protected MessageDialogWithPreference.Preference preference
public MessageDialogWithPreference(org.eclipse.swt.widgets.Shell shell, @Nullable java.lang.String title, @Nullable org.eclipse.swt.graphics.Image image, java.lang.String message, int type, java.lang.String[] labels, int index, java.lang.String toggle, MessageDialogWithPreference.Preference preference)
public static MessageDialogWithPreference open(int kind, org.eclipse.swt.widgets.Shell shell, @Nullable java.lang.String title, java.lang.String message, java.lang.String toggle, MessageDialogWithPreference.Preference preference, int style)
public static MessageDialogWithPreference openError(org.eclipse.swt.widgets.Shell shell, @Nullable java.lang.String title, java.lang.String message, java.lang.String toggle, MessageDialogWithPreference.Preference preference)
public static MessageDialogWithPreference openInformation(org.eclipse.swt.widgets.Shell shell, @Nullable java.lang.String title, java.lang.String message, java.lang.String toggle, MessageDialogWithPreference.Preference preference)
public static MessageDialogWithPreference openOkCancelConfirm(org.eclipse.swt.widgets.Shell shell, @Nullable java.lang.String title, java.lang.String message, java.lang.String toggle, MessageDialogWithPreference.Preference preference)
public static MessageDialogWithPreference openWarning(org.eclipse.swt.widgets.Shell shell, @Nullable java.lang.String title, java.lang.String message, java.lang.String toggle, MessageDialogWithPreference.Preference preference)
public static MessageDialogWithPreference openYesNoCancelQuestion(org.eclipse.swt.widgets.Shell shell, @Nullable java.lang.String title, java.lang.String message, java.lang.String toggle, MessageDialogWithPreference.Preference preference)
public static MessageDialogWithPreference openYesNoQuestion(org.eclipse.swt.widgets.Shell shell, @Nullable java.lang.String title, java.lang.String message, java.lang.String toggle, MessageDialogWithPreference.Preference preference)
protected void buttonPressed(int code)
buttonPressed
in class org.eclipse.jface.dialogs.MessageDialogWithToggle
public int open()
open
in class org.eclipse.jface.dialogs.MessageDialog
public void setPreference(MessageDialogWithPreference.Preference preference)
public MessageDialogWithPreference.Preference getPreference()
@Deprecated public void setPrefStore(org.eclipse.jface.preference.IPreferenceStore store)
setPreference(Preference)
instead.setPrefStore
in class org.eclipse.jface.dialogs.MessageDialogWithToggle
@Deprecated public void setPrefKey(java.lang.String key)
setPreference(Preference)
instead.setPrefKey
in class org.eclipse.jface.dialogs.MessageDialogWithToggle
@Deprecated public org.eclipse.jface.preference.IPreferenceStore getPrefStore()
getPreference()
.
getStore()
instead.getPrefStore
in class org.eclipse.jface.dialogs.MessageDialogWithToggle
@Deprecated public java.lang.String getPrefKey()
getPreference()
.
getKey()
instead.getPrefKey
in class org.eclipse.jface.dialogs.MessageDialogWithToggle