try {
EvaluationContext context = (EvaluationContext) event.getApplicationContext();
IFile xmlFile = getFile(context);
if (BeansCoreUtils.isBeansConfig(xmlFile)) {
EditorPart editor = (EditorPart) (context.getParent().getVariable("activePart"));
NamespaceConfigWizard namespaceWizard = new NamespaceConfigWizard(xmlFile, editor);
WizardDialog wizardDialog = new WizardDialog(Display.getDefault().getActiveShell(), namespaceWizard);
wizardDialog.setBlockOnOpen(true);
wizardDialog.create();
wizardDialog.open();
}