edu.cmu.sei.osate.ui.wizards
Class AadlProjectWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
          extended by edu.cmu.sei.osate.ui.wizards.AadlProjectWizard
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class AadlProjectWizard
extends org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
implements org.eclipse.core.runtime.IExecutableExtension

This is a simple wizard for creating a new Aadl project.


Nested Class Summary
 class AadlProjectWizard.WizardNewAadlProjectCreationPage
           
 
Field Summary
static java.lang.String copyright
           
protected  AadlProjectWizard.WizardNewAadlProjectCreationPage newProjectCreationPage
          This is the project creation page.
protected  org.eclipse.ui.IWorkbench workbench
          Remember the workbench during initialization.
protected  org.eclipse.core.resources.IWorkspace workspace
           
 
Fields inherited from class org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
selection
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
AadlProjectWizard()
          Creates a wizard for creating a new project resource in the workspace.
 
Method Summary
 void addPages()
           
 org.eclipse.core.resources.IProject getNewProject()
          Returns the newly created project.
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          This just records the information.
 boolean performFinish()
          Do the work after everything is specified.
 void setInitializationData(org.eclipse.core.runtime.IConfigurationElement cfig, java.lang.String propertyName, java.lang.Object data)
          Stores the configuration element for the wizard.
protected  void updatePerspective()
          Updates the perspective for the active page within the window.
 
Methods inherited from class org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
getSelection, getWorkbench, initializeDefaultPageImageDescriptor, selectAndReveal, selectAndReveal
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, 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
canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
 

Field Detail

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values

newProjectCreationPage

protected AadlProjectWizard.WizardNewAadlProjectCreationPage newProjectCreationPage
This is the project creation page.


workbench

protected org.eclipse.ui.IWorkbench workbench
Remember the workbench during initialization.


workspace

protected org.eclipse.core.resources.IWorkspace workspace
Constructor Detail

AadlProjectWizard

public AadlProjectWizard()
Creates a wizard for creating a new project resource in the workspace.

Method Detail

addPages

public void addPages()
Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages in class org.eclipse.jface.wizard.Wizard

getNewProject

public org.eclipse.core.resources.IProject getNewProject()
Returns the newly created project.

Returns:
the created project, or null if project not created

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
This just records the information.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard
Overrides:
init in class org.eclipse.ui.wizards.newresource.BasicNewResourceWizard

performFinish

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

Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard

setInitializationData

public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement cfig,
                                  java.lang.String propertyName,
                                  java.lang.Object data)
Stores the configuration element for the wizard. The config element will be used in performFinish to set the result perspective.

Specified by:
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtension

updatePerspective

protected void updatePerspective()
Updates the perspective for the active page within the window.