Class CreateNewInstaceWizard

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

    public class CreateNewInstaceWizard
    extends org.eclipse.jface.wizard.Wizard
    A wizard to create a new instance of an EClass and save it into a file.
    Author:
    Lucas Koehler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.List<java.lang.String> FILE_EXTENSIONS
      The supported extensions for created files.
      static java.lang.String FORMATTED_FILE_EXTENSIONS
      A formatted list of supported file extensions, suitable for display.
      • Fields inherited from class org.eclipse.jface.wizard.Wizard

        DEFAULT_IMAGE
    • Constructor Summary

      Constructors 
      Constructor Description
      CreateNewInstaceWizard​(org.eclipse.emf.ecore.EClass eClass)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPages()
      org.eclipse.core.resources.IFile getModelFile()  
      boolean performFinish()
      • Methods inherited from class org.eclipse.jface.wizard.Wizard

        addPage, 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
    • Field Detail

      • FILE_EXTENSIONS

        public static final java.util.List<java.lang.String> FILE_EXTENSIONS
        The supported extensions for created files.
      • FORMATTED_FILE_EXTENSIONS

        public static final java.lang.String FORMATTED_FILE_EXTENSIONS
        A formatted list of supported file extensions, suitable for display.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CreateNewInstaceWizard

        public CreateNewInstaceWizard​(org.eclipse.emf.ecore.EClass eClass)
        Default constructor.
        Parameters:
        eClass - The EClass for which a new instance is created and saved in a file
    • Method Detail

      • performFinish

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

        public void addPages()
        Specified by:
        addPages in interface org.eclipse.jface.wizard.IWizard
        Overrides:
        addPages in class org.eclipse.jface.wizard.Wizard
      • getModelFile

        public org.eclipse.core.resources.IFile getModelFile()
        Returns:
        the file from the file creation page.