org.ow2.clif.scenario.isac.egui.pages.pageBehavior
Class ActionWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.ow2.clif.scenario.isac.egui.pages.pageBehavior.ActionWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

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

This class is used for adding an action to a behavior. User can select an imported plug-in to see the list of actions it proposed and then select one action. Else he can select a controller : if, while, nchoice...

Author:
Joan Chaumont, Florian Francheteau

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
ActionWizard(org.w3c.dom.Document doc, org.w3c.dom.Element currentNode, org.w3c.dom.Element behavior, java.util.Map<java.lang.String,PluginDescription> plugins)
          Constructor
ActionWizard(org.w3c.dom.Document doc, org.w3c.dom.Element currentNode, org.w3c.dom.Element behavior, java.util.Map<java.lang.String,PluginDescription> plugins, ActionPlacement actionPlacement)
          Constuctor for the action Wizard
 
Method Summary
 void addPages()
           
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
           
 boolean performFinish()
           
 
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
 

Constructor Detail

ActionWizard

public ActionWizard(org.w3c.dom.Document doc,
                    org.w3c.dom.Element currentNode,
                    org.w3c.dom.Element behavior,
                    java.util.Map<java.lang.String,PluginDescription> plugins)
Constructor

Parameters:
doc -
currentNode -
behavior -
plugins -

ActionWizard

public ActionWizard(org.w3c.dom.Document doc,
                    org.w3c.dom.Element currentNode,
                    org.w3c.dom.Element behavior,
                    java.util.Map<java.lang.String,PluginDescription> plugins,
                    ActionPlacement actionPlacement)
Constuctor for the action Wizard

Parameters:
doc - Xml document
currentNode - Node selected
behavior - Current behaviour
plugins - List of plugins
actionPlacement - Placement of the actions
Method Detail

addPages

public void addPages()
Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages 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

init

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