disable for search in non-java in member inplace renamer (IDEA-153174)

This commit is contained in:
Anna.Kozlova
2016-03-18 20:49:43 +01:00
parent 81a6342d17
commit c50526306d
@@ -41,6 +41,7 @@ import com.intellij.refactoring.RefactoringBundle;
import com.intellij.refactoring.rename.RenameProcessor;
import com.intellij.refactoring.rename.RenamePsiElementProcessor;
import com.intellij.refactoring.rename.naming.AutomaticRenamerFactory;
import com.intellij.refactoring.util.TextOccurrencesUtil;
import com.intellij.usageView.UsageViewUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -292,7 +293,7 @@ public class MemberInplaceRenamer extends VariableInplaceRenamer {
public MyRenameProcessor(PsiElement element, String newName, RenamePsiElementProcessor elementProcessor) {
super(MemberInplaceRenamer.this.myProject, element, newName, elementProcessor.isToSearchInComments(element),
elementProcessor.isToSearchForTextOccurrences(element));
elementProcessor.isToSearchForTextOccurrences(element) && TextOccurrencesUtil.isSearchTextOccurencesEnabled(element));
}
@Nullable