introduce vararg variable from the selected enumeration (IDEA-82508)

This commit is contained in:
anna
2012-03-11 19:00:58 +01:00
parent deb7f52be3
commit fd6b282da2
4 changed files with 30 additions and 1 deletions
@@ -408,7 +408,7 @@ public abstract class IntroduceVariableBase extends IntroduceHandlerBase {
args, PsiSubstitutor.EMPTY, parent,
DefaultParameterTypeInferencePolicy.INSTANCE);
if (startOffset < args[parameters.length - 1].getTextOffset()) return null;
if (startOffset < args[parameters.length - 1].getTextRange().getStartOffset()) return null;
final PsiFile containingFile = parent.getContainingFile();