de.uka.ipd.sdq.completions.presentation
Class CompletionsModelWizard

java.lang.Object
  extended by Wizard
      extended by de.uka.ipd.sdq.completions.presentation.CompletionsModelWizard

public class CompletionsModelWizard
extends Wizard

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


Nested Class Summary
 class CompletionsModelWizard.CompletionsModelWizardInitialObjectCreationPage
          This is the page where the type of object to create is selected.
 class CompletionsModelWizard.CompletionsModelWizardNewFileCreationPage
          This is the one page of the wizard.
 
Field Summary
protected  CompletionsFactory completionsFactory
          This caches an instance of the model factory.
protected  CompletionsPackage completionsPackage
          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  CompletionsModelWizard.CompletionsModelWizardInitialObjectCreationPage 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  CompletionsModelWizard.CompletionsModelWizardNewFileCreationPage 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
CompletionsModelWizard()
           
 
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.


completionsPackage

protected CompletionsPackage completionsPackage
This caches an instance of the model package.


completionsFactory

protected CompletionsFactory completionsFactory
This caches an instance of the model factory.


newFileCreationPage

protected CompletionsModelWizard.CompletionsModelWizardNewFileCreationPage newFileCreationPage
This is the file creation page.


initialObjectCreationPage

protected CompletionsModelWizard.CompletionsModelWizardInitialObjectCreationPage 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

CompletionsModelWizard

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