net.refractions.udig.catalog.ui.workflow
Class WorkflowWizardDialog

java.lang.Object
  extended by WizardDialog
      extended by net.refractions.udig.catalog.ui.workflow.WorkflowWizardDialog
All Implemented Interfaces:
Workflow.Listener

public class WorkflowWizardDialog
extends WizardDialog
implements Workflow.Listener


Constructor Summary
WorkflowWizardDialog(Shell parentShell, WorkflowWizard wizard)
           
 
Method Summary
protected  void backPressed()
           
protected  void backPressedSuper()
           
 void backward(Workflow.State current, Workflow.State next)
          Event thrown when the pipe moves to a new state in a backward direction.
 void finished(Workflow.State last)
          Event thrown when workflow is finished.
protected  void finishPressed()
           
protected  void finishPressedSuper()
           
 void forward(Workflow.State current, Workflow.State prev)
          Event thrown when the pipe moves to a new state in the forward direction.
 WorkflowWizard getWorkflowWizard()
           
protected  void initWorkflow()
          Performs the initialization of the workflow.
protected  void nextPressed()
           
protected  void nextPressedSuper()
           
 int open()
           
 void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable1)
           
 void runHeadless(IProgressMonitor monitor)
          Runs the dialog in headless mode.
 void showPage(IWizardPage page)
           
 void started(Workflow.State first)
          Event thrown when the workflow is started.
 void stateFailed(Workflow.State state)
          Event thrown when a state can not complete its job.
 void statePassed(Workflow.State state)
          Event thrown when a state successfully completes its job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowWizardDialog

public WorkflowWizardDialog(Shell parentShell,
                            WorkflowWizard wizard)
Method Detail

getWorkflowWizard

public WorkflowWizard getWorkflowWizard()

nextPressed

protected void nextPressed()

run

public void run(boolean fork,
                boolean cancelable,
                IRunnableWithProgress runnable1)
         throws java.lang.reflect.InvocationTargetException,
                java.lang.InterruptedException
Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException

nextPressedSuper

protected void nextPressedSuper()

backPressed

protected void backPressed()

backPressedSuper

protected void backPressedSuper()

finishPressed

protected void finishPressed()

finishPressedSuper

protected void finishPressedSuper()

open

public int open()

showPage

public void showPage(IWizardPage page)

runHeadless

public void runHeadless(IProgressMonitor monitor)
Runs the dialog in headless mode. The dialog will run headless while the workflow can run.

Parameters:
monitor -

initWorkflow

protected void initWorkflow()
Performs the initialization of the workflow.


started

public void started(Workflow.State first)
Description copied from interface: Workflow.Listener
Event thrown when the workflow is started.

Specified by:
started in interface Workflow.Listener
Parameters:
first - The first state of the pipe

forward

public void forward(Workflow.State current,
                    Workflow.State prev)
Description copied from interface: Workflow.Listener
Event thrown when the pipe moves to a new state in the forward direction.

Specified by:
forward in interface Workflow.Listener
Parameters:
current - The current state.
prev - The state before the current state.

backward

public void backward(Workflow.State current,
                     Workflow.State next)
Description copied from interface: Workflow.Listener
Event thrown when the pipe moves to a new state in a backward direction.

Specified by:
backward in interface Workflow.Listener
Parameters:
current - The curent state.
next - The state after the current state.

statePassed

public void statePassed(Workflow.State state)
Description copied from interface: Workflow.Listener
Event thrown when a state successfully completes its job.

Specified by:
statePassed in interface Workflow.Listener
Parameters:
state - The current state.

stateFailed

public void stateFailed(Workflow.State state)
Description copied from interface: Workflow.Listener
Event thrown when a state can not complete its job.

Specified by:
stateFailed in interface Workflow.Listener
Parameters:
state - The current state.

finished

public void finished(Workflow.State last)
Description copied from interface: Workflow.Listener
Event thrown when workflow is finished.

Specified by:
finished in interface Workflow.Listener
Parameters:
last - The last state of the pipe