From 5684cfc34c61b78b9f04067f339e4044fe6124de Mon Sep 17 00:00:00 2001 From: Mikhail Golubev Date: Wed, 1 Jun 2016 20:22:46 +0300 Subject: [PATCH] Fix the title of the tasks that search for duplicates in extract method I've corrected capitalization of the text and move it to RefactoringBundle. --- .../refactoring/extractMethod/ExtractMethodHelper.java | 4 ++-- .../src/messages/RefactoringBundle.properties | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodHelper.java b/platform/lang-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodHelper.java index 208b9e80baee..ca3f72fc0dce 100644 --- a/platform/lang-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodHelper.java +++ b/platform/lang-impl/src/com/intellij/refactoring/extractMethod/ExtractMethodHelper.java @@ -61,7 +61,7 @@ public class ExtractMethodHelper { return; } final Project project = callElement.getProject(); - ProgressManager.getInstance().run(new Task.Backgroundable(project, "Searching for duplicates...", true) { + ProgressManager.getInstance().run(new Task.Backgroundable(project, RefactoringBundle.message("searching.for.duplicates"), true) { public void run(@NotNull ProgressIndicator indicator) { if (myProject == null || myProject.isDisposed()) return; final List duplicates = ApplicationManager.getApplication().runReadAction(new Computable>() { @@ -100,7 +100,7 @@ public class ExtractMethodHelper { return ProgressManager.getInstance().runProcessWithProgressSynchronously( (ThrowableComputable, RuntimeException>)() -> { return ReadAction.compute(() -> finder.findDuplicates(searchScopes, generatedMethod)); - }, "Searching for duplicates...", true, project); + }, RefactoringBundle.message("searching.for.duplicates"), true, project); } catch (ProcessCanceledException e) { return Collections.emptyList(); diff --git a/platform/platform-resources-en/src/messages/RefactoringBundle.properties b/platform/platform-resources-en/src/messages/RefactoringBundle.properties index 891b344cddbd..8e5ea4e5805b 100644 --- a/platform/platform-resources-en/src/messages/RefactoringBundle.properties +++ b/platform/platform-resources-en/src/messages/RefactoringBundle.properties @@ -565,6 +565,7 @@ move.directory.0=Move directory {0} move.files.to.directory.label=To directory: the.file.will.be.moved.to.this.directory=File will be moved to this directory searching.for.variables=Searching for variables +searching.for.duplicates=Searching for Duplicates... no.usages.can.be.replaced=No usages of {0} \ncan be replaced with usages of {1} turn.refs.to.super.command=Replacing usages of {0} with {1} references.to.0.to.be.replaced.with.references.to.1=References to ''{0}'' to be replaced with references to ''{1}''