LqnCore.presentation
Class LqnCoreModelWizard

java.lang.Object
  extended by Wizard
      extended by LqnCore.presentation.LqnCoreModelWizard

public class LqnCoreModelWizard
extends Wizard

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


Nested Class Summary
 class LqnCoreModelWizard.LqnCoreModelWizardInitialObjectCreationPage
          This is the page where the type of object to create is selected.
 class LqnCoreModelWizard.LqnCoreModelWizardNewFileCreationPage
          This is the one page of the wizard.
 
Field Summary
protected  LqnCoreModelWizard.LqnCoreModelWizardInitialObjectCreationPage initialObjectCreationPage
          This is the initial object creation page.
protected  List<String> initialObjectNames
          Caches the names of the features representing global elements.
protected  LqnCoreFactory lqnCoreFactory
          This caches an instance of the model factory.
protected  LqnCorePackage lqnCorePackage
          This caches an instance of the model package.
protected  LqnCoreModelWizard.LqnCoreModelWizardNewFileCreationPage 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
LqnCoreModelWizard()
           
 
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 features representing global elements.
 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

lqnCorePackage

protected LqnCorePackage lqnCorePackage
This caches an instance of the model package.


lqnCoreFactory

protected LqnCoreFactory lqnCoreFactory
This caches an instance of the model factory.


newFileCreationPage

protected LqnCoreModelWizard.LqnCoreModelWizardNewFileCreationPage newFileCreationPage
This is the file creation page.


initialObjectCreationPage

protected LqnCoreModelWizard.LqnCoreModelWizardInitialObjectCreationPage 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 features representing global elements.

Constructor Detail

LqnCoreModelWizard

public LqnCoreModelWizard()
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 features representing global elements.


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.