org.eclipse.xtext.xtend2.ui.wizards
Class NewXtend2ClassWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.eclipse.jdt.internal.ui.wizards.NewElementWizard
          extended by org.eclipse.xtext.xtend2.ui.wizards.NewXtend2ClassWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class NewXtend2ClassWizard
extends org.eclipse.jdt.internal.ui.wizards.NewElementWizard

Author:
Robert von Massow - Initial contribution and API

Field Summary
static java.lang.String TITLE
           
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
NewXtend2ClassWizard(IImageHelper imgHelper, NewXtend2ClassWizardPage fPage)
           
 
Method Summary
 void addPages()
          The Wizard implementation of this IWizard method does nothing.
protected  void finishPage(org.eclipse.core.runtime.IProgressMonitor monitor)
          Subclasses should override to perform the actions of the wizard.
 org.eclipse.jdt.core.IJavaElement getCreatedElement()
           
 boolean performFinish()
          Subclasses must implement this IWizard method to perform any special finish processing for their wizard.
 
Methods inherited from class org.eclipse.jdt.internal.ui.wizards.NewElementWizard
canRunForked, getSchedulingRule, getSelection, getWorkbench, handleFinishException, init, openResource, selectAndReveal, warnAboutTypeCommentDeprecation
 
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

TITLE

public static final java.lang.String TITLE
See Also:
Constant Field Values
Constructor Detail

NewXtend2ClassWizard

@Inject
public NewXtend2ClassWizard(IImageHelper imgHelper,
                                   NewXtend2ClassWizardPage fPage)
Method Detail

addPages

public void addPages()
Description copied from class: org.eclipse.jface.wizard.Wizard
The Wizard implementation of this IWizard method does nothing. Subclasses should extend if extra pages need to be added before the wizard opens. New pages should be added by calling addPage.

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

finishPage

protected void finishPage(org.eclipse.core.runtime.IProgressMonitor monitor)
                   throws java.lang.InterruptedException,
                          org.eclipse.core.runtime.CoreException
Description copied from class: org.eclipse.jdt.internal.ui.wizards.NewElementWizard
Subclasses should override to perform the actions of the wizard. This method is run in the wizard container's context as a workspace runnable.

Specified by:
finishPage in class org.eclipse.jdt.internal.ui.wizards.NewElementWizard
Parameters:
monitor - the progress monitor
Throws:
java.lang.InterruptedException - when the operation is cancelled
org.eclipse.core.runtime.CoreException - if the element cannot be created

getCreatedElement

public org.eclipse.jdt.core.IJavaElement getCreatedElement()
Specified by:
getCreatedElement in class org.eclipse.jdt.internal.ui.wizards.NewElementWizard

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
Overrides:
performFinish in class org.eclipse.jdt.internal.ui.wizards.NewElementWizard
Returns:
true to indicate the finish request was accepted, and false to indicate that the finish request was refused