Extract Function: Capitalize conflict messages

This commit is contained in:
Alexey Sedunov
2014-07-03 20:32:18 +04:00
parent d95f6383b7
commit ac17594f67
6 changed files with 12 additions and 5 deletions
@@ -18,6 +18,7 @@ package org.jetbrains.jet.plugin.refactoring;
import com.intellij.CommonBundle;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.PropertyKey;
import java.lang.ref.Reference;
@@ -33,6 +34,7 @@ public class JetRefactoringBundle {
private JetRefactoringBundle() {
}
@NotNull
public static String message(@NonNls @PropertyKey(resourceBundle = BUNDLE)String key, Object... params) {
return CommonBundle.message(getBundle(), key, params);
}
@@ -672,7 +672,7 @@ fun ExtractionDescriptor.validate(): ExtractionDescriptorWithConflicts {
JetRefactoringBundle.message(
"0.will.no.longer.be.accessible.after.extraction",
RefactoringUIUtil.getDescription(resolveResult.declaration, true)
)
).capitalize()
)
continue
}
@@ -682,7 +682,7 @@ fun ExtractionDescriptor.validate(): ExtractionDescriptorWithConflicts {
resolveResult.originalRefExpr,
JetRefactoringBundle.message(
"0.will.become.invisible.after.extraction",
RefactoringUIUtil.getDescription(resolveResult.declaration, true)
RefactoringUIUtil.getDescription(resolveResult.declaration, true).capitalize()
)
)
}