public abstract class AbstractNewModelFileWizard<T extends IMetaModelDescriptor>
extends org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
| Modifier and Type | Field and Description |
|---|---|
protected NewModelFileCreationPage<T> |
mainPage |
protected java.lang.String |
metaModelName |
| Constructor and Description |
|---|
AbstractNewModelFileWizard()
Creates a wizard for creating a new model file in the workspace.
|
AbstractNewModelFileWizard(java.lang.String metaModelName)
Creates a wizard for creating a new model file in the workspace.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPages() |
protected abstract org.eclipse.core.runtime.jobs.Job |
createCreateNewModelFileJob(java.lang.String jobName,
org.eclipse.core.resources.IFile newFile)
Creates a new instance of CreateNewModelFileJob.
|
protected abstract NewModelFileCreationPage<T> |
createMainPage()
Creates the
main page for the creation of the new model file. |
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection) |
protected void |
openNewModelInEditor(org.eclipse.core.resources.IFile newFile)
Opens newly created model in an editor.
|
boolean |
performFinish() |
getSelection, getWorkbench, initializeDefaultPageImageDescriptor, selectAndReveal, selectAndRevealaddPage, 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, setWindowTitleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainerprotected NewModelFileCreationPage<T extends IMetaModelDescriptor> mainPage
protected java.lang.String metaModelName
public AbstractNewModelFileWizard()
public AbstractNewModelFileWizard(java.lang.String metaModelName)
metaModelName - the name of the metamodel the new model file should be based onpublic void init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
init in interface org.eclipse.ui.IWorkbenchWizardinit in class org.eclipse.ui.wizards.newresource.BasicNewResourceWizardpublic void addPages()
addPages in interface org.eclipse.jface.wizard.IWizardaddPages in class org.eclipse.jface.wizard.Wizardprotected abstract NewModelFileCreationPage<T> createMainPage()
main page for the creation of the new model file. This method must
be overridden by clients to create a specific main page as appropriate.public boolean performFinish()
performFinish in interface org.eclipse.jface.wizard.IWizardperformFinish in class org.eclipse.jface.wizard.Wizardprotected abstract org.eclipse.core.runtime.jobs.Job createCreateNewModelFileJob(java.lang.String jobName,
org.eclipse.core.resources.IFile newFile)
jobName - the pre-calculated name of the jobnewFile - the new model file to be createdprotected void openNewModelInEditor(org.eclipse.core.resources.IFile newFile)
newFile - the new model file to be opened