Class DMRCreationWizard
- java.lang.Object
-
- org.eclipse.jface.wizard.Wizard
-
- org.eclipse.emf.ecp.view.template.internal.tooling.util.DMRCreationWizard
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
,org.eclipse.jface.wizard.IWizard
,org.eclipse.ui.INewWizard
,org.eclipse.ui.IWorkbenchWizard
public class DMRCreationWizard extends org.eclipse.jface.wizard.Wizard implements org.eclipse.ui.INewWizard
Wizard for creating aVFeaturePathDomainModelReference
for a DomainModelReferenceSelector.- Author:
- Eugen Neufeld
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
initialObjectNames
Caches the names of the types that can be created as the root object.protected org.eclipse.jface.viewers.IStructuredSelection
selection
Remember the selection during initialization for populating the default container.protected VViewFactory
viewFactory
This caches an instance of the model factory.protected VViewPackage
viewPackage
This caches an instance of the model package.protected org.eclipse.ui.IWorkbench
workbench
Remember the workbench during initialization.
-
Constructor Summary
Constructors Constructor Description DMRCreationWizard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPages()
The framework calls this to create the contents of the wizard.boolean
canFinish()
org.eclipse.jface.wizard.IWizardPage
getNextPage(org.eclipse.jface.wizard.IWizardPage page)
org.eclipse.jface.wizard.IWizardPage
getPreviousPage(org.eclipse.jface.wizard.IWizardPage page)
org.eclipse.core.resources.IFile
getSelectedEcore()
org.eclipse.emf.ecore.EStructuralFeature
getSelectedEStructuralFeature()
org.eclipse.jface.wizard.IWizardPage
getStartingPage()
void
init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
This just records the information.boolean
performFinish()
void
setSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
-
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getShell, 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, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
-
-
-
-
Field Detail
-
viewPackage
protected VViewPackage viewPackage
This caches an instance of the model package.
-
viewFactory
protected VViewFactory viewFactory
This caches an instance of the model factory.
-
selection
protected org.eclipse.jface.viewers.IStructuredSelection selection
Remember the selection during initialization for populating the default container.
-
workbench
protected org.eclipse.ui.IWorkbench workbench
Remember the workbench during initialization.
-
initialObjectNames
protected java.util.List<java.lang.String> initialObjectNames
Caches the names of the types that can be created as the root object.
-
-
Method Detail
-
setSelection
public void setSelection(org.eclipse.jface.viewers.IStructuredSelection selection)
- Parameters:
selection
- the selection to set
-
init
public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
This just records the information.- Specified by:
init
in interfaceorg.eclipse.ui.IWorkbenchWizard
-
addPages
public void addPages()
The framework calls this to create the contents of the wizard.- Specified by:
addPages
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
addPages
in classorg.eclipse.jface.wizard.Wizard
-
getStartingPage
public org.eclipse.jface.wizard.IWizardPage getStartingPage()
- Specified by:
getStartingPage
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
getStartingPage
in classorg.eclipse.jface.wizard.Wizard
- See Also:
Wizard.getStartingPage()
-
getNextPage
public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
- Specified by:
getNextPage
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
getNextPage
in classorg.eclipse.jface.wizard.Wizard
- See Also:
Wizard.getNextPage(org.eclipse.jface.wizard.IWizardPage)
-
getPreviousPage
public org.eclipse.jface.wizard.IWizardPage getPreviousPage(org.eclipse.jface.wizard.IWizardPage page)
- Specified by:
getPreviousPage
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
getPreviousPage
in classorg.eclipse.jface.wizard.Wizard
- See Also:
Wizard.getPreviousPage(org.eclipse.jface.wizard.IWizardPage)
-
canFinish
public boolean canFinish()
- Specified by:
canFinish
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
canFinish
in classorg.eclipse.jface.wizard.Wizard
- See Also:
Wizard.canFinish()
-
performFinish
public boolean performFinish()
- Specified by:
performFinish
in interfaceorg.eclipse.jface.wizard.IWizard
- Specified by:
performFinish
in classorg.eclipse.jface.wizard.Wizard
-
getSelectedEcore
public org.eclipse.core.resources.IFile getSelectedEcore()
-
getSelectedEStructuralFeature
public org.eclipse.emf.ecore.EStructuralFeature getSelectedEStructuralFeature()
-
-