Class SelectModelElementWizard
- java.lang.Object
-
- org.eclipse.jface.wizard.Wizard
-
- org.eclipse.emf.ecp.spi.common.ui.ECPWizard<SelectionComposite<? extends org.eclipse.jface.viewers.ColumnViewer>>
-
- org.eclipse.emf.ecp.spi.common.ui.SelectModelElementWizard
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
,org.eclipse.jface.wizard.IWizard
- Direct Known Subclasses:
CreateDomainModelReferenceWizard
public class SelectModelElementWizard extends ECPWizard<SelectionComposite<? extends org.eclipse.jface.viewers.ColumnViewer>>
This is implementation of New Model Element wizard. This wizard is show through "Add new model element..." command in context menu of Navigator (only on right click on LeafSection). The wizard shows a tree of model packages and their classes. The user can select a Model Element type in this tree and on finish the model element is created, added to Leaf- or CompositeSection and opend for editing.- Author:
- Eugen Neufeld
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SelectModelElementWizard.WizardPageExtension
-
Constructor Summary
Constructors Constructor Description SelectModelElementWizard(java.lang.String windowTitle, java.lang.String pageName, java.lang.String pageTitle, java.lang.String description)
Constructor to select an EClass.SelectModelElementWizard(java.lang.String windowTitle, java.lang.String pageName, java.lang.String pageTitle, java.lang.String description, java.lang.Class<?> classtoSelect)
Constructor to select an class to be specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPages()
void
dispose()
java.lang.String
getDescription()
java.lang.String
getPageName()
java.lang.String
getPageTitle()
boolean
performFinish()
.-
Methods inherited from class org.eclipse.emf.ecp.spi.common.ui.ECPWizard
getCompositeProvider, setCompositeProvider
-
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, canFinish, createPageControls, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
-
-
-
-
Constructor Detail
-
SelectModelElementWizard
public SelectModelElementWizard(java.lang.String windowTitle, java.lang.String pageName, java.lang.String pageTitle, java.lang.String description)
Constructor to select an EClass.- Parameters:
windowTitle
- The window titlepageName
- the name of the pagepageTitle
- the title of the pagedescription
- the description
-
SelectModelElementWizard
public SelectModelElementWizard(java.lang.String windowTitle, java.lang.String pageName, java.lang.String pageTitle, java.lang.String description, java.lang.Class<?> classtoSelect)
Constructor to select an class to be specified.- Parameters:
windowTitle
- The window titlepageName
- the name of the pagepageTitle
- the title of the pagedescription
- the descriptionclasstoSelect
- the class which can be selected
-
-
Method Detail
-
addPages
public void addPages()
- Specified by:
addPages
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
addPages
in classorg.eclipse.jface.wizard.Wizard
-
performFinish
public boolean performFinish()
. () This method creates a model element instance from selected type, adds it to Leaf- or CompositeSection, and opens it.- Specified by:
performFinish
in interfaceorg.eclipse.jface.wizard.IWizard
- Specified by:
performFinish
in classorg.eclipse.jface.wizard.Wizard
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
dispose
in classorg.eclipse.jface.wizard.Wizard
-
getPageName
public java.lang.String getPageName()
- Returns:
- the pageName
- Since:
- 1.5
-
getDescription
public java.lang.String getDescription()
- Returns:
- the description
- Since:
- 1.5
-
getPageTitle
public java.lang.String getPageTitle()
- Returns:
- the pageTitle
- Since:
- 1.5
-
-