org.ow2.clif.console.lib.egui.wizards.clifProject
Class NewClifProjectWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.ow2.clif.console.lib.egui.wizards.clifProject.NewClifProjectWizard
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class NewClifProjectWizard
extends org.eclipse.jface.wizard.Wizard
implements org.eclipse.ui.INewWizard, org.eclipse.core.runtime.IExecutableExtension

Main class for New CLIF project Wizard. Used to create a CLIF project and to add CLIF properties

Author:
Florian Francheteau, Bruno Dillenseger

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
NewClifProjectWizard()
          Constructor
 
Method Summary
 void addPages()
          Adds wizard pages.
 org.eclipse.core.resources.IProject getProject()
          Gets the created project
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
           
 boolean performCancel()
          If project is created then, this methods delete the project when user clicks on Cancel button
 boolean performFinish()
          Creates files, folders and write CLIF properties when user clicks on finish button.
 void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config, java.lang.String propertyName, java.lang.Object data)
           
 
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, 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, setContainer
 

Constructor Detail

NewClifProjectWizard

public NewClifProjectWizard()
Constructor

Method Detail

addPages

public void addPages()
Adds wizard pages. The project is created when the second page is visible

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

performFinish

public boolean performFinish()
Creates files, folders and write CLIF properties when user clicks on finish button.

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

performCancel

public boolean performCancel()
If project is created then, this methods delete the project when user clicks on Cancel button

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

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard

setInitializationData

public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
                                  java.lang.String propertyName,
                                  java.lang.Object data)
                           throws org.eclipse.core.runtime.CoreException
Specified by:
setInitializationData in interface org.eclipse.core.runtime.IExecutableExtension
Throws:
org.eclipse.core.runtime.CoreException

getProject

public org.eclipse.core.resources.IProject getProject()
Gets the created project

Returns:
created project