toString() for KotlinLightClassForExplicitDeclaration

This commit is contained in:
Andrey Breslav
2012-12-28 20:19:08 +04:00
parent 4b4a9eb6c9
commit 7f051e38e5
6 changed files with 17 additions and 7 deletions
@@ -306,4 +306,14 @@ public class KotlinLightClassForExplicitDeclaration extends AbstractLightClass i
public PsiElement setName(@NonNls @NotNull String name) throws IncorrectOperationException {
return super.setName(name); // TODO
}
@Override
public String toString() {
try {
return KotlinLightClass.class.getSimpleName() + ":" + getQualifiedName();
}
catch (Throwable e) {
return KotlinLightClass.class.getSimpleName() + ":" + e.toString();
}
}
}