public void run(IAction action) {
try {
FormNode formNode = ((FormNodeEditPart) selectedPart).getModel();
ChooseFormTypeDialog chooseFormTypeDialog = new ChooseFormTypeDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell());
if (chooseFormTypeDialog.open() != Dialog.OK) {
return;
}
formNode.setFormType(chooseFormTypeDialog.getType());
String fileName = FormTypeProvider.getFormType(formNode.getFormType()).getFormFileName(getDefinitionFile(), formNode);
IFile file = IOUtils.getAdjacentFile(getDefinitionFile(), fileName);