private InputDialog getModuleInput(final String name, final String mesg) {
return new InputDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getShell(), name, mesg, "", new IInputValidator() {
public IValidator internalV = new ModuleNameValidator();
@Override
public String isValid(final String newText) {
if (internalV.isValid(newText)) {
return null;
}
return "Please type a correct module name!";
}
});