sentence capitalization

This commit is contained in:
Dmitry Avdeev
2014-12-06 11:38:01 +03:00
parent 1d566347e1
commit 25275abdc8
51 changed files with 75 additions and 75 deletions

View File

@@ -64,7 +64,7 @@ public class SwapIfStatementsIntentionAction extends PsiElementBaseIntentionActi
@NotNull
@Override
public String getFamilyName() {
return "Swap If Statements";
return "Swap 'if' statements";
}
@NotNull

View File

@@ -48,7 +48,7 @@ public class ReplaceImplementsWithStaticImportAction extends BaseIntentionAction
@Override
@NotNull
public String getText() {
return "Replace Implements with Static Import";
return "Replace implements with static import";
}
@Override

View File

@@ -168,7 +168,7 @@ public class SliceLeafAnalyzer {
if (leaves == null) return; //cancelled
if (leaves.isEmpty()) {
Messages.showErrorDialog("Unable to find leaf expressions to group by", "Cannot group");
Messages.showErrorDialog("Unable to find leaf expressions to group by", "Cannot Group");
return;
}

View File

@@ -1,4 +1,4 @@
// "Remove Qualifier" "true"
// "Remove qualifier" "true"
class E {
class Outer {
class S {

View File

@@ -1,4 +1,4 @@
// "Remove Qualifier" "true"
// "Remove qualifier" "true"
class E {
class Outer {
public static final int SS = 0;

View File

@@ -1,4 +1,4 @@
// "Remove Qualifier" "true"
// "Remove qualifier" "true"
class E {
class Outer {
class S {

View File

@@ -1,4 +1,4 @@
// "Remove Qualifier" "true"
// "Remove qualifier" "true"
class E {
class Outer {
public static final int SS = 0;

View File

@@ -1,4 +1,4 @@
// "Remove Redundant 'else'" "true"
// "Remove redundant 'else'" "true"
class a {
void foo() {
int a = 0;

View File

@@ -1,4 +1,4 @@
// "Remove Redundant 'else'" "true"
// "Remove redundant 'else'" "true"
class a {
void foo() {
int a = 0;

View File

@@ -1,4 +1,4 @@
// "Remove Redundant 'else'" "false"
// "Remove redundant 'else'" "false"
class a {
void foo() {
int a = 0;

View File

@@ -1,4 +1,4 @@
// "Rename Reference" "true"
// "Rename reference" "true"
class c {
void () {
int i = <caret>x;

View File

@@ -1,4 +1,4 @@
// "Rename Reference" "true"
// "Rename reference" "true"
class c {
void foo(boolean b) {
if (b) {

View File

@@ -1,4 +1,4 @@
// "Rename Reference" "false"
// "Rename reference" "false"
class Foo {
void bar(int x) {
}

View File

@@ -1,4 +1,4 @@
// "Rename Reference" "true"
// "Rename reference" "true"
class FooInterface {
private int myInt;
}

View File

@@ -1,4 +1,4 @@
// "Swap If Statements" "true"
// "Swap 'if' statements" "true"
class A {
void m() {

View File

@@ -1,4 +1,4 @@
// "Swap If Statements" "true"
// "Swap 'if' statements" "true"
class A {
void m() {

View File

@@ -1,4 +1,4 @@
// "Swap If Statements" "true"
// "Swap 'if' statements" "true"
class A {
void m() {

View File

@@ -1,4 +1,4 @@
// "Swap If Statements" "true"
// "Swap 'if' statements" "true"
class A {
void m() {

View File

@@ -1,4 +1,4 @@
// "Swap If Statements" "true"
// "Swap 'if' statements" "true"
class A {
void m() {

View File

@@ -1,4 +1,4 @@
// "Swap If Statements" "false"
// "Swap 'if' statements" "false"
class A {
void m() {
if (someCondition) {

View File

@@ -1,4 +1,4 @@
// "Swap If Statements" "true"
// "Swap 'if' statements" "true"
class A {
void m() {

View File

@@ -1,6 +1,6 @@
import static I.FOO;
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X {
void foo() {
System.out.println(FOO);

View File

@@ -1,6 +1,6 @@
import static In.FOO;
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
interface In {
int FOO = 0;
}

View File

@@ -1,6 +1,6 @@
import static In.FOO;
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
interface In {
int FOO = 0;
}

View File

@@ -1,6 +1,6 @@
import static In.FOO;
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
interface In {
int FOO = 0;
}

View File

@@ -1,6 +1,6 @@
import static I.*;
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X {
void foo() {
System.out.println(FOO);

View File

@@ -1,7 +1,7 @@
import static I.FOO;
import static I1.BAZZ;
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X {
void bar() {
System.out.println(FOO);

View File

@@ -1,6 +1,6 @@
import static I1.BAZZ;
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X implements I {
void bar() {
System.out.println(FOO);

View File

@@ -1,7 +1,7 @@
import static I1.BAZZ;
import static II.FOO;
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X {
void bar() {
System.out.println(FOO);

View File

@@ -1,6 +1,6 @@
import static In.FOO;
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
interface In {
int FOO = 0;
}

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X implements <caret>I {
void foo() {
System.out.println(FOO);

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
interface I<caret>n {
int FOO = 0;
}

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
interface I<caret>n {
int FOO = 0;
}

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
interface I<caret>n {
int FOO = 0;
}

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X implements <caret>I {
void foo() {
System.out.println(FOO);

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "false"
// "Replace implements with static import" "false"
public class X implements <caret>I {
void foo() {
System.out.println(FOO);

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "false"
// "Replace implements with static import" "false"
public class X implements <caret>I {
void bar() {}
}

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "false"
// "Replace implements with static import" "false"
public class X implements <caret>I {
void bar() {
System.out.println(FOO);

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X implements <caret>I {
void bar() {
System.out.println(FOO);

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X implements I {
void bar() {
System.out.println(FOO);

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
public class X implements II {
void bar() {
System.out.println(FOO);

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
interface I<caret>n {
int FOO = 0;
}

View File

@@ -1,4 +1,4 @@
// "Replace Implements with Static Import" "true"
// "Replace implements with static import" "true"
interface I<caret>n {
int FOO = 0;
}

View File

@@ -2,7 +2,7 @@ PsiJavaFile:Errors1.java
PsiImportList
<empty list>
PsiClass:I
PsiComment(END_OF_LINE_COMMENT)('// "Replace Implements with Static Import" "true"')
PsiComment(END_OF_LINE_COMMENT)('// "Replace implements with static import" "true"')
PsiWhiteSpace('\n')
PsiModifierList:
<empty list>

View File

@@ -275,7 +275,7 @@ class Test {
}
}
'''
assert !myFixture.filterAvailableIntentions("Import Class")
assert !myFixture.filterAvailableIntentions("Import class")
}
public void "test don't import class in assignment"() {
@@ -286,7 +286,7 @@ class Test {
}
}
'''
assert !myFixture.filterAvailableIntentions("Import Class")
assert !myFixture.filterAvailableIntentions("Import class")
}
public void "test allow to add import from javadoc"() {
@@ -328,7 +328,7 @@ package com.rocket.test;
private def importClass() {
myFixture.launchAction(myFixture.findSingleIntention("Import Class"))
myFixture.launchAction(myFixture.findSingleIntention("Import class"))
}
private def reimportClass() {

View File

@@ -175,7 +175,7 @@ inspection.convert.to.local.quickfix=Convert to local
inspection.unused.return.value.display.name=Method can be void
inspection.unused.return.value.problem.descriptor=Return value of the method is never used
inspection.unused.return.value.make.void.quickfix=Make Method void
inspection.unused.return.value.make.void.quickfix=Make method 'void'
inspection.same.return.value.display.name=Method returns the same value
inspection.same.return.value.problem.descriptor=Method always returns {0}
@@ -191,7 +191,7 @@ inspection.unused.assignment.display.name=Unused assignment
inspection.unused.assignment.option=Report ++i when may be replaced with (i + 1)
inspection.unused.assignment.option1=Report i++ when changed value is not used afterwards
inspection.unused.assignment.option2=Report redundant initializers
inspection.unused.assignment.remove.quickfix=Remove Redundant Initializer
inspection.unused.assignment.remove.quickfix=Remove redundant initializer
inspection.unused.assignment.remove.assignment.quickfix=Remove redundant assignment
inspection.unused.assignment.problem.descriptor1=Variable {0} is never used
inspection.unused.assignment.problem.descriptor2=Variable {0} initializer {1} is redundant
@@ -202,7 +202,7 @@ inspection.unused.assignment.problem.descriptor5=Variable {0} is never used
inspection.unused.parameter.composer=Parameter <code>#ref</code> is not used in any implementation
inspection.unused.parameter.composer1=Parameter <code>#ref</code> is not used in either this method or any of its derived methods
inspection.unused.parameter.display.name=Unused method parameters
inspection.unused.parameter.delete.quickfix=Delete Unused Parameter(s)
inspection.unused.parameter.delete.quickfix=Delete unused parameter(s)
inspection.redundant.type.display.name=Redundant type arguments
inspection.redundant.type.remove.quickfix=Remove explicit type arguments
inspection.redundant.type.problem.descriptor=Explicit type arguments can be inferred
@@ -390,8 +390,8 @@ inspection.dead.code.comment=// --Commented out by Inspection
inspection.dead.code.date.comment=// --Commented out by Inspection ({0}):
inspection.dead.code.stop.comment=// --Commented out by Inspection STOP ({0})\n
inspection.dead.code.start.comment=// --Commented out by Inspection START ({0}):\n
inspection.dead.code.safe.delete.quickfix=Safe Delete
inspection.dead.code.comment.quickfix=Comment Out
inspection.dead.code.safe.delete.quickfix=Safe delete
inspection.dead.code.comment.quickfix=Comment out
inspection.dead.code.entry.point.quickfix=Add as Entry Point
inspection.dead.code.remove.from.entry.point.quickfix=Remove from Entry Points
inspection.dead.code.entry.points.display.name=Entry Points

View File

@@ -125,7 +125,7 @@ script.generated.with.same.name=There is a synthetic class ''{0}'' generated for
variable.already.defined=Variable ''{0}'' already defined
field.already.defined=Field ''{0}'' already defined
import.what=Import ''{0}''
import.class=Import Class
import.class=Import class
create.class.family.name=Create Class
create.class.text=Create Class {0}
create.interface.text=Create Interface {0}

View File

@@ -56,7 +56,7 @@ A<caret>bc<String, > foo = null
}
private def importClass() {
myFixture.launchAction(myFixture.findSingleIntention("Import Class"))
myFixture.launchAction(myFixture.findSingleIntention("Import class"))
}

View File

@@ -37,21 +37,21 @@ public class JavaFXImportTest extends DaemonAnalyzerTestCase {
public void testTextField() throws Exception {
configureByFiles(null, getTestName(true) + ".fxml", getTestName(false) + ".java");
final List<HighlightInfo> infos = doHighlighting();
findAndInvokeIntentionAction(infos, "Import Class", getEditor(), getFile());
findAndInvokeIntentionAction(infos, "Import class", getEditor(), getFile());
checkResultByFile(getTestName(true) + "_after.fxml");
}
public void testInsets() throws Exception {
configureByFiles(null, getTestName(true) + ".fxml", getTestName(false) + ".java");
final List<HighlightInfo> infos = doHighlighting();
findAndInvokeIntentionAction(infos, "Import Class", getEditor(), getFile());
findAndInvokeIntentionAction(infos, "Import class", getEditor(), getFile());
checkResultByFile(getTestName(true) + "_after.fxml");
}
private void doTest() throws Exception {
configureByFiles(null, getTestName(true) + ".fxml");
final List<HighlightInfo> infos = doHighlighting();
findAndInvokeIntentionAction(infos, "Import Class", getEditor(), getFile());
findAndInvokeIntentionAction(infos, "Import class", getEditor(), getFile());
checkResultByFile(getTestName(true) + "_after.fxml");
}

View File

@@ -5918,7 +5918,7 @@ quickfix.create.parameter=Create parameter
quickfix.create.parameter.selected.function.method.has.usages=Selected function/method has usages.
#quickfix -> PhpImportClassQuickFix
quickfix.import.class.name=Import Class
quickfix.import.class.name=Import class
quickfix.import.class.popup.title=Class to import
#quickfix -> PhpAddFieldDeclarationQuickFix
@@ -8112,7 +8112,7 @@ javascript.create.function.intention.family=Create JavaScript Function or Method
javascript.create.variable.intention.family=Create JavaScript Variable Or Property
create.mobile.view=Create View ''{0}''
invalid.package=Invalid package: {0}
javascript.rename.reference.intention.name=Rename Reference
javascript.rename.reference.intention.name=Rename reference
js.anonymous.to.named.function=Convert anonymous function to named function
js.convert.to.named.function=Convert to named function
js.split.into.multiple.declarations=Split into multiple declarations
@@ -10627,7 +10627,7 @@ inspection.convert.to.local.quickfix=Convert to local
inspection.unused.return.value.display.name=Unused method return value
inspection.unused.return.value.problem.descriptor=Return value of the method is never used
inspection.unused.return.value.make.void.quickfix=Make Method void
inspection.unused.return.value.make.void.quickfix=Make method 'void'
inspection.same.return.value.display.name=Method returns the same value
inspection.same.return.value.problem.descriptor=Method always returns {0}
@@ -10643,7 +10643,7 @@ inspection.unused.assignment.display.name=Unused assignment
inspection.unused.assignment.option=Report ++i when may be replaced with (i + 1)
inspection.unused.assignment.option1=Report i++ when changed value is not used afterwards
inspection.unused.assignment.option2=Report redundant initializers
inspection.unused.assignment.remove.quickfix=Remove Redundant Initializer
inspection.unused.assignment.remove.quickfix=Remove redundant initializer
inspection.unused.assignment.remove.assignment.quickfix=Remove redundant assignment
inspection.unused.assignment.problem.descriptor1=Variable {0} is never used
inspection.unused.assignment.problem.descriptor2=Variable {0} initializer {1} is redundant
@@ -10655,7 +10655,7 @@ inspection.unused.assignment.problem.descriptor6=The variable is assigned to its
inspection.unused.parameter.composer=Parameter <code>#ref</code> is not used in any implementation
inspection.unused.parameter.composer1=Parameter <code>#ref</code> is not used in either this method or any of its derived methods
inspection.unused.parameter.display.name=Unused method parameters
inspection.unused.parameter.delete.quickfix=Delete Unused Parameter(s)
inspection.unused.parameter.delete.quickfix=Delete unused parameter(s)
inspection.redundant.type.display.name=Redundant type arguments
inspection.redundant.type.remove.quickfix=Remove explicit type arguments
inspection.redundant.type.problem.descriptor=Explicit type arguments can be inferred
@@ -10844,7 +10844,7 @@ inspection.dead.code.date.comment=// --Commented out by Inspection ({0}):
inspection.dead.code.stop.comment=// --Commented out by Inspection STOP ({0})\n
inspection.dead.code.start.comment=// --Commented out by Inspection START ({0}):\n
inspection.dead.code.safe.delete.quickfix=Safe Delete
inspection.dead.code.comment.quickfix=Comment Out
inspection.dead.code.comment.quickfix=Comment out
inspection.dead.code.entry.point.quickfix=Add as Entry Point
inspection.dead.code.remove.from.entry.point.quickfix=Remove from Entry Points
inspection.dead.code.entry.points.display.name=Entry Points
@@ -21407,7 +21407,7 @@ quickfix.create.parameter=Create parameter
quickfix.create.parameter.selected.function.method.has.usages=Selected function/method has usages.
#quickfix -> PhpImportClassQuickFix
quickfix.import.class.name=Import Class
quickfix.import.class.name=Import class
quickfix.import.class.popup.title=Class to import
#quickfix -> PhpAddFieldDeclarationQuickFix
@@ -23601,7 +23601,7 @@ javascript.create.function.intention.family=Create JavaScript Function or Method
javascript.create.variable.intention.family=Create JavaScript Variable Or Property
create.mobile.view=Create View ''{0}''
invalid.package=Invalid package: {0}
javascript.rename.reference.intention.name=Rename Reference
javascript.rename.reference.intention.name=Rename reference
js.anonymous.to.named.function=Convert anonymous function to named function
js.convert.to.named.function=Convert to named function
js.split.into.multiple.declarations=Split into multiple declarations
@@ -26116,7 +26116,7 @@ inspection.convert.to.local.quickfix=Convert to local
inspection.unused.return.value.display.name=Unused method return value
inspection.unused.return.value.problem.descriptor=Return value of the method is never used
inspection.unused.return.value.make.void.quickfix=Make Method void
inspection.unused.return.value.make.void.quickfix=Make method 'void'
inspection.same.return.value.display.name=Method returns the same value
inspection.same.return.value.problem.descriptor=Method always returns {0}
@@ -26132,7 +26132,7 @@ inspection.unused.assignment.display.name=Unused assignment
inspection.unused.assignment.option=Report ++i when may be replaced with (i + 1)
inspection.unused.assignment.option1=Report i++ when changed value is not used afterwards
inspection.unused.assignment.option2=Report redundant initializers
inspection.unused.assignment.remove.quickfix=Remove Redundant Initializer
inspection.unused.assignment.remove.quickfix=Remove redundant initializer
inspection.unused.assignment.remove.assignment.quickfix=Remove redundant assignment
inspection.unused.assignment.problem.descriptor1=Variable {0} is never used
inspection.unused.assignment.problem.descriptor2=Variable {0} initializer {1} is redundant
@@ -26144,7 +26144,7 @@ inspection.unused.assignment.problem.descriptor6=The variable is assigned to its
inspection.unused.parameter.composer=Parameter <code>#ref</code> is not used in any implementation
inspection.unused.parameter.composer1=Parameter <code>#ref</code> is not used in either this method or any of its derived methods
inspection.unused.parameter.display.name=Unused method parameters
inspection.unused.parameter.delete.quickfix=Delete Unused Parameter(s)
inspection.unused.parameter.delete.quickfix=Delete unused parameter(s)
inspection.redundant.type.display.name=Redundant type arguments
inspection.redundant.type.remove.quickfix=Remove explicit type arguments
inspection.redundant.type.problem.descriptor=Explicit type arguments can be inferred
@@ -26333,7 +26333,7 @@ inspection.dead.code.date.comment=// --Commented out by Inspection ({0}):
inspection.dead.code.stop.comment=// --Commented out by Inspection STOP ({0})\n
inspection.dead.code.start.comment=// --Commented out by Inspection START ({0}):\n
inspection.dead.code.safe.delete.quickfix=Safe Delete
inspection.dead.code.comment.quickfix=Comment Out
inspection.dead.code.comment.quickfix=Comment out
inspection.dead.code.entry.point.quickfix=Add as Entry Point
inspection.dead.code.remove.from.entry.point.quickfix=Remove from Entry Points
inspection.dead.code.entry.points.display.name=Entry Points

View File

@@ -106,7 +106,7 @@ generalize.catch.text=Generalize catch for ''{0}'' to ''{1}''
generify.family=Generify File
generify.text=Try to generify ''{0}''
implement.methods.fix=Implement methods
import.class.fix=Import Class
import.class.fix=Import class
insert.new.fix=Insert new
insert.super.constructor.call.family=Base Ctr call
insert.super.constructor.call.text=Insert 'super();'
@@ -145,16 +145,16 @@ move.class.to.package.text=Move to package ''{0}''
negation.broader.scope.family=Negation Broader Scope
negation.broader.scope.text=Change to ''!({0})''
optimize.imports.fix=Optimize Imports
optimize.imports.fix=Optimize imports
remove.qualifier.fix=Remove qualifier
remove.redundant.else.fix=Remove Redundant 'else'
remove.redundant.else.fix=Remove redundant 'else'
remove.unused.parameter.family=Remove unused parameter
remove.unused.parameter.text=Remove Parameter ''{0}''
remove.unused.parameter.text=Remove parameter ''{0}''
remove.unused.variable.family=Remove unused variable
remove.unused.variable=Remove variable ''{0}''
remove.unused.field=Remove field ''{0}''
rename.wrong.reference.family=Rename Wrong Reference
rename.wrong.reference.text=Rename Reference
rename.wrong.reference.text=Rename reference
reuse.variable.declaration.family=Reuse variable declaration
reuse.variable.declaration.text=Reuse previous variable ''{0}'' declaration
safe.delete.family=Safe delete
@@ -205,7 +205,7 @@ create.property.text=Create Property {0}
add.constructor.parameter.name=Add constructor parameter
remove.suppression.action.name=Remove ''{0}'' suppression
remove.suppression.action.family=Remove suppression
remove.qualifier.action.text=Remove Qualifier
remove.qualifier.action.text=Remove qualifier
fix.argument.family=Fix Arguments
change.new.operator.type.text=Change ''{0}'' to ''new {1}{2}''
change.new.operator.type.family=Change new operator type