IDEA-56769 Don't show preview on changing Groovy constructor signature if not...
authorMaxim Medvedev <maxim.medvedev@jetbrains.com>
Tue, 27 Jul 2010 08:39:05 +0000 (12:39 +0400)
committerMaxim Medvedev <maxim.medvedev@jetbrains.com>
Tue, 27 Jul 2010 08:39:05 +0000 (12:39 +0400)
plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/changeSignature/GrMethodCallUsageInfo.java

index 787f7e3e3dfe20ccf1850326b2723b365f706bff..d5496e22307ed2e1286050e6e2cd7bd819e627f1 100644 (file)
@@ -27,8 +27,8 @@ import com.intellij.usageView.UsageInfo;
 import com.intellij.util.containers.hash.HashMap;
 import org.jetbrains.annotations.Nullable;
 import org.jetbrains.plugins.groovy.lang.psi.api.GroovyResolveResult;
-import org.jetbrains.plugins.groovy.lang.psi.api.statements.GrConstructorInvocation;
 import org.jetbrains.plugins.groovy.lang.psi.api.statements.arguments.GrArgumentList;
+import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrConstructorCall;
 import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrExpression;
 import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrMethodCall;
 import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrReferenceExpression;
@@ -110,8 +110,8 @@ public class GrMethodCallUsageInfo extends UsageInfo implements PossiblyIncorrec
         return ((GrReferenceExpression)expression).advancedResolve();
       }
     }
-    else if (parent instanceof GrConstructorInvocation) {
-      return ((GrConstructorInvocation)parent).resolveConstructorGenerics();
+    else if (parent instanceof GrConstructorCall) {
+      return ((GrConstructorCall)parent).resolveConstructorGenerics();
     }
 
     return null;