public class JavaTypeRenameValidator extends java.lang.Object implements RenameInputValidator
EP_NAME
Constructor and Description |
---|
JavaTypeRenameValidator() |
Modifier and Type | Method and Description |
---|---|
ElementPattern<? extends PsiElement> |
getPattern() |
boolean |
isInputValid(java.lang.String newName,
PsiElement element,
ProcessingContext context)
Is invoked for elements accepted by pattern
RenameInputValidator.getPattern() . |
public ElementPattern<? extends PsiElement> getPattern()
getPattern
in interface RenameInputValidator
public boolean isInputValid(java.lang.String newName, PsiElement element, ProcessingContext context)
RenameInputValidator
RenameInputValidator.getPattern()
.
Should return true if RenameInputValidatorEx
is intended to return custom error message,
otherwise default message "newName is not a valid identifier" would be shownisInputValid
in interface RenameInputValidator