From a6259036480820609c0565652aa4489e545a33dc Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 12 Mar 2012 16:19:42 +0100 Subject: [PATCH] logging to detect incorrect calls to light elements --- .../com/intellij/psi/impl/light/LightElement.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/platform/core-impl/src/com/intellij/psi/impl/light/LightElement.java b/platform/core-impl/src/com/intellij/psi/impl/light/LightElement.java index d3d85827f895..000bd8b7ace9 100644 --- a/platform/core-impl/src/com/intellij/psi/impl/light/LightElement.java +++ b/platform/core-impl/src/com/intellij/psi/impl/light/LightElement.java @@ -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