de.uka.ipd.sdq.featuremodel.presentation
Class featuremodelModelWizard

java.lang.Object
  extended by Wizard
      extended by de.uka.ipd.sdq.featuremodel.presentation.featuremodelModelWizard

public class featuremodelModelWizard
extends Wizard

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


Nested Class Summary
 class featuremodelModelWizard.featuremodelModelWizardInitialObjectCreationPage
          This is the page where the type of object to create is selected.
 class featuremodelModelWizard.featuremodelModelWizardNewFileCreationPage
          This is the one page of the wizard.
 
Field Summary
protected  featuremodelFactory _featuremodelFactory
          This caches an instance of the model factory.
protected  featuremodelPackage _featuremodelPackage
          This caches an instance of the model package.
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  featuremodelModelWizard.featuremodelModelWizardInitialObjectCreationPage 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  featuremodelModelWizard.featuremodelModelWizardNewFileCreationPage newFileCreationPage
          This is the file creation page.
protected  IStructuredSelection selection
          Remember the selection during initialization for populating the default container.
protected  IWorkbench workbench
          Remember the workbench during initialization.
 
Constructor Summary
featuremodelModelWizard()
           
 
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

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.


_featuremodelPackage

protected featuremodelPackage _featuremodelPackage
This caches an instance of the model package.


_featuremodelFactory

protected featuremodelFactory _featuremodelFactory
This caches an instance of the model factory.


newFileCreationPage

protected featuremodelModelWizard.featuremodelModelWizardNewFileCreationPage newFileCreationPage
This is the file creation page.


initialObjectCreationPage

protected featuremodelModelWizard.featuremodelModelWizardInitialObjectCreationPage 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

featuremodelModelWizard

public featuremodelModelWizard()
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.