IResource resource = (IResource) adaptable.getAdapter(IResource.class);
// 63561: only allow run-on on file resources
if ((resource != null) && (resource.getType() == IResource.FILE)) {
RunOnHadoopWizard wizard =
new RunOnHadoopWizard(new JarModule(resource));
WizardDialog dialog = new Dialog(null, wizard);
dialog.create();
dialog.setBlockOnOpen(true);
dialog.open();