IDEA-79218 (Grails tags inside Groovy code should be completed as method (with '...
authorSergey Evdokimov <sergey.evdokimov@jetbrains.com>
Sat, 28 Jan 2012 12:47:12 +0000 (16:47 +0400)
committerSergey Evdokimov <sergey.evdokimov@jetbrains.com>
Sat, 28 Jan 2012 12:47:49 +0000 (16:47 +0400)
plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/synthetic/GrRenamableLightMethodBuilder.java

index 108977db72c536d72a4935bada9727c1df730a77..27db049d3bd6fe445e61bdbc49586848a409b3fd 100644 (file)
@@ -31,9 +31,14 @@ public class GrRenamableLightMethodBuilder extends GrLightMethodBuilder implemen
   @Override
   public PsiElement setName(@NotNull String name) throws IncorrectOperationException {
     myName = name;
+    onRename(name);
     return this;
   }
 
+  protected void onRename(@NotNull String newName) {
+    
+  }
+  
   @Override
   public boolean isWritable() {
     return true;