org.eclipse.emf.codegen.ecore.genmodel.presentation
Class EMFProjectWizard

java.lang.Object
  extended byorg.eclipse.jface.wizard.Wizard
      extended byorg.eclipse.emf.codegen.ecore.genmodel.presentation.EMFProjectWizard
All Implemented Interfaces:
INewWizard, IWizard, IWorkbenchWizard
Direct Known Subclasses:
GenModelModelWizard

public class EMFProjectWizard
extends Wizard
implements INewWizard

Creates a new EMF Project.


Nested Class Summary
 class EMFProjectWizard.DetailsPage
           
 class EMFProjectWizard.EcoreModelPage
          A page that allows a Ecore model to be imported.
 class EMFProjectWizard.PackagePage
          This pages allows a Rose model to be imported.
 class EMFProjectWizard.RoseModelPage
          A page that allows a Rose model to be imported.
 class EMFProjectWizard.XMLSchemaModelPage
          A page that allows a XMLSchema model to be imported.
 
Field Summary
protected  EMFProjectWizard.DetailsPage detailsPage
          The page were the type of model is chosen.
protected static int ECORE
           
protected  EMFProjectWizard.EcoreModelPage ecoreModelPage
          The page where the Ecore models are specified.
protected  Map ePackageToInformationMap
          The map from EPackage to extra information.
protected  IFile genModelFile
          The GenModel being reloaded.
protected static int JAVA
           
protected  JavaEcoreBuilder javaEcoreBuilder
          The builder used for Java conversion.
protected  IFile modelFile
          The GenModel file to be opened in an editor.
protected static int NEW_FILE
           
protected static int NEW_PROJECT
           
protected  WizardNewProjectCreationPage newProjectCreationPage
          The standard project creation page.
protected static int NOTHING
           
protected  GenModel originalGenModel
          The original GenModel being reloaded.
protected  EMFProjectWizard.PackagePage packagePage
          The page where the packages are specified.
protected static int RELOAD
           
protected static int ROSE
           
protected  EMFProjectWizard.RoseModelPage roseModelPage
          The page where the Rose model is specified.
protected  IStructuredSelection selection
          The selection in effect during initialization, which is used for populating the default container.
protected  int whichModel
           
protected  int whichStyle
           
protected  IWorkbench workbench
          The workbench in effect during initialization.
protected static IWorkspaceRoot workspaceRoot
           
protected  EMFProjectWizard.XMLSchemaModelPage xmlSchemaModelPage
          The page where the Rose model is specified.
protected static int XSD
           
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
EMFProjectWizard()
          Creates an instance to be used for creating a new project.
EMFProjectWizard(IFile genModelFile)
          Creates an instance to be used for updating and existing GenModel.
 
Method Summary
 void addPages()
          Called by the framework to create the contents of the wizard.
 IFile getGenModelFile()
           
 String getGenModelFileName()
           
 String getGenModelName()
           
 IWizardPage getNextPage(IWizardPage page)
           
 String getProjectName()
           
 void init(IWorkbench workbench, IStructuredSelection selection)
          Initializes by recording the arguments.
protected static boolean isInJavaOutput(IResource resource)
           
protected  URI makeAbsolute(URI uri, URI relativeTo)
           
protected  URI makeRelative(URI uri, URI relativeTo)
           
 boolean performFinish()
          Do the work after everything is specified.
 void traverseGenPackages(List genPackages)
           
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, 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, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
 

Field Detail

workspaceRoot

protected static IWorkspaceRoot workspaceRoot

newProjectCreationPage

protected WizardNewProjectCreationPage newProjectCreationPage
The standard project creation page.


JAVA

protected static final int JAVA
See Also:
Constant Field Values

XSD

protected static final int XSD
See Also:
Constant Field Values

ECORE

protected static final int ECORE
See Also:
Constant Field Values

ROSE

protected static final int ROSE
See Also:
Constant Field Values

NOTHING

protected static final int NOTHING
See Also:
Constant Field Values

whichModel

protected int whichModel

NEW_PROJECT

protected static final int NEW_PROJECT
See Also:
Constant Field Values

NEW_FILE

protected static final int NEW_FILE
See Also:
Constant Field Values

RELOAD

protected static final int RELOAD
See Also:
Constant Field Values

whichStyle

protected int whichStyle

roseModelPage

protected EMFProjectWizard.RoseModelPage roseModelPage
The page where the Rose model is specified.


xmlSchemaModelPage

protected EMFProjectWizard.XMLSchemaModelPage xmlSchemaModelPage
The page where the Rose model is specified.


ecoreModelPage

protected EMFProjectWizard.EcoreModelPage ecoreModelPage
The page where the Ecore models are specified.


javaEcoreBuilder

protected JavaEcoreBuilder javaEcoreBuilder
The builder used for Java conversion.


packagePage

protected EMFProjectWizard.PackagePage packagePage
The page where the packages are specified.


detailsPage

protected EMFProjectWizard.DetailsPage detailsPage
The page were the type of model is chosen.


selection

protected IStructuredSelection selection
The selection in effect during initialization, which is used for populating the default container.


workbench

protected IWorkbench workbench
The workbench in effect during initialization.


genModelFile

protected IFile genModelFile
The GenModel being reloaded.


originalGenModel

protected GenModel originalGenModel
The original GenModel being reloaded.


ePackageToInformationMap

protected Map ePackageToInformationMap
The map from EPackage to extra information.


modelFile

protected IFile modelFile
The GenModel file to be opened in an editor.

Constructor Detail

EMFProjectWizard

public EMFProjectWizard()
Creates an instance to be used for creating a new project.


EMFProjectWizard

public EMFProjectWizard(IFile genModelFile)
Creates an instance to be used for updating and existing GenModel.

Method Detail

getGenModelFile

public IFile getGenModelFile()

getGenModelName

public String getGenModelName()

getGenModelFileName

public String getGenModelFileName()

getProjectName

public String getProjectName()

init

public void init(IWorkbench workbench,
                 IStructuredSelection selection)
Initializes by recording the arguments.

Specified by:
init in interface IWorkbenchWizard

addPages

public void addPages()
Called by the framework to create the contents of the wizard.

Specified by:
addPages in interface IWizard

performFinish

public boolean performFinish()
Do the work after everything is specified.

Specified by:
performFinish in interface IWizard

makeRelative

protected URI makeRelative(URI uri,
                           URI relativeTo)

makeAbsolute

protected URI makeAbsolute(URI uri,
                           URI relativeTo)

traverseGenPackages

public void traverseGenPackages(List genPackages)

getNextPage

public IWizardPage getNextPage(IWizardPage page)
Specified by:
getNextPage in interface IWizard

isInJavaOutput

protected static boolean isInJavaOutput(IResource resource)

Copyright 2001-2004 IBM Corporation and others.
All Rights Reserved.