diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/GrAbstractInplaceIntroducer.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/GrAbstractInplaceIntroducer.java index 9d9fe9e3595d..92b036892266 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/GrAbstractInplaceIntroducer.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/introduce/GrAbstractInplaceIntroducer.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2014 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -262,7 +262,7 @@ public abstract class GrAbstractInplaceIntroducersingletonList(context.getStringPart())); + return map; } else if (context.getVar() != null) { - map.put(OccurrencesChooser.ReplaceChoice.NO, Collections.singletonList(context.getVar())); + map.put(OccurrencesChooser.ReplaceChoice.ALL, Collections.singletonList(context.getVar())); + return map; } PsiElement[] occurrences = context.getOccurrences();