public class ValidateWizardDialog extends WizardDialog
WizardDialog.PageContainerFillLayout
Window.IExceptionHandler
WIZ_IMG_ERROR
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
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
CANCEL, OK, resizeHasOccurred
Constructor and Description |
---|
ValidateWizardDialog(Shell parentShell,
Wizard wizard,
Image image)
Creates a new wizard dialog for the given wizard.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buttonPressed(int id)
Called when a button is pressed.
|
protected void |
configureShell(Shell newShell)
Processes shell configuration.
|
protected void |
createButtonsForButtonBar(Composite parent)
Creates the buttons for this dialog's button bar.
|
protected ProgressMonitorPart |
createProgressMonitorPart(Composite composite,
GridLayout pmlayout)
Hook method for subclasses to create a custom progress monitor part.
|
void |
run(boolean fork,
boolean cancelable,
IRunnableWithProgress runnable)
Starts running a job.
|
static void |
setValidate(IWizardPage page,
IWizardValidator validator)
Sets the validator from a control of a dialog page.
|
void |
setValidator(IWizardPage page,
IWizardValidator validator)
Sets the validate state.
|
addPageChangedListener, addPageChangingListener, backPressed, cancelPressed, close, createContents, createDialogArea, finishPressed, firePageChanged, firePageChanging, getButton, getCurrentPage, getProgressMonitor, getSelectedPage, getShellStyle, getWizard, helpPressed, isModal, nextPressed, removePageChangedListener, removePageChangingListener, setButtonLayoutData, setMinimumPageSize, setMinimumPageSize, setModal, setPageSize, setPageSize, setShellStyle, setWizard, showPage, update, updateButtons, updateMessage, updateSize, updateSize, updateTitleBar, updateWindowTitle
getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setWindowManager
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getShell
public ValidateWizardDialog(Shell parentShell, Wizard wizard, Image image)
parentShell
- The parent shell.wizard
- The wizard this dialog is working on.image
- The icon image to use in the new shell.protected void configureShell(Shell newShell)
configureShell
in class WizardDialog
protected void createButtonsForButtonBar(Composite parent)
createButtonsForButtonBar
in class WizardDialog
parent
- The parent composite to contain the buttons.public void setValidator(IWizardPage page, IWizardValidator validator)
protected void buttonPressed(int id)
buttonPressed
in class WizardDialog
id
- The button ID.public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException
run
in interface IRunnableContext
run
in class WizardDialog
InvocationTargetException
InterruptedException
WizardDialog.run(boolean, boolean, org.eclipse.jface.operation.IRunnableWithProgress)
public static void setValidate(IWizardPage page, IWizardValidator validator)
protected ProgressMonitorPart createProgressMonitorPart(Composite composite, GridLayout pmlayout)
createProgressMonitorPart
in class WizardDialog
composite
- The parent composite-pmlayout
- The layout.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.