|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWizard
net.refractions.udig.catalog.ui.workflow.WorkflowWizard
public class WorkflowWizard
Constructor Summary | |
---|---|
WorkflowWizard(Workflow workflow,
java.util.Map<java.lang.Class<? extends Workflow.State>,WorkflowWizardPage> map)
Creates a new workflow wizard. |
Method Summary | |
---|---|
void |
addPages()
|
boolean |
canFinish()
|
IWizardPage |
getNextPage(IWizardPage page)
Returns the next primary page in the page sequence. |
IWizardPage |
getPage(java.lang.Class<? extends Workflow.State> theClass)
Returns the wizard page which corresponds to a particular workflow state. |
IWizardPage |
getPage(Workflow.State state)
Returns the wizard page which corresponds to a particular workflow state. |
protected java.util.Map<java.lang.Class<? extends Workflow.State>,WorkflowWizardPage> |
getStateMap()
|
Workflow |
getWorkflow()
|
boolean |
needsPreviousAndNextButtons()
|
boolean |
performFinish()
|
protected boolean |
performFinish(IProgressMonitor monitor)
This method is ran in a non-UI thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkflowWizard(Workflow workflow, java.util.Map<java.lang.Class<? extends Workflow.State>,WorkflowWizardPage> map)
workflow
- The workflow to be run.map
- A map of workflow states to wizard pages.Method Detail |
---|
public Workflow getWorkflow()
protected java.util.Map<java.lang.Class<? extends Workflow.State>,WorkflowWizardPage> getStateMap()
public void addPages()
public IWizardPage getNextPage(IWizardPage page)
when a page does not contribute a secondary
page.
,
org.eclipse.jface.wizard.IWizard#getNextPage(org.eclipse.jface.wizard.IWizardPage)
public IWizardPage getPage(Workflow.State state)
state
- The state in question.
public IWizardPage getPage(java.lang.Class<? extends Workflow.State> theClass)
state
- The class of state in question.
public boolean canFinish()
public final boolean performFinish()
protected boolean performFinish(IProgressMonitor monitor)
PlatformGIS#runBlockingOperation(IRunnableWithProgress, IProgressMonitor)
to ensure
that blocking operations in this method will not block the UI. It is recommended that all long operation are done in this thread and only
quick UI updates should be done in the UI thread.
monitor
- the dialog progress monitor.
Display#syncExec(Runnable)
,
Display#asyncExec(Runnable)
public boolean needsPreviousAndNextButtons()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |