some diagnostics for renaming light methods (EA-32858)

This commit is contained in:
peter
2011-12-29 13:49:06 +01:00
parent b22f436063
commit ccb5d3096d
@@ -125,7 +125,11 @@ public class LightMethodBuilder extends LightElement implements PsiMethod {
@Override
public PsiElement setName(@NotNull String name) throws IncorrectOperationException {
throw new UnsupportedOperationException("Please don't rename light methods");
final String className = myContainingClass == null ? "null" : myContainingClass.getQualifiedName();
throw new UnsupportedOperationException("Please don't rename light methods: writable=" + isWritable() +
"; class=" + getClass() +
"; name=" + getName() +
"; inClass=" + className);
}
@Override