public class ResultMessageHandler extends AbstractM2xResultHandler
| Constructor and Description |
|---|
ResultMessageHandler()
Constructs a result message handler that opens a message dialog indicating the result status of underlying M2x
job, if failed.
|
ResultMessageHandler(int openDialogOn)
Constructs a result message handler that opens a message dialog indicating the result status of underlying M2x
job.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
capMessage(java.lang.String message) |
void |
handleResult(org.eclipse.core.runtime.jobs.Job m2xJob)
Invoked for handling the result of last job that has completed execution.
|
protected void |
handleResultMessage()
Opens a message dialog that indicates the result status of underlying M2x job.
|
done, getCheckJob, getM2xJob, getXpandJob, getXtendJobpublic ResultMessageHandler()
public ResultMessageHandler(int openDialogOn)
m2xJob - the M2TJob or M2MJob instance to be use.openDialogOn - a bit indicating when the message is to be displayed (on completion only, or on cancellation only or
on completion and cancellation, etc.).public void handleResult(org.eclipse.core.runtime.jobs.Job m2xJob)
AbstractM2xResultHandlerClients are expected to override this method and for implementing the required result handling behavior.
handleResult in class AbstractM2xResultHandlerm2xJob - The last job that has completed execution - same job instance as that returned by AbstractM2xResultHandler.getM2xJob()
.AbstractM2xResultHandler.getM2xJob()protected void handleResultMessage()
protected java.lang.String capMessage(java.lang.String message)