private void validateOKAction() {
setOKActionEnabled(GroovyNamesUtil.isIdentifier(getName()));
}
@Override
protected void doOKAction() {
<BUG>final GrTypeDefinition clazz = (GrTypeDefinition)myContext.getScope();
final String name = getName();</BUG>
String message = RefactoringBundle.message("field.exists", name, clazz.getQualifiedName());
if (clazz.findFieldByName(name, true) != null &&
showYesNoDialog(myContext.getProject(), message, REFACTORING_NAME, getWarningIcon()) != 0) {

private void validateOKAction() {
setOKActionEnabled(GroovyNamesUtil.isIdentifier(getName()));
}
@Override
protected void doOKAction() {
final PsiClass clazz = (PsiClass)myContext.getScope();
final String name = getName();
String message = RefactoringBundle.message("field.exists", name, clazz.getQualifiedName());
if (clazz.findFieldByName(name, true) != null &&
showYesNoDialog(myContext.getProject(), message, REFACTORING_NAME, getWarningIcon()) != 0) {
