KT-3255 Add ability to rename kotlin classes from java

#KT-3255 Fixed
This commit is contained in:
Nikolay Krasko
2013-11-17 00:44:23 -08:00
committed by Nikolay Krasko
parent 87fac21310
commit 76562f9aa5
5 changed files with 38 additions and 7 deletions
@@ -129,7 +129,7 @@ public class KotlinLightClassForExplicitDeclaration extends KotlinWrappingLightC
@NotNull
@Override
public PsiElement copy() {
return new KotlinLightClassForExplicitDeclaration(getManager(), classFqName, classOrObject);
return new KotlinLightClassForExplicitDeclaration(getManager(), classFqName, (JetClassOrObject) classOrObject.copy());
}
@NotNull
@@ -394,7 +394,7 @@ public class KotlinLightClassForExplicitDeclaration extends KotlinWrappingLightC
@Override
public PsiElement setName(@NonNls @NotNull String name) throws IncorrectOperationException {
return super.setName(name); // TODO
throw new IncorrectOperationException("Cannot modify compiled kotlin element");
}
@Override