|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.wizard.Wizard
org.eclipse.gmt.weaver.wizards.WeaverWizard
public class WeaverWizard
Wizard of the weaver
| Field Summary | |
|---|---|
protected java.util.List |
activeEditors
|
protected WeaverFirstWizardPage |
pageOne
|
protected WeaverThirdWizardPage |
pageThree
|
protected WeaverSecondWizardPage |
pageTwo
|
protected java.util.List |
wModelRefNames
|
| Fields inherited from class org.eclipse.jface.wizard.Wizard |
|---|
DEFAULT_IMAGE |
| Constructor Summary | |
|---|---|
WeaverWizard()
Creates a new weaver wizard |
|
| Method Summary | |
|---|---|
void |
addPages()
Adding the pages to the wizard. |
protected java.util.List |
getActiveEditors()
|
protected java.util.Collection |
getMetamodelExtensionNames()
|
WeaverFirstWizardPage |
getPageOne()
|
WeaverThirdWizardPage |
getPageThree()
|
WeaverSecondWizardPage |
getPageTwo()
|
org.eclipse.emf.ecore.resource.Resource |
getWeavingMetamodel()
returns weaving metamodel when metamodel extensions are selected |
protected java.lang.String[] |
getWeavingPanelExtensionNames()
|
java.util.List |
getWModelNames()
|
protected java.util.List |
getWovenPanelExtensionNames()
|
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
We will accept the selection in the workbench to see if we can initialize from it. |
void |
initializeWeavingResource(java.util.Collection extensionsSelected,
java.util.Collection localExtensionsSelected,
org.eclipse.core.runtime.IProgressMonitor monitor,
boolean isEcore,
java.lang.String ecoreMetamodel)
Initializes wizard pages : - WMODEL combo with the WMODEL name found in metamodel extensions selected - WMODELREF combo with the WMODELREF name found in metamodel extensions selected - Model name with name of association in metamodel extensions selected |
void |
initializeWModelRef(java.lang.String wModel)
Initializes wizard pages : - WMODEL combo with the WMODEL name found in metamodel extensions selected - WMODELREF combo with the WMODELREF name found in metamodel extensions selected - Model name with name of association in metamodel extensions selected |
boolean |
isOverwriteFile()
|
boolean |
performFinish()
This method is called when 'Finish' button is pressed in the wizard. |
void |
setOverwriteFile(boolean overwriteFile)
|
void |
setWeavingMetamodel(org.eclipse.emf.ecore.resource.Resource weavingMetamodel)
|
void |
setWModelNames(java.util.List modelNames)
|
boolean |
validateModel(java.lang.String modelFile,
java.lang.String metamodelFile)
Validates if model is in conformity with metamodel |
| 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 |
| Methods inherited from interface org.eclipse.jface.wizard.IWizard |
|---|
canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer |
| Field Detail |
|---|
protected WeaverFirstWizardPage pageOne
protected WeaverSecondWizardPage pageTwo
protected WeaverThirdWizardPage pageThree
protected java.util.List activeEditors
protected java.util.List wModelRefNames
| Constructor Detail |
|---|
public WeaverWizard()
| Method Detail |
|---|
public void addPages()
addPages in interface org.eclipse.jface.wizard.IWizardaddPages in class org.eclipse.jface.wizard.Wizardpublic boolean performFinish()
performFinish in interface org.eclipse.jface.wizard.IWizardperformFinish in class org.eclipse.jface.wizard.Wizard
public void init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
init in interface org.eclipse.ui.IWorkbenchWizardIWorkbenchWizard.init(IWorkbench, IStructuredSelection)
public void initializeWeavingResource(java.util.Collection extensionsSelected,
java.util.Collection localExtensionsSelected,
org.eclipse.core.runtime.IProgressMonitor monitor,
boolean isEcore,
java.lang.String ecoreMetamodel)
throws WeaverException
extensionsSelected - monitor -
WeaverException
public void initializeWModelRef(java.lang.String wModel)
throws WeaverException
extensionsSelected - monitor -
WeaverException
public boolean validateModel(java.lang.String modelFile,
java.lang.String metamodelFile)
throws WeaverException
modelFile - metamodelFile -
WeaverExceptionpublic WeaverFirstWizardPage getPageOne()
public WeaverThirdWizardPage getPageThree()
public WeaverSecondWizardPage getPageTwo()
protected java.util.List getActiveEditors()
protected java.util.Collection getMetamodelExtensionNames()
protected java.util.List getWovenPanelExtensionNames()
protected java.lang.String[] getWeavingPanelExtensionNames()
public java.util.List getWModelNames()
public void setWModelNames(java.util.List modelNames)
modelNames - The wModelNames to set.public boolean isOverwriteFile()
public void setOverwriteFile(boolean overwriteFile)
overwriteFile - The overwriteFile to set.public org.eclipse.emf.ecore.resource.Resource getWeavingMetamodel()
public void setWeavingMetamodel(org.eclipse.emf.ecore.resource.Resource weavingMetamodel)
weavingMetamodel - The weavingMetamodel to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||