* @see javax.enterprise.deploy.spi.status.ProgressListener#handleProgressEvent(javax.enterprise.deploy.spi.status.ProgressEvent)
*/
public void handleProgressEvent(ProgressEvent event) {
DeploymentStatus deploymentStatus = event.getDeploymentStatus();
if (deploymentStatus != null) {
DeploymentStatusMessage dsm = new DeploymentStatusMessage(deploymentStatus);
Trace.trace(Trace.INFO, dsm.toString());
_monitor.subTask(dsm.toString());
if (command.getCommandType() == deploymentStatus.getCommand()) {
if (deploymentStatus.isCompleted()) {
messageToStatus(IStatus.OK, dsm.getMessage(), false);
sendNotification();
} else if (deploymentStatus.isFailed()) {
messageToStatus(IStatus.ERROR, dsm.getMessage(), true);
sendNotification();
}
}
}
}