Spring Support: Fix renaming of Spring bean declarations via SpEL references

#KT-11720 Fixed
 #KT-11725 Fixed
This commit is contained in:
Alexey Sedunov
2016-04-04 21:20:59 +03:00
parent 5203f62655
commit afecb09b6f
66 changed files with 715 additions and 11 deletions
@@ -56,6 +56,8 @@ public class KtStringTemplateExpression extends KtExpressionImpl implements PsiL
@Override
public PsiLanguageInjectionHost updateText(@NotNull String text) {
KtExpression newExpression = new KtPsiFactory(getProject()).createExpressionIfPossible(text);
if (newExpression instanceof KtStringTemplateExpression) return (KtStringTemplateExpression) replace(newExpression);
return ElementManipulators.handleContentChange(this, text);
}