logging to detect incorrect calls to light elements

This commit is contained in:
anna
2012-03-12 18:31:27 +01:00
parent cdc3319d4c
commit a625903648
@@ -130,37 +130,37 @@ public abstract class LightElement extends PsiElementBase {
@Override
public void checkAdd(@NotNull PsiElement element) throws IncorrectOperationException {
throw new IncorrectOperationException();
throw new IncorrectOperationException(getClass().getName());
}
@Override
public PsiElement add(@NotNull PsiElement element) throws IncorrectOperationException {
throw new IncorrectOperationException();
throw new IncorrectOperationException(getClass().getName());
}
@Override
public PsiElement addBefore(@NotNull PsiElement element, PsiElement anchor) throws IncorrectOperationException {
throw new IncorrectOperationException();
throw new IncorrectOperationException(getClass().getName());
}
@Override
public PsiElement addAfter(@NotNull PsiElement element, PsiElement anchor) throws IncorrectOperationException {
throw new IncorrectOperationException();
throw new IncorrectOperationException(getClass().getName());
}
@Override
public void delete() throws IncorrectOperationException {
throw new IncorrectOperationException();
throw new IncorrectOperationException(getClass().getName());
}
@Override
public void checkDelete() throws IncorrectOperationException {
throw new IncorrectOperationException();
throw new IncorrectOperationException(getClass().getName());
}
@Override
public PsiElement replace(@NotNull PsiElement newElement) throws IncorrectOperationException {
throw new IncorrectOperationException();
throw new IncorrectOperationException(getClass().getName());
}
@Override