Package com.iizigo.swt
Class ValidateWizardDialog
- All Implemented Interfaces:
- IPageChangeProvider,- IRunnableContext,- IShellProvider,- IWizardContainer,- IWizardContainer2
Overrides the Wizard Dialog to provide an extra Validate button.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from class org.eclipse.jface.wizard.WizardDialog- WizardDialog.PageContainerFillLayout- Nested classes/interfaces inherited from class org.eclipse.jface.window.Window- Window.IExceptionHandler
- Field Summary- Fields inherited from class org.eclipse.jface.wizard.WizardDialog- WIZ_IMG_ERROR- Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog- DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE- Fields inherited from class org.eclipse.jface.dialogs.Dialog- 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- Fields inherited from class org.eclipse.jface.window.Window- CANCEL, OK, resizeHasOccurred
- Constructor SummaryConstructorsConstructorDescription- ValidateWizardDialog- (Shell parentShell, Wizard wizard, Image image) Creates a new wizard dialog for the given wizard.
- Method SummaryModifier and TypeMethodDescription- 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.- Methods inherited from class org.eclipse.jface.wizard.WizardDialog- 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- Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog- getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage- Methods inherited from class org.eclipse.jface.dialogs.TrayDialog- closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable- Methods inherited from class org.eclipse.jface.dialogs.Dialog- 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- Methods inherited from class org.eclipse.jface.window.Window- canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setWindowManager- Methods inherited from class java.lang.Object- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait- Methods inherited from interface org.eclipse.jface.wizard.IWizardContainer- getShell
- Constructor Details- ValidateWizardDialogCreates a new wizard dialog for the given wizard.- Parameters:
- parentShell- The parent shell.
- wizard- The wizard this dialog is working on.
- image- The icon image to use in the new shell.
 
 
- Method Details- configureShellProcesses shell configuration.- Overrides:
- configureShellin class- WizardDialog
 
- createButtonsForButtonBarCreates the buttons for this dialog's button bar.- Overrides:
- createButtonsForButtonBarin class- WizardDialog
- Parameters:
- parent- The parent composite to contain the buttons.
 
- setValidatorSets the validate state.
- buttonPressedprotected void buttonPressed- (int id) Called when a button is pressed.- Overrides:
- buttonPressedin class- WizardDialog
- Parameters:
- id- The button ID.
 
- runpublic void run- (boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException Starts running a job.- Specified by:
- runin interface- IRunnableContext
- Overrides:
- runin class- WizardDialog
- Throws:
- InvocationTargetException
- InterruptedException
- See Also:
 
- setValidateSets the validator from a control of a dialog page.
- createProgressMonitorPartHook method for subclasses to create a custom progress monitor part.- Overrides:
- createProgressMonitorPartin class- WizardDialog
- Parameters:
- composite- The parent composite-
- pmlayout- The layout.
- Returns:
- ProgressMonitorPart - the progress monitor part.