|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.wst.server.core.model.PublishOperation
An publish operation that will be executed during publishing. [issue: EY It is not clear to me that when this task will be run. Will the place where the task is being run depend on the server, e.g. the TDC tasks for the v6 server should be run after the server is started the modules are added to the server; however, the EJB deploy task makes more sense to be run before adding the project to the server.]
Field Summary | |
---|---|
static int |
OPTIONAL
Operation kind constant (value 0) indicating that the operation does not need be executed. |
static int |
PREFERRED
Operation kind constant (value 1) indicating that the operation should be executed. |
static int |
REQUIRED
Operation kind constant (value 2) indicating that the operation must be executed. |
Constructor Summary | |
---|---|
PublishOperation()
Create a new operation. |
|
PublishOperation(java.lang.String label,
java.lang.String description)
Create a new operation with the given label and description. |
Method Summary | |
---|---|
abstract void |
execute(IProgressMonitor monitor,
IAdaptable info)
Execute (perform) the operation. |
java.lang.String |
getDescription()
Returns the displayable description for this operation. |
int |
getKind()
Returns the kind of this operation. |
java.lang.String |
getLabel()
Returns the displayable label for this operation. |
abstract int |
getOrder()
Returns the order (index/priority) of the task that will be run. |
TaskModel |
getTaskModel()
Return the task model. |
void |
setTaskModel(TaskModel taskModel)
Set the task model. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OPTIONAL
getKind()
,
Constant Field Valuespublic static final int PREFERRED
getKind()
,
Constant Field Valuespublic static final int REQUIRED
getKind()
,
Constant Field ValuesConstructor Detail |
public PublishOperation()
public PublishOperation(java.lang.String label, java.lang.String description)
label
- a translated label for the operationdescription
- the operation descriptionMethod Detail |
public int getKind()
REQUIRED
)
declared on PublishOperation
public abstract int getOrder()
public java.lang.String getLabel()
Note that this label is appropriate for the current locale.
public java.lang.String getDescription()
Note that this description is appropriate for the current locale.
public TaskModel getTaskModel()
A task model contains information about the overall task flow and allows tasks to store and retreive data. Its usage allows mutliple tasks to be chained together and share data from the output of one task to the input of another.
public void setTaskModel(TaskModel taskModel)
A task model contains information about the overall task flow and allows tasks to store and retreive data. Its usage allows mutliple tasks to be chained together and share data from the output of one task to the input of another.
taskModel
- the task modelpublic abstract void execute(IProgressMonitor monitor, IAdaptable info) throws CoreException
monitor
- a progress monitor, or null
if progress
reporting and cancellation are not desiredinfo
- the IAdaptable (or null
) provided by the
caller in order to supply UI information for prompting the
user if necessary. When this parameter is not
null
, it should minimally contain an adapter
for the org.eclipse.swt.widgets.Shell.class.
CoreException
- if there was an error while executing the task
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |