Class CreateNewInstaceWizard
- java.lang.Object
-
- org.eclipse.jface.wizard.Wizard
-
- org.eclipse.emfforms.internal.editor.ecore.actions.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 anEClass
and save it into a file.- Author:
- Lucas Koehler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CreateNewInstaceWizard.CreateNewInstanceFileCreationPage
The wizard page to select in which file the new instance will be saved.
-
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.
-
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
-
-
-
-
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
-
-
Method Detail
-
performFinish
public boolean performFinish()
- Specified by:
performFinish
in interfaceorg.eclipse.jface.wizard.IWizard
- Specified by:
performFinish
in classorg.eclipse.jface.wizard.Wizard
-
addPages
public void addPages()
- Specified by:
addPages
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
addPages
in classorg.eclipse.jface.wizard.Wizard
-
getModelFile
public org.eclipse.core.resources.IFile getModelFile()
- Returns:
- the file from the file creation page.
-
-