}
} else if (selItem instanceof HadoopJob) {
// kill the job
HadoopJob job = (HadoopJob) selItem;
if (job.isCompleted()) {
// Job already finished, remove the entry
job.getLocation().purgeJob(job);
} else {
// Job is running, kill the job?
if (MessageDialog.openConfirm(Display.getDefault()
.getActiveShell(), "Confirm kill running Job",
"Do you really want to kill running Job: " + job.getJobId())) {
job.kill();
}
}
}
}
}