public class DialogComboSelection
extends org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, 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 |
---|
DialogComboSelection(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String dialogTitle,
java.lang.String dialogMessage,
java.lang.String[] choices,
java.lang.String initialValue,
org.eclipse.jface.dialogs.IInputValidator validator)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Returns the string typed into this input dialog.
|
void |
setErrorMessage(java.lang.String errorMessage)
Sets or clears the error message.
|
applyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
public DialogComboSelection(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, java.lang.String dialogMessage, java.lang.String[] choices, java.lang.String initialValue, org.eclipse.jface.dialogs.IInputValidator validator)
parentShell
- dialogTitle
- dialogMessage
- choices
- initialValue
- validator
- public java.lang.String getValue()
public void setErrorMessage(java.lang.String errorMessage)
null
, the OK button
is disabled.errorMessage
- the error message, or null
to clear