References to Class must implement method 'bindToElement()' because it called on renaming on containing class.

This commit is contained in:
Sergey Evdokimov
2011-06-08 14:42:01 +04:00
parent fdeea733ee
commit cc679a3cdd
@@ -159,6 +159,12 @@ public abstract class GroovyNamedArgumentProvider {
return myNavigationElement;
}
@Override
public PsiElement bindToElement(@NotNull PsiElement element) throws IncorrectOperationException {
if (element == myNavigationElement) return getElement();
return super.bindToElement(element);
}
@Override
public PsiElement handleElementRename(String newElementName) throws IncorrectOperationException {
final PsiElement resolved = resolve();