org.mockcentral.editor.new_wizard
Class NewMockCentralFileWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.mockcentral.editor.new_wizard.NewMockCentralFileWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

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

An INewWizard implementation for creating a new MockCentral configuration file. The IResource supplied to the init method's IStructuredSelection parameter (i.e. the user's selection prior to invoking this wizard) must be or must exist within an IJavaProject (not a "simple" project) or an error will be displayed and the wizard will not complete.

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
NewMockCentralFileWizard()
           
 
Method Summary
 void addPages()
           
 boolean canFinish()
           
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
           
 boolean performFinish()
           
 void setCanFinish(boolean canFinish)
          Sets the flag for whether the wizard can finish.
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, 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
createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
 

Constructor Detail

NewMockCentralFileWizard

public NewMockCentralFileWizard()
Method Detail

init

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

addPages

public void addPages()
Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages in class org.eclipse.jface.wizard.Wizard

setCanFinish

public void setCanFinish(boolean canFinish)
Sets the flag for whether the wizard can finish.

Parameters:
canFinish - the flag for whether the wizard can finish.

canFinish

public boolean canFinish()
Specified by:
canFinish in interface org.eclipse.jface.wizard.IWizard
Overrides:
canFinish in class org.eclipse.jface.wizard.Wizard

performFinish

public boolean performFinish()
Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard