return null;
}
final String callbackModule = dialog.getValue();
pages.add(new UserRefacInputPage("Apply ad hoc refactoring",
"Please type input arguments for this refactoring",
"Arguments should not be empty!", new NonEmptyStringValidator()));
refactoring = new ApplyAdhocElemRefactoring();
((ApplyAdhocElemRefactoring) refactoring)
.setCallbackModuleName(callbackModule);
if (!((ApplyAdhocElemRefactoring) refactoring).fetchParPrompts()) {
MessageDialog.openError(PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getShell(),
"Elementary refactoring error", "Can not load callback module");
return null;
}
// apply user-defined refactoring
} else if (actionId.equals("org.erlide.wrangler.refactoring.gen_refac")) {
final String callbackModule = event
.getParameter("org.erlide.wrangler.refactoring.gen_refac.callback");
final String name = event
.getParameter("org.erlide.wrangler.refactoring.gen_refac.name");
pages.add(new UserRefacInputPage(name,
"Please type input arguments for this refactoring",
"Arguments should not be empty!", new NonEmptyStringValidator()));
refactoring = new ApplyUserElementaryRefactoring(name, callbackModule);
if (!((ApplyUserElementaryRefactoring) refactoring).fetchParPrompts()) {