com.alveole.studio.web.wizard
Class AddFeaturesOnProject

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

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

Main wizard to add new features on a project.

Author:
sylvain

Field Summary
protected  java.util.ArrayList<IFeatureWizard> features
          List of all pluggable feature wizards.
protected  ProjectContext projectContext
          The currently update project.
protected  ProjectSettingsWizard projectSettings
          The project settings wizard.
protected  org.eclipse.jface.viewers.IStructuredSelection selection
          The current selection.
protected  org.eclipse.ui.IWorkbench workbench
          The current workbench.
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
AddFeaturesOnProject()
          Constructor.
 
Method Summary
 void addPages()
          Add all wizard pages.
 ProjectContext getProjectContext()
          Gets project context.
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          Initiate wizard.
 boolean performFinish()
          Called when user clicks "finish" button.
 void setProjectContext(ProjectContext projectContext)
          Set project context.
 
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

projectSettings

protected ProjectSettingsWizard projectSettings
The project settings wizard.


workbench

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


selection

protected org.eclipse.jface.viewers.IStructuredSelection selection
The current selection.


features

protected java.util.ArrayList<IFeatureWizard> features
List of all pluggable feature wizards.


projectContext

protected ProjectContext projectContext
The currently update project.

Constructor Detail

AddFeaturesOnProject

public AddFeaturesOnProject()
Constructor.

Method Detail

performFinish

public boolean performFinish()
Called when user clicks "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

getProjectContext

public ProjectContext getProjectContext()
Gets project context.

Returns:
Project context.

setProjectContext

public void setProjectContext(ProjectContext projectContext)
Set project context.

Parameters:
projectContext - The context.