de.uka.ipd.sdq.units.presentation
Class UnitsModelWizard

java.lang.Object
  extended by Wizard
      extended by de.uka.ipd.sdq.units.presentation.UnitsModelWizard

public class UnitsModelWizard
extends Wizard

This is a simple wizard for creating a new model file.


Nested Class Summary
 class UnitsModelWizard.UnitsModelWizardInitialObjectCreationPage
          This is the page where the type of object to create is selected.
 class UnitsModelWizard.UnitsModelWizardNewFileCreationPage
          This is the one page of the wizard.
 
Field Summary
static String copyright
           
static List<String> FILE_EXTENSIONS
          The supported extensions for created files.
static String FORMATTED_FILE_EXTENSIONS
          A formatted list of supported file extensions, suitable for display.
protected  UnitsModelWizard.UnitsModelWizardInitialObjectCreationPage initialObjectCreationPage
          This is the initial object creation page.
protected  List<String> initialObjectNames
          Caches the names of the types that can be created as the root object.
protected  UnitsModelWizard.UnitsModelWizardNewFileCreationPage newFileCreationPage
          This is the file creation page.
protected  IStructuredSelection selection
          Remember the selection during initialization for populating the default container.
protected  UnitsFactory unitsFactory
          This caches an instance of the model factory.
protected  UnitsPackage unitsPackage
          This caches an instance of the model package.
protected  IWorkbench workbench
          Remember the workbench during initialization.
 
Constructor Summary
UnitsModelWizard()
           
 
Method Summary
 void addPages()
          The framework calls this to create the contents of the wizard.
protected  EObject createInitialModel()
          Create a new model.
protected  Collection<String> getInitialObjectNames()
          Returns the names of the types that can be created as the root object.
 IFile getModelFile()
          Get the file from the page.
 void init(IWorkbench workbench, IStructuredSelection selection)
          This just records the information.
 boolean performFinish()
          Do the work after everything is specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values

FILE_EXTENSIONS

public static final List<String> FILE_EXTENSIONS
The supported extensions for created files.


FORMATTED_FILE_EXTENSIONS

public static final String FORMATTED_FILE_EXTENSIONS
A formatted list of supported file extensions, suitable for display.


unitsPackage

protected UnitsPackage unitsPackage
This caches an instance of the model package.


unitsFactory

protected UnitsFactory unitsFactory
This caches an instance of the model factory.


newFileCreationPage

protected UnitsModelWizard.UnitsModelWizardNewFileCreationPage newFileCreationPage
This is the file creation page.


initialObjectCreationPage

protected UnitsModelWizard.UnitsModelWizardInitialObjectCreationPage initialObjectCreationPage
This is the initial object creation page.


selection

protected IStructuredSelection selection
Remember the selection during initialization for populating the default container.


workbench

protected IWorkbench workbench
Remember the workbench during initialization.


initialObjectNames

protected List<String> initialObjectNames
Caches the names of the types that can be created as the root object.

Constructor Detail

UnitsModelWizard

public UnitsModelWizard()
Method Detail

init

public void init(IWorkbench workbench,
                 IStructuredSelection selection)
This just records the information.


getInitialObjectNames

protected Collection<String> getInitialObjectNames()
Returns the names of the types that can be created as the root object.


createInitialModel

protected EObject createInitialModel()
Create a new model.


performFinish

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


addPages

public void addPages()
The framework calls this to create the contents of the wizard.


getModelFile

public IFile getModelFile()
Get the file from the page.