}
} else if (selItem instanceof IHadoopJob) {
// kill the job
IHadoopJob job = (IHadoopJob) 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();
}
}
}
}
}