org.eclipse.xtext.ui.wizard
Class XtextNewProjectWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.eclipse.xtext.ui.wizard.XtextNewProjectWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard
Direct Known Subclasses:
NewXtextProjectWizard

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

Author:
Peter Friese - Initial contribution and API

Field Summary
protected  org.eclipse.jface.viewers.IStructuredSelection selection
           
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
XtextNewProjectWizard(IProjectCreator creator)
           
 
Method Summary
protected  void doFinish(IProjectInfo projectInfo, org.eclipse.core.runtime.IProgressMonitor monitor)
           
protected  IProjectCreator getCreator()
           
protected abstract  IProjectInfo getProjectInfo()
           
 org.eclipse.ui.IWorkbench getWorkbench()
           
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          Initializes this creation wizard using the passed workbench and object selection.
 boolean performFinish()
          Subclasses must implement this IWizard method to perform any special finish processing for their wizard.
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, addPages, 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
addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
 

Field Detail

selection

protected org.eclipse.jface.viewers.IStructuredSelection selection
Constructor Detail

XtextNewProjectWizard

public XtextNewProjectWizard(IProjectCreator creator)
Method Detail

getProjectInfo

protected abstract IProjectInfo getProjectInfo()

performFinish

public boolean performFinish()
Description copied from class: org.eclipse.jface.wizard.Wizard
Subclasses must implement this IWizard method to perform any special finish processing for their wizard.

Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard
Returns:
true to indicate the finish request was accepted, and false to indicate that the finish request was refused

doFinish

protected void doFinish(IProjectInfo projectInfo,
                        org.eclipse.core.runtime.IProgressMonitor monitor)

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
Description copied from interface: org.eclipse.ui.IWorkbenchWizard
Initializes this creation wizard using the passed workbench and object selection.

This method is called after the no argument constructor and before other methods are called.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard
Parameters:
workbench - the current workbench
selection - the current object selection

getWorkbench

public org.eclipse.ui.IWorkbench getWorkbench()

getCreator

protected IProjectCreator getCreator()