public class DialogComboDoubleSelection
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 |
---|
DialogComboDoubleSelection(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String dialogTitle,
java.lang.String dialogMessage,
java.lang.String[] choices1,
java.lang.String initialValue1,
java.lang.String[] choices2,
java.lang.String initialValue2,
IValidator<java.lang.String[]> validator)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue1()
Returns the string typed into this input dialog.
|
java.lang.String |
getValue2()
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 DialogComboDoubleSelection(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, java.lang.String dialogMessage, java.lang.String[] choices1, java.lang.String initialValue1, java.lang.String[] choices2, java.lang.String initialValue2, IValidator<java.lang.String[]> validator)
parentShell
- dialogTitle
- dialogMessage
- choices1
- initialValue1
- choices2
- initialValue2
- validator
- public java.lang.String getValue1()
public java.lang.String getValue2()
public void setErrorMessage(java.lang.String errorMessage)
null
, the OK button
is disabled.errorMessage
- the error message, or null
to clear