Class EMFFormsTemplateWizard

  • All Implemented Interfaces:
    org.eclipse.jface.window.IShellProvider, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

    public class EMFFormsTemplateWizard
    extends org.eclipse.jface.wizard.Wizard
    implements org.eclipse.ui.INewWizard
    This is a sample new wizard. Its role is to create a new file resource in the provided container. If the container resource (a folder or a project) is selected in the workspace when the wizard is opened, it will accept it as the target container. The wizard creates one file with the extension "template". If a sample multi-page editor (also available as a template) is registered for the same extension, it will be able to open it.
    • Field Summary

      • Fields inherited from class org.eclipse.jface.wizard.Wizard

        DEFAULT_IMAGE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPages()
      Adding the paged to the wizard.
      boolean canFinish()  
      org.eclipse.jface.wizard.IWizardPage getNextPage​(org.eclipse.jface.wizard.IWizardPage page)  
      void init​(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)  
      boolean performFinish()  
      • Methods inherited from class org.eclipse.jface.wizard.Wizard

        addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, 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

        createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
    • Constructor Detail

      • EMFFormsTemplateWizard

        public EMFFormsTemplateWizard()
        Constructor for EMFFormsTemplateWizard. This wizard allows you to create a new template model.
      • EMFFormsTemplateWizard

        public EMFFormsTemplateWizard​(VElement vElement)
        Constructs a wizard which will help you to create styles for the VElement. The style may be added to a new template model or to an existing one.
        Parameters:
        vElement - the element
    • Method Detail

      • addPages

        public void addPages()
        Adding the paged to the wizard. If a VElement was passed to the constructor creating a style is enabled.
        Specified by:
        addPages in interface org.eclipse.jface.wizard.IWizard
        Overrides:
        addPages in class org.eclipse.jface.wizard.Wizard
      • getNextPage

        public org.eclipse.jface.wizard.IWizardPage getNextPage​(org.eclipse.jface.wizard.IWizardPage page)
        Specified by:
        getNextPage in interface org.eclipse.jface.wizard.IWizard
        Overrides:
        getNextPage in class org.eclipse.jface.wizard.Wizard
      • canFinish

        public boolean canFinish()
        Specified by:
        canFinish in interface org.eclipse.jface.wizard.IWizard
        Overrides:
        canFinish in class org.eclipse.jface.wizard.Wizard
      • performFinish

        public boolean performFinish()
        Specified by:
        performFinish in interface org.eclipse.jface.wizard.IWizard
        Specified by:
        performFinish in class org.eclipse.jface.wizard.Wizard
      • init

        public void init​(org.eclipse.ui.IWorkbench workbench,
                         org.eclipse.jface.viewers.IStructuredSelection selection)
        Specified by:
        init in interface org.eclipse.ui.IWorkbenchWizard