Package com.iizigo.project
Class NewWizard
java.lang.Object
org.eclipse.jface.wizard.Wizard
com.iizigo.project.NewWizard
- All Implemented Interfaces:
- IShellProvider,- IWizard,- INewWizard,- IWorkbenchWizard
- Direct Known Subclasses:
- NewContextMenuWizard,- NewDBTransactionWizard,- NewFolderWizard,- NewFontFacesWizard,- NewImageDefinitionWizard,- NewPanelWizard,- NewScreenWizard,- NewSelectorWizard,- NewStyleWizard,- NewSVGDefinitionWizard,- NewTextTableWizard,- NewVirtualSpaceWizard,- NewWebServiceWizard
Wizard to create a new IIZI files, e.g. a panel, a text table, etc. It provides the base wizard and the first page.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- protected FolderPropCnrThe selected parent folder, null for not found.- protected final StructuredViewerThe last viewer.- protected final ModuleModelThe module model.- Fields inherited from class org.eclipse.jface.wizard.Wizard- DEFAULT_IMAGE
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- void- addPage- (IWizardPage page) - protected DesignerProp- createNewFile- (PropCnr container) Creates the new file in the wizard and opens the editor.- protected DesignerProp- createNewFile- (PropCnr container, boolean doOpenEditor) Creates the new file in the wizard and opens the editor.- protected DesignerProp- createNewFile- (PropCnr container, IFileCreated fileCreated, boolean doOpenEditor) Creates the new file in the wizard.- protected DesignerProp- createNewFile- (String label, IFile newFileHandle, PropCnr container, IFileCreated fileCreated, boolean doOpenEditor) Creates a new file.Gets the path of parent folder that was selected at initialization of dialog in the Explorer.- void- init- (IWorkbench workbench, IStructuredSelection selection) Initializes this creation wizard using the passed workbench and object selection.- booleanFinishes the dialog.- Methods inherited from class org.eclipse.jface.wizard.Wizard- addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle- 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.IWizard- addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
- Field Details- modelThe module model.
- lastViewerThe last viewer.
- initSelectedParentFolderThe selected parent folder, null for not found.
 
- Constructor Details- NewWizardCreates the common wizard.
- NewWizardCreates the common wizard.
 
- Method Details- initInitializes this creation wizard using the passed workbench and object selection.- Specified by:
- initin interface- IWorkbenchWizard
 
- getInitSelectedFolderPathGets the path of parent folder that was selected at initialization of dialog in the Explorer.- Returns:
- The folder path, or null for none.
 
- 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.
 
- addPage
- createNewFileCreates the new file in the wizard and opens the editor.- Parameters:
- container- The contents of the new file.
- Returns:
- The DesignerProp for the new file, or null for error.
 
- createNewFileCreates the new file in the wizard and opens the editor.- Parameters:
- container- The contents of the new file.
- doOpenEditor- Flag to open the editor or not.
- Returns:
- The DesignerProp for the new file, or null for error.
 
- createNewFileprotected DesignerProp createNewFile- (PropCnr container, IFileCreated fileCreated, boolean doOpenEditor) Creates the new file in the wizard.- Parameters:
- container- The contents of the new file.
- fileCreated- Interface to call when file has been created (from that thread), or null for none.
- doOpenEditor- Flag to open the editor or not.
- Returns:
- The DesignerProp for the new file, or null for error.
 
- createNewFileprotected DesignerProp createNewFile- (String label, IFile newFileHandle, PropCnr container, IFileCreated fileCreated, boolean doOpenEditor) Creates a new file.- Parameters:
- label- The label for the undo operation.
- newFileHandle- The file handle for the new file to create.
- container- The initial file contents.
- fileCreated- Interface to call when file has been created (from that thread), or null for none.
- doOpenEditor- Flag to open the editor or not.
- Returns:
- The DesignerProp for the new file, or null for error.