org.eclipse.weaver.wizards
Class WeaverWizard

java.lang.Object
  extended byWizard
      extended byorg.eclipse.weaver.wizards.WeaverWizard

public class WeaverWizard
extends Wizard

Wizard of the weaver

Since:
1.0
Author:
- Marcos Didonet Del Fabro (LINA Labs, INRIA team)
- Guillaume Gueltas (Sodifrance)
See Also:
Serialized Form

Field Summary
protected  java.util.List activeEditors
           
protected  WeaverFirstWizardPage pageOne
           
protected  WeaverThirdWizardPage pageThree
           
protected  WeaverSecondWizardPage pageTwo
           
 
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()
           
 Resource getWeavingMetamodel()
          returns weaving metamodel when metamodel extensions are selected
protected  java.lang.String[] getWeavingPanelExtensionNames()
           
 java.util.List getWModelNames()
           
protected  java.lang.String[] getWovenPanelExtensionNames()
           
 void init(IWorkbench workbench, 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, IProgressMonitor monitor)
          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(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageOne

protected WeaverFirstWizardPage pageOne

pageTwo

protected WeaverSecondWizardPage pageTwo

pageThree

protected WeaverThirdWizardPage pageThree

activeEditors

protected java.util.List activeEditors
Constructor Detail

WeaverWizard

public WeaverWizard()
Creates a new weaver wizard

Method Detail

addPages

public void addPages()
Adding the pages to the wizard.


performFinish

public boolean performFinish()
This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.

Returns:

init

public void init(IWorkbench workbench,
                 IStructuredSelection selection)
We will accept the selection in the workbench to see if we can initialize from it.

See Also:
IWorkbenchWizard#init(IWorkbench, IStructuredSelection)

initializeWeavingResource

public void initializeWeavingResource(java.util.Collection extensionsSelected,
                                      java.util.Collection localExtensionsSelected,
                                      IProgressMonitor monitor)
                               throws WeaverException
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

Parameters:
extensionsSelected -
monitor -
Throws:
WeaverException

initializeWModelRef

public void initializeWModelRef(java.lang.String wModel)
                         throws WeaverException
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

Throws:
WeaverException

validateModel

public boolean validateModel(java.lang.String modelFile,
                             java.lang.String metamodelFile)
                      throws WeaverException
Validates if model is in conformity with metamodel

Parameters:
modelFile -
metamodelFile -
Returns:
Throws:
WeaverException

getPageOne

public WeaverFirstWizardPage getPageOne()
Returns:
Returns the pageOne.

getPageThree

public WeaverThirdWizardPage getPageThree()
Returns:
Returns the pageThree.

getPageTwo

public WeaverSecondWizardPage getPageTwo()
Returns:
Returns the pageTwo.

getActiveEditors

protected java.util.List getActiveEditors()
Returns:
Returns the activeEditor.

getMetamodelExtensionNames

protected java.util.Collection getMetamodelExtensionNames()
Returns:
Returns the metamodelExtensionNames.

getWovenPanelExtensionNames

protected java.lang.String[] getWovenPanelExtensionNames()
Returns:
Returns the wovenPanelExtensionNames.

getWeavingPanelExtensionNames

protected java.lang.String[] getWeavingPanelExtensionNames()
Returns:
Returns the weavingPanelExtensionNames.

getWModelNames

public java.util.List getWModelNames()
Returns:
Returns the wModelNames.

setWModelNames

public void setWModelNames(java.util.List modelNames)
Parameters:
modelNames - The wModelNames to set.

isOverwriteFile

public boolean isOverwriteFile()
Returns:
Returns the overwriteFile.

setOverwriteFile

public void setOverwriteFile(boolean overwriteFile)
Parameters:
overwriteFile - The overwriteFile to set.

getWeavingMetamodel

public Resource getWeavingMetamodel()
returns weaving metamodel when metamodel extensions are selected

Returns:
Returns the weavingMetamodel.

setWeavingMetamodel

public void setWeavingMetamodel(Resource weavingMetamodel)
Parameters:
weavingMetamodel - The weavingMetamodel to set.