mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
References to Class must implement method 'bindToElement()' because it called on renaming on containing class.
This commit is contained in:
+6
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user