public class SimpleTask extends java.lang.Object implements ITask
Modifier and Type | Field and Description |
---|---|
protected WizardBase |
container |
protected IWizardContext |
context |
protected org.eclipse.swt.widgets.Composite |
topControl |
Constructor and Description |
---|
SimpleTask() |
SimpleTask(java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(java.lang.String errorInfo) |
void |
createControl(org.eclipse.swt.widgets.Composite parent) |
void |
dispose() |
IWizardContext |
getContext()
Called just before the UI for the task is disposed, it will be used by
the wizard.
|
org.eclipse.swt.widgets.Control |
getControl() |
java.lang.String |
getDescription() |
java.lang.String |
getErrorMessage() |
java.lang.String[] |
getErrors()
Called by the container wizard if it follows the 'pull' mechanism for
error discovery.
|
org.eclipse.swt.graphics.Image |
getImage() |
java.lang.String |
getMessage() |
java.lang.String |
getTitle() |
void |
performHelp()
Deprecated.
For later use
|
protected void |
removeError(java.lang.String errorInfo) |
void |
setContext(IWizardContext context)
Called just before the UI for this Task is shown.
|
void |
setDescription(java.lang.String description) |
void |
setErrorHints(java.lang.Object[] errorHints)
Called just before the UI for this Task is shown...in case the task is
being shown in response to a request to fix an error.
|
void |
setImageDescriptor(org.eclipse.jface.resource.ImageDescriptor image)
Deprecated.
For later use
|
void |
setTitle(java.lang.String title) |
void |
setUIProvider(WizardBase wizard)
Called upon instantiation to allow a task to interact with the containing
wizard.
|
void |
setVisible(boolean visible) |
protected transient org.eclipse.swt.widgets.Composite topControl
protected transient IWizardContext context
protected transient WizardBase container
public SimpleTask()
public SimpleTask(java.lang.String title)
public void setContext(IWizardContext context)
ITask
setContext
in interface ITask
context
- The context in which the Subtask UI will be shown. Its content
depend on individual wizards.public IWizardContext getContext()
ITask
getContext
in interface ITask
public void setUIProvider(WizardBase wizard)
ITask
setUIProvider
in interface ITask
wizard
- instance of WizardBase containing this task instance.public java.lang.String[] getErrors()
ITask
protected void addError(java.lang.String errorInfo)
protected void removeError(java.lang.String errorInfo)
public void setErrorHints(java.lang.Object[] errorHints)
ITask
setErrorHints
in interface ITask
errorHints
- Object array providing additional (task-specific) information
provided by the source of the task redirection. It is expected
to contain information that the target task can use to better
guide the user to fix any error conditions.public void dispose()
dispose
in interface org.eclipse.jface.dialogs.IDialogPage
public void createControl(org.eclipse.swt.widgets.Composite parent)
createControl
in interface org.eclipse.jface.dialogs.IDialogPage
public org.eclipse.swt.widgets.Control getControl()
getControl
in interface org.eclipse.jface.dialogs.IDialogPage
public java.lang.String getDescription()
getDescription
in interface org.eclipse.jface.dialogs.IDialogPage
public java.lang.String getErrorMessage()
getErrorMessage
in interface org.eclipse.jface.dialogs.IDialogPage
public org.eclipse.swt.graphics.Image getImage()
getImage
in interface org.eclipse.jface.dialogs.IDialogPage
public java.lang.String getMessage()
getMessage
in interface org.eclipse.jface.dialogs.IDialogPage
public java.lang.String getTitle()
getTitle
in interface org.eclipse.jface.dialogs.IDialogPage
public void performHelp()
performHelp
in interface org.eclipse.jface.dialogs.IDialogPage
public void setDescription(java.lang.String description)
setDescription
in interface org.eclipse.jface.dialogs.IDialogPage
public void setImageDescriptor(org.eclipse.jface.resource.ImageDescriptor image)
setImageDescriptor
in interface org.eclipse.jface.dialogs.IDialogPage
public void setTitle(java.lang.String title)
setTitle
in interface org.eclipse.jface.dialogs.IDialogPage
public void setVisible(boolean visible)
setVisible
in interface org.eclipse.jface.dialogs.IDialogPage
Copyright © 2008 Actuate Corp. All rights reserved.