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

org.eclipse.emf.codegen.ecore.genmodel.presentation.EMFProjectWizard
All Implemented Interfaces:
org.eclipse.ui.INewWizard, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.IWorkbenchWizard
Direct Known Subclasses:
GenModelModelWizard

public class EMFProjectWizard
implements org.eclipse.ui.INewWizard

Creates a new EMF Project.


Inner 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  java.util.Map ePackageToInformationMap
          The map from EPackage to extra information.
protected  org.eclipse.core.resources.IFile genModelFile
          The GenModel being reloaded.
protected static int JAVA
           
protected  JavaEcoreBuilder javaEcoreBuilder
          The builder used for Java conversion.
protected  org.eclipse.core.resources.IFile modelFile
          The GenModel file to be opened in an editor.
protected static int NEW_FILE
           
protected static int NEW_PROJECT
           
protected  org.eclipse.ui.dialogs.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  org.eclipse.jface.viewers.IStructuredSelection selection
          The selection in effect during initialization, which is used for populating the default container.
protected  int whichModel
           
protected  int whichStyle
           
protected  org.eclipse.ui.IWorkbench workbench
          The workbench in effect during initialization.
protected static org.eclipse.core.resources.IWorkspaceRoot workspaceRoot
           
protected  EMFProjectWizard.XMLSchemaModelPage xmlSchemaModelPage
          The page where the Rose model is specified.
protected static int XSD
           
 
Constructor Summary
EMFProjectWizard()
          Creates an instance to be used for creating a new project.
EMFProjectWizard(org.eclipse.core.resources.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.
protected static org.eclipse.ui.dialogs.FileSystemElement createFileSystemElement(org.eclipse.ui.dialogs.FileSystemElement parent, org.eclipse.core.resources.IResource resource, java.util.Collection matchingResources, java.lang.String extension)
           
 org.eclipse.core.resources.IFile getGenModelFile()
           
 java.lang.String getGenModelFileName()
           
 java.lang.String getGenModelName()
           
 org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
           
 java.lang.String getProjectName()
           
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          Initializes by recording the arguments.
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(java.util.List genPackages)
           
 

Field Detail

workspaceRoot

protected static org.eclipse.core.resources.IWorkspaceRoot workspaceRoot

newProjectCreationPage

protected org.eclipse.ui.dialogs.WizardNewProjectCreationPage newProjectCreationPage
The standard project creation page.

JAVA

protected static final int JAVA

XSD

protected static final int XSD

ECORE

protected static final int ECORE

ROSE

protected static final int ROSE

NOTHING

protected static final int NOTHING

whichModel

protected int whichModel

NEW_PROJECT

protected static final int NEW_PROJECT

NEW_FILE

protected static final int NEW_FILE

RELOAD

protected static final int RELOAD

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 org.eclipse.jface.viewers.IStructuredSelection selection
The selection in effect during initialization, which is used for populating the default container.

workbench

protected org.eclipse.ui.IWorkbench workbench
The workbench in effect during initialization.

genModelFile

protected org.eclipse.core.resources.IFile genModelFile
The GenModel being reloaded.

originalGenModel

protected GenModel originalGenModel
The original GenModel being reloaded.

ePackageToInformationMap

protected java.util.Map ePackageToInformationMap
The map from EPackage to extra information.

modelFile

protected org.eclipse.core.resources.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(org.eclipse.core.resources.IFile genModelFile)
Creates an instance to be used for updating and existing GenModel.
Method Detail

getGenModelFile

public org.eclipse.core.resources.IFile getGenModelFile()

getGenModelName

public java.lang.String getGenModelName()

getGenModelFileName

public java.lang.String getGenModelFileName()

getProjectName

public java.lang.String getProjectName()

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
Initializes by recording the arguments.
Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard

addPages

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

performFinish

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

makeRelative

protected URI makeRelative(URI uri,
                           URI relativeTo)

makeAbsolute

protected URI makeAbsolute(URI uri,
                           URI relativeTo)

traverseGenPackages

public void traverseGenPackages(java.util.List genPackages)

getNextPage

public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)

createFileSystemElement

protected static org.eclipse.ui.dialogs.FileSystemElement createFileSystemElement(org.eclipse.ui.dialogs.FileSystemElement parent,
                                                                                  org.eclipse.core.resources.IResource resource,
                                                                                  java.util.Collection matchingResources,
                                                                                  java.lang.String extension)

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