Package com.iizigo.panel.wizards
Class AddUICompWizard
java.lang.Object
org.eclipse.jface.wizard.Wizard
com.iizigo.panel.wizards.AddUICompWizard
- All Implemented Interfaces:
- IShellProvider,- IWizard
Wizard used when a UI component is about to be added. This wizard provides a mechanism to pop-up a dialog box so the user can fill in the name of the component, VS connections, etc.
- Author:
- Christopher Mindus
- Field SummaryFields- Fields inherited from class org.eclipse.jface.wizard.Wizard- DEFAULT_IMAGE
- Method SummaryModifier and TypeMethodDescription- boolean- static boolean- doAdd- (IAddUICompProvider<?> provider, UIComps uiComps, int index, PanelEditor editor) Performs the add component action.- static boolean- doWizardBeforeDrop- (UIComp dropComponent, UIComps uiComps, ComplexOperation op) Performs the wizard prompting for the component before dropping it.Gets the Module model.Gets the panel editor.Gets the UIComps instance for e.g.Returns the undo/redo instance.Gets the VirtualSpace.- static boolean- isSilent()Checks if the dialog box should be shown or if it is silent.- booleanFinishes the dialog.- static void- setSilent- (boolean isSilent) Sets the silent flag.- Methods inherited from class org.eclipse.jface.wizard.Wizard- addPage, addPages, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getMinimumWizardSize, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
- Field Details- SILENT_PREFERENCEThe Silent creation preference store name.- See Also:
 
 
- Method Details- isSilentpublic static boolean isSilent()Checks if the dialog box should be shown or if it is silent.
- setSilentpublic static void setSilent- (boolean isSilent) Sets the silent flag.- Parameters:
- isSilent- The flag.
 
- doAddpublic static boolean doAdd- (IAddUICompProvider<?> provider, UIComps uiComps, int index, PanelEditor editor) Performs the add component action.- Parameters:
- provider- The provider instance to create a new component.
- uiComps- The target UIComps.
- index- The index in UIComps, -1 for last.
- editor- The panel editor.
- Returns:
- true if successful, false if user canceled the operation.
 
- doWizardBeforeDroppublic static boolean doWizardBeforeDrop- (UIComp dropComponent, UIComps uiComps, ComplexOperation op) Performs the wizard prompting for the component before dropping it. This is called due to JavaScript panel editor callback, and will modify the component and perhaps create VS Components, etc...- The component is NOT added. - Parameters:
- dropComponent- The component to drop.
- uiComps- The target UIComps.
- op- The complex operation.
- Returns:
- true if successful, false if user canceled the operation.
 
- getModuleModelGets the Module model.
- getUICompsGets the UIComps instance for e.g. naming the component uniquely.
- getVirtualSpaceGets the VirtualSpace.
- getPanelEditorGets the panel editor.
- getUndoRedoReturns the undo/redo instance.
- canFinishpublic boolean canFinish()
- performFinishpublic boolean performFinish()Finishes the dialog.- Specified by:
- performFinishin interface- IWizard
- Specified by:
- performFinishin class- Wizard
- Returns:
- true to indicate the finish request was accepted, and false to indicate that the finish request was refused.