net.refractions.udig.catalog.ui.export
Class CatalogExport

java.lang.Object
  extended by net.refractions.udig.catalog.ui.export.CatalogExport
Direct Known Subclasses:
CatalogExportDelegateWizard.MyCatalogExport

public class CatalogExport
extends java.lang.Object


Field Summary
protected  WorkflowWizard wizard
           
 
Constructor Summary
CatalogExport()
          Creates a new instance and calls init()
CatalogExport(boolean initialize)
          Creates a new instance and calls init() if initialize is true.
 
Method Summary
protected  java.util.Map<java.lang.Class<? extends Workflow.State>,WorkflowWizardPage> createPageMapping()
           
protected  Workflow createWorkflow()
           
protected  WorkflowWizard createWorkflowWizard(Workflow workflow, java.util.Map<java.lang.Class<? extends Workflow.State>,WorkflowWizardPage> map)
           
 WorkflowWizardDialog getDialog()
           
protected  void init()
          This is a "template method" (see GOF patterns book).
 void open()
           
 void run(IProgressMonitor monitor, java.lang.Object context)
           
static void setError(WizardDialog wizardDialog, java.lang.String msg, java.lang.Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wizard

protected WorkflowWizard wizard
Constructor Detail

CatalogExport

public CatalogExport()
Creates a new instance and calls init()


CatalogExport

public CatalogExport(boolean initialize)
Creates a new instance and calls init() if initialize is true. This method is here so that initialization can be deferred until later so the subclass can do other initialization first. If initialize is false make sure to call init() before using the object.

Parameters:
initialize - if true initialize is called
Method Detail

init

protected final void init()
This is a "template method" (see GOF patterns book). It first calls createWorkFlow() then createPageMapping() then createWorkflowWizard(). It also creates a dialog for the workflow wizard to be opened up in by calling createShell(). The dialog is blocking.


getDialog

public WorkflowWizardDialog getDialog()

open

public void open()

run

public void run(IProgressMonitor monitor,
                java.lang.Object context)

createWorkflow

protected Workflow createWorkflow()

createPageMapping

protected java.util.Map<java.lang.Class<? extends Workflow.State>,WorkflowWizardPage> createPageMapping()

createWorkflowWizard

protected WorkflowWizard createWorkflowWizard(Workflow workflow,
                                              java.util.Map<java.lang.Class<? extends Workflow.State>,WorkflowWizardPage> map)

setError

public static void setError(WizardDialog wizardDialog,
                            java.lang.String msg,
                            java.lang.Throwable e)