org.eclipse.emf.importer.ui.contribution.base
Class ModelImporterWizard

java.lang.Object
  extended byorg.eclipse.jface.wizard.Wizard
      extended byorg.eclipse.emf.importer.ui.contribution.base.ModelImporterWizard
All Implemented Interfaces:
IModelImporterWizard, INewWizard, IWizard, IWorkbenchWizard
Direct Known Subclasses:
EcoreImporterWizard, JavaImporterWizard, RoseImporterWizard

public abstract class ModelImporterWizard
extends Wizard
implements IModelImporterWizard

Since:
2.1.0

Nested Class Summary
static class ModelImporterWizard.PageHelper
           
 
Field Summary
protected  String fileName
           
protected  IPath genModelContainerPath
           
protected  IFile modelFile
           
protected  ModelImporter modelImporter
           
protected  IFile originalGenModelFile
           
protected  ModelImporterWizard.PageHelper pageHelper
           
protected  IPath projectLocation
           
protected  IPath projectPath
           
protected  IStructuredSelection selection
           
protected  IWorkbench workbench
           
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
ModelImporterWizard()
           
 
Method Summary
protected abstract  ModelImporter createModelImporter()
           
 void dispose()
           
protected  IFile getFile(IPath path)
           
 List getFileExtensions()
           
 IPath getGenModelContainerPath()
           
 String getGenModelFileName()
           
 IPath getGenModelProjectLocation()
           
 IPath getGenModelProjectPath()
           
 IFile getModelFile()
           
 ModelImporter getModelImporter()
           
 IFile getOriginalGenModelFile()
           
 IStructuredSelection getSelection()
           
 IWorkbench getWorkbench()
           
 void init(IWorkbench workbench, IStructuredSelection selection)
           
protected  void openEditor(IFile file)
           
 boolean performCancel()
           
 boolean performFinish()
           
protected  void selectFile(IFile file)
           
 void setContainer(IWizardContainer wizardContainer)
           
 void setGenModelContainerPath(IPath genModelContainerPath)
           
 void setGenModelFileName(String fileName)
           
 void setGenModelProjectLocation(IPath projectLocation)
           
 void setGenModelProjectPath(IPath projectPath)
           
 void setModelFile(IFile modelFile)
           
 void setOriginalGenModelFile(IFile originalGenModelFile)
           
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, addPages, canFinish, createPageControls, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, 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
addPages, canFinish, createPageControls, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor
 

Field Detail

selection

protected IStructuredSelection selection

workbench

protected IWorkbench workbench

pageHelper

protected ModelImporterWizard.PageHelper pageHelper

modelImporter

protected ModelImporter modelImporter

originalGenModelFile

protected IFile originalGenModelFile

modelFile

protected IFile modelFile

fileName

protected String fileName

genModelContainerPath

protected IPath genModelContainerPath

projectLocation

protected IPath projectLocation

projectPath

protected IPath projectPath
Constructor Detail

ModelImporterWizard

public ModelImporterWizard()
Method Detail

dispose

public void dispose()
Specified by:
dispose in interface IWizard

createModelImporter

protected abstract ModelImporter createModelImporter()

getModelImporter

public ModelImporter getModelImporter()

init

public void init(IWorkbench workbench,
                 IStructuredSelection selection)
Specified by:
init in interface IWorkbenchWizard

getWorkbench

public IWorkbench getWorkbench()

getSelection

public IStructuredSelection getSelection()

getFileExtensions

public List getFileExtensions()
Specified by:
getFileExtensions in interface IModelImporterWizard

setContainer

public void setContainer(IWizardContainer wizardContainer)
Specified by:
setContainer in interface IWizard

setOriginalGenModelFile

public void setOriginalGenModelFile(IFile originalGenModelFile)
Specified by:
setOriginalGenModelFile in interface IModelImporterWizard

getOriginalGenModelFile

public IFile getOriginalGenModelFile()
Specified by:
getOriginalGenModelFile in interface IModelImporterWizard

setModelFile

public void setModelFile(IFile modelFile)
Specified by:
setModelFile in interface IModelImporterWizard

getModelFile

public IFile getModelFile()
Specified by:
getModelFile in interface IModelImporterWizard

setGenModelFileName

public void setGenModelFileName(String fileName)
Specified by:
setGenModelFileName in interface IModelImporterWizard

getGenModelFileName

public String getGenModelFileName()
Specified by:
getGenModelFileName in interface IModelImporterWizard

setGenModelContainerPath

public void setGenModelContainerPath(IPath genModelContainerPath)
Specified by:
setGenModelContainerPath in interface IModelImporterWizard

getGenModelContainerPath

public IPath getGenModelContainerPath()
Specified by:
getGenModelContainerPath in interface IModelImporterWizard

setGenModelProjectLocation

public void setGenModelProjectLocation(IPath projectLocation)
Specified by:
setGenModelProjectLocation in interface IModelImporterWizard

getGenModelProjectLocation

public IPath getGenModelProjectLocation()
Specified by:
getGenModelProjectLocation in interface IModelImporterWizard

setGenModelProjectPath

public void setGenModelProjectPath(IPath projectPath)
Specified by:
setGenModelProjectPath in interface IModelImporterWizard

getGenModelProjectPath

public IPath getGenModelProjectPath()
Specified by:
getGenModelProjectPath in interface IModelImporterWizard

performCancel

public boolean performCancel()
Specified by:
performCancel in interface IWizard

performFinish

public boolean performFinish()
Specified by:
performFinish in interface IWizard

getFile

protected IFile getFile(IPath path)

selectFile

protected void selectFile(IFile file)

openEditor

protected void openEditor(IFile file)
                   throws PartInitException
Throws:
PartInitException

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