Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
62,100
void () { doTest(CONVERT_TO_GRAY_FIX_NAME_PATTERN.formatted(25)); }
testUseGrayConstantFixInJBColorParam
62,101
void () { doTest(CONVERT_TO_GRAY_FIX_NAME_PATTERN.formatted(125)); }
testUseGrayConstantFixWhenNumberConstantsReferenced
62,102
String () { return "java"; }
getFileExtension
62,103
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("Border myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">new Empty<caret>Border(0, 0, 0, 0)</warning>;"), jbuiBorder("Border myBorder = JBUI.Borders.empty();") ); }
testSwingEmptyBorderWithFourZeros
62,104
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("Border myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">new Empty<caret>Border(1, 1, 1, 1)</warning>;"), jbuiBorder("Border myBorder = JBUI.Borders.empty(1);") ); }
testSwingEmptyBorderWithFourTheSameValues
62,105
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("Border myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">new Empty<caret>Border(1, 2, 1, 2)</warning>;"), jbuiBorder("Border myBorder = JBUI.Borders.empty(1, 2);") ); }
testSwingEmptyBorderWithFirstThirdAndSecondFourthValuesTheSame
62,106
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("Border myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">new Empty<caret>Border(1, 0, 0, 0)</warning>;"), jbuiBorder("Border myBorder = JBUI.Borders.emptyTop(1);") ); }
testSwingEmptyBorderWithThreeZerosAndDifferentFirstParam
62,107
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("Border myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">new Empty<caret>Border(0, 1, 0, 0)</warning>;"), jbuiBorder("Border myBorder = JBUI.Borders.emptyLeft(1);") ); }
testSwingEmptyBorderWithThreeZerosAndDifferentSecondParam
62,108
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("Border myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">new Empty<caret>Border(0, 0, 1, 0)</warning>;"), jbuiBorder("Border myBorder = JBUI.Borders.emptyBottom(1);") ); }
testSwingEmptyBorderWithThreeZerosAndDifferentThirdParam
62,109
void () { doTest( CONVERT_TO_JB_UI_BORDERS_EMPTY_FIX_NAME, swingBorder("Border myBorder = <warning descr=\"'EmptyBorder' is not DPI-aware\">new Empty<caret>Border(0, 0, 0, 1)</warning>;"), jbuiBorder("Border myBorder = JBUI.Borders.emptyRight(1);") ); }
testSwingEmptyBorderWithThreeZerosAndDifferentFourthParam
62,110
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(0)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.empty();") ); }
testJBUIBordersEmptyWithZero
62,111
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(0, 0)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.empty();") ); }
testJBUIBordersEmptyWithTwoZeros
62,112
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(1, 1)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.empty(1);") ); }
testJBUIBordersEmptyWithTopAndBottomEqualToLeftAndRight
62,113
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(0, 0, 0, 0)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.empty();") ); }
testJBUIBordersEmptyWithFourZeros
62,114
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(1, 1, 1, 1)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.empty(1);") ); }
testJBUIBordersEmptyWithFourTheSameValues
62,115
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(1, 2, 1, 2)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.empty(1, 2);") ); }
testJBUIBordersEmptyWithFirstThirdAndSecondFourthValuesTheSame
62,116
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(1, 0, 0, 0)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.emptyTop(1);") ); }
testJBUIBordersEmptyWithThreeZerosAndDifferentFirstParam
62,117
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(0, 1, 0, 0)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.emptyLeft(1);") ); }
testJBUIBordersEmptyWithThreeZerosAndDifferentSecondParam
62,118
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(0, 0, 1, 0)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.emptyBottom(1);") ); }
testJBUIBordersEmptyWithThreeZerosAndDifferentThirdParam
62,119
void () { doTest( SIMPLIFY_FIX_NAME, jbuiEmptyBorder( "Border myBorder = <warning descr=\"Empty border creation can be simplified\">JBUI.Border<caret>s.empty(0, 0, 0, 1)</warning>;"), jbuiEmptyBorder("Border myBorder = JBUI.Borders.emptyRight(1);") ); }
testJBUIBordersEmptyWithThreeZerosAndDifferentFourthParam
62,120
void () { doTest( SIMPLIFY_FIX_NAME, java(""" import javax.swing.border.Border; import static com.intellij.util.ui.JBUI.Borders; class TestClass { void any() { Border myBorder = <warning descr="Empty border creation can be simplified">Border<caret>s.empty(0, 0, 0, 0)</warning>; } } """), java(""" import javax.swing.bor...
testJBUIBordersEmptyWithFourZerosAndStaticImportForBorders
62,121
void () { doTest( SIMPLIFY_FIX_NAME, java(""" import javax.swing.border.Border; import static com.intellij.util.ui.JBUI.Borders.empty; class TestClass { void any() { Border myBorder = <warning descr="Empty border creation can be simplified">em<caret>pty(0, 0, 0, 0)</warning>; } } """), java(""" import javax.swing.borde...
testJBUIBordersEmptyWithFourZerosAndStaticImportForBordersEmpty
62,122
String (String code) { return """ import javax.swing.border.Border; import javax.swing.border.EmptyBorder; class TestClass { void any() { <code> } } """.replace("<code>", code); }
swingBorder
62,123
String (String code) { return """ import com.intellij.util.ui.JBUI; import javax.swing.border.Border; import javax.swing.border.EmptyBorder; class TestClass { void any() { <code> } } """.replace("<code>", code); }
jbuiBorder
62,124
String (String code) { return """ import com.intellij.util.ui.JBUI; import javax.swing.border.Border; class TestClass { void any() { <code> } } """.replace("<code>", code); }
jbuiEmptyBorder
62,125
String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/useJBColorFix"; }
getBasePath
62,126
String () { return "java"; }
getFileExtension
62,127
void () { doTest(CONVERT_TO_JB_COLOR_FIX_NAME); }
testUseJBColorConstructorInConstant
62,128
void () { doTest(CONVERT_TO_JB_COLOR_FIX_NAME); }
testUseJBColorConstructorInMethodParam
62,129
void () { doTest(CONVERT_TO_JB_COLOR_FIX_NAME); }
testUseJBColorConstructorInVariable
62,130
void () { doTest(CONVERT_TO_JB_COLOR_CONSTANT_FIX_NAME); }
testUseJBColorConstantInConstant
62,131
void () { doTest(CONVERT_TO_JB_COLOR_CONSTANT_FIX_NAME); }
testUseJBColorConstantInMethodParam
62,132
void () { doTest(CONVERT_TO_JB_COLOR_CONSTANT_FIX_NAME); }
testUseJBColorConstantInVariable
62,133
void () { doTest(CONVERT_TO_JB_COLOR_CONSTANT_FIX_NAME); }
testUseJBColorConstantStaticImportInVariable
62,134
String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/useEqualsFix/pluginId"; }
getBasePath
62,135
String () { return "java"; }
getFileExtension
62,136
void () { doTest("Replace '==' with 'equals()'"); }
testUsePluginIdEquals
62,137
void () { doTest("Replace '!=' with '!equals()'"); }
testUsePluginIdNotEquals
62,138
void () { myFixture.addClass("package com.intellij.codeInspection; public class LocalInspectionTool {} "); myFixture.testHighlighting("LocalInspection.java", "plugin.xml"); IntentionAction intention = myFixture.findSingleIntention("Register inspection"); myFixture.launchAction(intention); myFixture.checkResultByFile("p...
testCreateLocalInspectionMapping
62,139
void () { myFixture.addClass("package com.intellij.codeInspection; public class GlobalInspectionTool {} "); myFixture.testHighlighting("GlobalInspection.java", "plugin.xml"); IntentionAction intention = myFixture.findSingleIntention("Register inspection"); myFixture.launchAction(intention); myFixture.checkResultByFile(...
testCreateGlobalInspectionMapping
62,140
void () { myFixture.testHighlighting("MyExtensionPoint.java", "extensionPoint.xml", "ExtensionPoint.java"); IntentionAction intention = myFixture.findSingleIntention("Register extension"); myFixture.launchAction(intention); myFixture.checkResultByFile("extensionPoint.xml", "extensionPoint_after.xml", true); }
testCreateExtensionPointMapping
62,141
void () { myFixture.addClass("package com.intellij.lang; public class LanguageExtensionPoint {}"); myFixture.testHighlighting("MyLanguageExtensionPoint.java", "MyLanguageExtensionPointInterface.java", "extensionPointWithKnownRequiredAttribute.xml"); IntentionAction intention = myFixture.findSingleIntention("Register ex...
testCreateExtensionPointMappingWithKnownRequiredAttribute
62,142
void () { myFixture.addClass("package com.intellij.lang; public class LanguageExtensionPoint {}"); myFixture.testHighlighting("MyLanguageExtensionPoint.java", "MyLanguageExtensionPointInterface.java", "extensionPointWithKnownRequiredAttributeAndTag.xml"); IntentionAction intention = myFixture.findSingleIntention("Regis...
testCreateExtensionPointMappingWithKnownRequiredAttributeAndTag
62,143
void () { myFixture.testHighlighting("MyExtensionPoint.java", "extensionPointNoExtensionsTag.xml", "ExtensionPoint.java"); IntentionAction intention = myFixture.findSingleIntention("Register extension"); myFixture.launchAction(intention); myFixture.checkResultByFile("extensionPointNoExtensionsTag.xml", "extensionPointN...
testCreateExtensionPointMappingNoExtensionsTag
62,144
void () { myFixture.testHighlighting("MyExtensionPoint.java", "extensionPointNoPluginId.xml", "ExtensionPoint.java"); IntentionAction intention = myFixture.findSingleIntention("Register extension"); myFixture.launchAction(intention); myFixture.checkResultByFile("extensionPointNoPluginId.xml", "extensionPointNoPluginId_...
testCreateExtensionPointMappingNoPluginId
62,145
void () { myFixture.testHighlighting("MyExtensionPoint.java", "extensionPointQualifiedName.xml", "ExtensionPoint.java"); IntentionAction intention = myFixture.findSingleIntention("Register extension"); myFixture.launchAction(intention); myFixture.checkResultByFile("extensionPointQualifiedName.xml", "extensionPointQuali...
testCreateExtensionPointQualifiedNameMapping
62,146
String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/registerExtensionFix"; }
getBasePath
62,147
String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/useEqualsFix/virtualFile"; }
getBasePath
62,148
String () { return "java"; }
getFileExtension
62,149
void () { doTest("Replace '==' with 'equals()'"); }
testUseVirtualFileEquals
62,150
void () { doTest("Replace '!=' with '!equals()'"); }
testUseVirtualFileNotEquals
62,151
String () { return "java"; }
getFileExtension
62,152
void () { doTest( CONVERT_TO_JB_UI_INSETS_EMPTY_FIX_NAME, awtInsets("Insets myInsets = <warning descr=\"'Insets' is not DPI-aware\">new In<caret>sets(0, 0, 0, 0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.emptyInsets();") ); }
testAwtInsetsWithFourZeros
62,153
void () { doTest( CONVERT_TO_JB_UI_INSETS_EMPTY_FIX_NAME, awtInsets("Insets myInsets = <warning descr=\"'Insets' is not DPI-aware\">new In<caret>sets(1, 1, 1, 1)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insets(1);") ); }
testAwtInsetsWithFourTheSameValues
62,154
void () { doTest( CONVERT_TO_JB_UI_INSETS_EMPTY_FIX_NAME, awtInsets("Insets myInsets = <warning descr=\"'Insets' is not DPI-aware\">new In<caret>sets(1, 2, 1, 2)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insets(1, 2);") ); }
testAwtInsetsWithFirstThirdAndSecondFourthValuesTheSame
62,155
void () { doTest( CONVERT_TO_JB_UI_INSETS_EMPTY_FIX_NAME, awtInsets("Insets myInsets = <warning descr=\"'Insets' is not DPI-aware\">new In<caret>sets(1, 0, 0, 0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insetsTop(1);") ); }
testAwtInsetsWithThreeZerosAndDifferentFirstParam
62,156
void () { doTest( CONVERT_TO_JB_UI_INSETS_EMPTY_FIX_NAME, awtInsets("Insets myInsets = <warning descr=\"'Insets' is not DPI-aware\">new In<caret>sets(0, 1, 0, 0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insetsLeft(1);") ); }
testAwtInsetsWithThreeZerosAndDifferentSecondParam
62,157
void () { doTest( CONVERT_TO_JB_UI_INSETS_EMPTY_FIX_NAME, awtInsets("Insets myInsets = <warning descr=\"'Insets' is not DPI-aware\">new In<caret>sets(0, 0, 1, 0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insetsBottom(1);") ); }
testAwtInsetsWithThreeZerosAndDifferentThirdParam
62,158
void () { doTest( CONVERT_TO_JB_UI_INSETS_EMPTY_FIX_NAME, awtInsets("Insets myInsets = <warning descr=\"'Insets' is not DPI-aware\">new In<caret>sets(0, 0, 0, 1)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insetsRight(1);") ); }
testAwtInsetsWithThreeZerosAndDifferentFourthParam
62,159
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.emptyInsets();") ); }
testJBUIInsetsEmptyWithZero
62,160
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(0, 0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.emptyInsets();") ); }
testJBUIInsetsEmptyWithTwoZeros
62,161
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(1, 1)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insets(1);") ); }
testJBUIInsetsEmptyWithTopAndBottomEqualToLeftAndRight
62,162
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(0, 0, 0, 0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.emptyInsets();") ); }
testJBUIInsetsEmptyWithFourZeros
62,163
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(1, 1, 1, 1)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insets(1);") ); }
testJBUIInsetsEmptyWithFourTheSameValues
62,164
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(1, 2, 1, 2)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insets(1, 2);") ); }
testJBUIInsetsEmptyWithFirstThirdAndSecondFourthValuesTheSame
62,165
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(1, 0, 0, 0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insetsTop(1);") ); }
testJBUIInsetsEmptyWithThreeZerosAndDifferentFirstParam
62,166
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(0, 1, 0, 0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insetsLeft(1);") ); }
testJBUIInsetsEmptyWithThreeZerosAndDifferentSecondParam
62,167
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(0, 0, 1, 0)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insetsBottom(1);") ); }
testJBUIInsetsEmptyWithThreeZerosAndDifferentThirdParam
62,168
void () { doTest( SIMPLIFY_FIX_NAME, jbuiInsets("Insets myInsets = <warning descr=\"Insets creation can be simplified\">JBUI.in<caret>sets(0, 0, 0, 1)</warning>;"), jbuiInsets("Insets myInsets = JBUI.insetsRight(1);") ); }
testJBUIInsetsEmptyWithThreeZerosAndDifferentFourthParam
62,169
void () { doTest( SIMPLIFY_FIX_NAME, java(""" import java.awt.Insets; import static com.intellij.util.ui.JBUI.insets; class TestClass { void any() { Insets myInsets = <warning descr="Insets creation can be simplified">in<caret>sets(0, 0, 0, 0)</warning>; } } """), java(""" import com.intellij.util.ui.JBUI; import java....
testJBUIInsetsEmptyWithFourZerosAndStaticImportForInsets
62,170
String (String code) { return """ import java.awt.Insets; class TestClass { void any() { <code> } } """.replace("<code>", code); }
awtInsets
62,171
String (String code) { return """ import com.intellij.util.ui.JBUI; import java.awt.Insets; class TestClass { void any() { <code> } } """.replace("<code>", code); }
jbuiInsets
62,172
String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/unsafeReturnStatementVisitorFix"; }
getBasePath
62,173
String () { return "java"; }
getFileExtension
62,174
void () { doTest(INSERT_LAMBDA_AND_CLASS_VISIT_METHODS); }
testInsertVisitLambdaExpressionAndVisitClassMethods
62,175
void () { doTest(INSERT_LAMBDA_VISIT_METHOD); }
testInsertVisitLambdaExpressionMethod
62,176
void () { doTest(INSERT_CLASS_VISIT_METHOD); }
testInsertVisitClassMethod
62,177
String () { return DevkitJavaTestsUtil.TESTDATA_PATH + "inspections/useEqualsFix/psiPrimitiveType"; }
getBasePath
62,178
String () { return "java"; }
getFileExtension
62,179
void () { doTest("Replace '==' with 'equals()'"); }
testUsePsiPrimitiveTypeEquals
62,180
void () { doTest("Replace '!=' with '!equals()'"); }
testUsePsiPrimitiveTypeNotEquals
62,181
String () { return DevkitI18nTestUtil.TESTDATA_PATH + "inspections/pluginXmlCapitalization"; }
getBasePath
62,182
void () { myFixture.testHighlighting("pluginXmlPluginNameDomElementFix.xml"); IntentionAction capitalizeIntention = myFixture.findSingleIntention("Properly capitalize"); myFixture.checkPreviewAndLaunchAction(capitalizeIntention); myFixture.checkResultByFile("pluginXmlPluginNameDomElementFix_after.xml"); }
testPluginNameDomElementFix
62,183
void () { myFixture.testHighlighting("pluginXmlSeparatorTextDomElementFix.xml"); IntentionAction capitalizeIntention = myFixture.findSingleIntention("Properly capitalize"); myFixture.checkPreviewAndLaunchAction(capitalizeIntention); myFixture.checkResultByFile("pluginXmlSeparatorTextDomElementFix_after.xml"); }
testSeparatorTextDomElementFix
62,184
void () { myFixture.testHighlighting("pluginXmlActionDescriptionPropertyFix.xml", "ActionDescriptionFixBundle.properties"); IntentionAction capitalizeIntention = myFixture.findSingleIntention("Properly capitalize 'lower case description'"); String customPreviewText = myFixture.getIntentionPreviewText(capitalizeIntentio...
testActionDescriptionPropertyFix
62,185
void () { myFixture.testHighlighting("pluginXmlCapitalization_ActionPluginName.xml", "MyBundle.properties", "MyAction.java", "AnotherBundle.properties"); }
testActionPluginName
62,186
void () { myFixture.testHighlighting("pluginXmlCapitalization_CorePluginId.xml", "messages/ActionsBundle.properties"); }
testActionCorePluginId
62,187
void () { PsiUtil.markAsIdeaProject(getProject(), true); try { myFixture.testHighlighting("pluginXmlCapitalization_NoPluginIdInIdeaProject.xml", "messages/ActionsBundle.properties"); } finally { PsiUtil.markAsIdeaProject(getProject(), false); } }
testActionNoPluginIdInIdeaProject
62,188
void () { myFixture.addClass("package com.intellij.util.xmlb.annotations; public @interface Attribute { String value() default \"\";}"); myFixture.addClass("package com.intellij.util.xmlb.annotations; public @interface Tag { String value() default \"\";}"); myFixture.addClass("package org.jetbrains.annotations; public ...
testExtensionPoint
62,189
String () { return DevkitI18nTestUtil.TESTDATA_PATH + "inspections/pluginXmlI18n"; }
getBasePath
62,190
void (JavaModuleFixtureBuilder moduleBuilder) { moduleBuilder.addLibrary("core-api", PathUtil.getJarPathForClass(LanguageExtensionPoint.class)); moduleBuilder.addLibrary("analysis-api", PathUtil.getJarPathForClass(LocalInspectionEP.class)); moduleBuilder.addLibrary("platform-resources", Paths.get(PathUtil.getJarPathFor...
tuneFixture
62,191
void () { setupPlatformLibraries202(); myFixture.addClass("package foo.bar; public class BarAction extends com.intellij.openapi.actionSystem.AnAction { }"); myFixture.testHighlighting("PluginXmlI18nInspection.xml"); }
testHighlighting
62,192
void () { setupPlatformLibraries202(); myFixture.addClass("package foo.bar; public class Inspection1 extends com.intellij.codeInspection.LocalInspectionTool { }"); myFixture.addFileToProject("messages/FooBundle.properties", ""); myFixture.configureByText("plugin.xml", """ <idea-plugin> <resource-bundle>messages.FooBund...
testInspectionFix
62,193
void () { String platformApiJar = PathUtil.getJarPathForClass(JBList.class); File file = new File(platformApiJar); PsiTestUtil.addLibrary(getModule(), "idea:202.123", file.getParent(), file.getName()); }
setupPlatformLibraries202
62,194
void (@NotNull DomElement element, @NotNull DomElementAnnotationHolder holder, @NotNull DomHighlightingHelper helper) { if (!isAllowed(holder)) return; if (element instanceof ActionOrGroup) { highlightActionOrGroup(holder, (ActionOrGroup)element); } else if (element instanceof Separator) { highlightSeparator(holder, (S...
checkDomElement
62,195
void (DomElementAnnotationHolder holder, Extension extension) { ExtensionPoint extensionPoint = extension.getExtensionPoint(); if (extensionPoint == null) return; final PsiClass beanClass = extensionPoint.getBeanClass().getValue(); if (beanClass == null) return; String epName = extensionPoint.getEffectiveQualifiedName(...
highlightExtension
62,196
void (DomElementAnnotationHolder holder, DomElement element, @NonNls String attributeName, @Nullable LocalQuickFix fix) { highlightNonLocalizableElement(holder, DevKitDomUtil.getAttribute(element, attributeName), attributeName, fix); }
checkNonLocalizableAttribute
62,197
void (DomElementAnnotationHolder holder, DomElement element, String tagName, @Nullable LocalQuickFix quickFix) { highlightNonLocalizableElement(holder, DevKitDomUtil.getTag(element, tagName), tagName, quickFix); }
checkNonLocalizableTag
62,198
void (DomElementAnnotationHolder holder, GenericDomValue<?> valueElement, @NonNls String valueElementName, @Nullable LocalQuickFix fix) { if (valueElement != null && valueElement.getStringValue() != null) { holder.createProblem(valueElement, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, DevKitI18nBundle.message("inspe...
highlightNonLocalizableElement
62,199
void (DomElementAnnotationHolder holder, Separator separator) { if (!DomUtil.hasXml(separator.getText())) return; final BuildNumber buildNumber = PluginPlatformInfo.forDomElement(separator).getSinceBuildNumber(); if (buildNumber != null && buildNumber.getBaselineVersion() >= 202) { holder.createProblem(separator, Probl...
highlightSeparator