com.alveole.studio.web.wizard
Class NewProject

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by com.alveole.studio.web.wizard.NewProject
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class NewProject
extends org.eclipse.jface.wizard.Wizard
implements org.eclipse.ui.INewWizard

Wizard for new project.

Author:
sylvain

Field Summary
protected  java.util.ArrayList<IFeatureWizard> features
          The features wizards.
protected  org.eclipse.ui.dialogs.WizardNewFileCreationPage fileWizard
          The file sub-dialog.
protected  ProjectContext projectContext
          The currently create project.
protected  ProjectSettingsWizard projectSettings
          The project settings sub-dialog.
protected  org.eclipse.jface.viewers.IStructuredSelection selection
          Current selection.
protected  org.eclipse.ui.IWorkbench workbench
          The current wb.
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
NewProject()
          Constructor.
 
Method Summary
 void addPages()
          Add all wizard pages.
 org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
          Get next wizard page to be displayed.
 org.eclipse.core.resources.IProject getSelectedProject()
          Gets selected JavaProject.
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          Initiate wizard.
 boolean performFinish()
          Called on finish button.
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, 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, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
 

Field Detail

fileWizard

protected org.eclipse.ui.dialogs.WizardNewFileCreationPage fileWizard
The file sub-dialog.


projectSettings

protected ProjectSettingsWizard projectSettings
The project settings sub-dialog.


workbench

protected org.eclipse.ui.IWorkbench workbench
The current wb.


selection

protected org.eclipse.jface.viewers.IStructuredSelection selection
Current selection.


features

protected java.util.ArrayList<IFeatureWizard> features
The features wizards.


projectContext

protected ProjectContext projectContext
The currently create project.

Constructor Detail

NewProject

public NewProject()
Constructor.

Method Detail

getSelectedProject

public org.eclipse.core.resources.IProject getSelectedProject()
Gets selected JavaProject.


performFinish

public boolean performFinish()
Called on finish button.

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

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
Initiate wizard.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard

addPages

public void addPages()
Add all wizard pages.

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

getNextPage

public org.eclipse.jface.wizard.IWizardPage getNextPage(org.eclipse.jface.wizard.IWizardPage page)
Get next wizard page to be displayed.

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