Class NewWizard

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected FolderPropCnr initSelectedParentFolder
      The selected parent folder, null for not found.
      protected org.eclipse.jface.viewers.StructuredViewer lastViewer
      The last viewer.
      protected ModuleModel model
      The module model.
      • Fields inherited from class org.eclipse.jface.wizard.Wizard

        DEFAULT_IMAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      NewWizard​(java.lang.String wizardTitle, java.lang.String image)
      Creates the common wizard.
      NewWizard​(java.lang.String wizardTitle, org.eclipse.jface.resource.ImageDescriptor imageDescriptor)
      Creates the common wizard.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPage​(org.eclipse.jface.wizard.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​(java.lang.String label, org.eclipse.core.resources.IFile newFileHandle, PropCnr container, IFileCreated fileCreated, boolean doOpenEditor)
      Creates a new file.
      java.lang.String getInitSelectedFolderPath()
      Gets the path of parent folder that was selected at initialization of dialog in the Explorer.
      void init​(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
      Initializes this creation wizard using the passed workbench and object selection.
      boolean performFinish()
      Finishes 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 Detail

      • model

        protected final ModuleModel model
        The module model.
      • lastViewer

        protected final org.eclipse.jface.viewers.StructuredViewer lastViewer
        The last viewer.
      • initSelectedParentFolder

        protected FolderPropCnr initSelectedParentFolder
        The selected parent folder, null for not found.
    • Constructor Detail

      • NewWizard

        public NewWizard​(java.lang.String wizardTitle,
                         java.lang.String image)
        Creates the common wizard.
      • NewWizard

        public NewWizard​(java.lang.String wizardTitle,
                         org.eclipse.jface.resource.ImageDescriptor imageDescriptor)
        Creates the common wizard.
    • Method Detail

      • init

        public void init​(org.eclipse.ui.IWorkbench workbench,
                         org.eclipse.jface.viewers.IStructuredSelection selection)
        Initializes this creation wizard using the passed workbench and object selection.
        Specified by:
        init in interface org.eclipse.ui.IWorkbenchWizard
      • getInitSelectedFolderPath

        public java.lang.String getInitSelectedFolderPath()
        Gets the path of parent folder that was selected at initialization of dialog in the Explorer.
        Returns:
        The folder path, or null for none.
      • performFinish

        public boolean performFinish()
        Finishes the dialog.
        Specified by:
        performFinish in interface org.eclipse.jface.wizard.IWizard
        Specified by:
        performFinish in class org.eclipse.jface.wizard.Wizard
        Returns:
        true to indicate the finish request was accepted, and false to indicate that the finish request was refused.
      • addPage

        public void addPage​(org.eclipse.jface.wizard.IWizardPage page)
        Overrides:
        addPage in class org.eclipse.jface.wizard.Wizard
      • createNewFile

        protected DesignerProp createNewFile​(PropCnr container)
        Creates 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.
      • createNewFile

        protected DesignerProp createNewFile​(PropCnr container,
                                             boolean doOpenEditor)
        Creates 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.
      • createNewFile

        protected 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.
      • createNewFile

        protected DesignerProp createNewFile​(java.lang.String label,
                                             org.eclipse.core.resources.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.