org.ow2.clif.analyze.lib.egui.wizards
Class CLIFReportNewWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.ow2.clif.analyze.lib.egui.wizards.CLIFReportNewWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

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

Its role is to create a new CLIF report in the provided container. If the container resource (a folder or a project) is selected in the workspace when the wizard is opened, it will accept it as the target container. The wizard creates one file with the extension "rptdesign". Then, a next page allows to select CLIF executions. And another one provides templates for the new report.

Author:
Grégory CALONNIER, Jordan BRUNIER

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
CLIFReportNewWizard()
          Constructor for CLIFReportNewWizard.
 
Method Summary
 void addPages()
          Adding pages to the wizard.
 boolean canFinish()
          Returns whether this wizard could be finished without further user interaction.
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
          We will accept the selection in the workbench to see if we can initialize from it.
 boolean performFinish()
          This method is called when 'Finish' button is pressed in the wizard.
 
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

CLIFReportNewWizard

public CLIFReportNewWizard()
Constructor for CLIFReportNewWizard.

Method Detail

addPages

public void addPages()
Adding pages to the wizard.

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

performFinish

public boolean performFinish()
This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.

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

canFinish

public boolean canFinish()
Returns whether this wizard could be finished without further user interaction. The result of this method is typically used by the wizard container to enable or disable the Finish button.

Specified by:
canFinish in interface org.eclipse.jface.wizard.IWizard
Overrides:
canFinish in class org.eclipse.jface.wizard.Wizard
Returns:
true if the wizard could be finished, and false otherwise

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection selection)
We will accept the selection in the workbench to see if we can initialize from it.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard
See Also:
IWorkbenchWizard.init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)