From 94d10c7c6326abab1f124890f345e7cd3a3803dd Mon Sep 17 00:00:00 2001 From: Dmitry Gridin Date: Tue, 25 Feb 2020 15:37:56 +0700 Subject: [PATCH] i18n: move to KotlinBundle --- .../kotlin/idea/KotlinBundle.properties | 533 ++++++++++++++++-- .../org/jetbrains/kotlin/idea/KotlinBundle.kt | 17 +- .../KotlinConfigurationBundle.properties | 46 -- .../messages/KotlinCopyBundle.properties | 6 - .../messages/KotlinEditorBundle.properties | 4 - .../messages/KotlinFacetBundle.properties | 14 - .../messages/KotlinFiltersBundle.properties | 3 - .../KotlinFindUsagesBundle.properties | 51 -- .../messages/KotlinFormatterBundle.properties | 34 -- .../messages/KotlinFrameworkBundle.properties | 1 - .../messages/KotlinHierarchyBundle.properties | 2 - .../KotlinHighlighterBundle.properties | 88 --- .../messages/KotlinImportsBundle.properties | 5 - .../messages/KotlinInternalBundle.properties | 4 - .../KotlinRefactoringBundle.properties | 174 ------ .../messages/KotlinReporterBundle.properties | 5 - .../messages/KotlinRootsBundle.properties | 1 - .../messages/KotlinScriptBundle.properties | 6 - .../messages/KotlinSlicerBundle.properties | 5 - .../KotlinTestIntegrationBundle.properties | 5 - .../messages/KotlinUpdateBundle.properties | 6 - .../messages/KotlinVersionBundle.properties | 3 - .../KotlinCompilerConfigurableTab.java | 36 +- .../KotlinCompilerConfigurableTab.java.192 | 30 +- .../configuration/ExperimentalFeatures.kt | 4 +- .../KotlinConfigurationBundle.kt | 18 - .../KotlinLanguageConfiguration.kt | 25 +- .../outdatedBundledCompilerNotification.kt | 9 +- .../ui/KotlinLanguageConfigurationForm.java | 6 +- .../configuration/ui/NotPropertyListPanel.kt | 12 +- .../configuration/ui/migrationNotification.kt | 22 +- .../copy/ConvertJavaCopyPasteProcessor.kt | 3 +- .../idea/conversion/copy/CopiedKotlinCode.kt | 3 +- .../idea/conversion/copy/KotlinCopyBundle.kt | 18 - .../copy/KotlinPasteFromJavaDialog.java | 6 +- .../copy/PlainTextPasteImportResolver.kt | 5 +- .../kotlin/idea/editor/KotlinEditorBundle.kt | 18 - .../KotlinEditorOptionsConfigurable.java | 9 +- .../kotlin/idea/facet/KotlinFacetBundle.kt | 18 - .../facet/KotlinFacetCompilerPluginsTab.kt | 9 +- .../idea/facet/KotlinFacetEditorGeneralTab.kt | 27 +- .../filters/InlineFunctionHyperLinkInfo.kt | 7 +- .../idea/filters/KotlinFiltersBundle.kt | 18 - .../KotlinElementDescriptionProvider.kt | 45 +- .../idea/findUsages/KotlinFindUsagesBundle.kt | 21 - .../KotlinFindUsagesHandlerFactory.kt | 5 +- .../findUsages/KotlinFindUsagesProvider.kt | 19 +- .../findUsages/KotlinUsageTypeProvider.kt | 47 +- .../findUsages/KotlinUsageTypeProvider.kt.201 | 47 +- .../dialogs/KotlinFindClassUsagesDialog.java | 5 +- .../KotlinFindFunctionUsagesDialog.java | 3 +- .../KotlinFindPropertyUsagesDialog.java | 9 +- .../handlers/KotlinFindMemberUsagesHandler.kt | 5 +- .../idea/formatter/ImportSettingsPanel.kt | 18 +- .../idea/formatter/KotlinFormatterBundle.kt | 18 - ...KotlinLanguageCodeStyleSettingsProvider.kt | 63 ++- .../idea/formatter/KotlinSaveStylePanel.kt | 5 +- .../idea/framework/KotlinFrameworkBundle.kt | 18 - .../kotlin/idea/framework/KotlinSdkType.kt | 3 +- .../idea/framework/KotlinSdkType.kt.192 | 3 +- .../idea/hierarchy/KotlinHierarchyBundle.kt | 18 - .../KotlinCallHierarchyNodeDescriptor.kt | 4 +- .../KotlinOverrideHierarchyNodeDescriptor.kt | 4 +- .../highlighter/KotlinColorSettingsPage.kt | 95 ++-- .../highlighter/KotlinHighlighterBundle.kt | 18 - .../KotlinRecursiveCallLineMarkerProvider.kt | 3 +- .../KotlinSuspendCallLineMarkerProvider.kt | 5 +- .../KotlinTestRunLineMarkerContributor.kt | 3 +- .../dsl/DslHighlighterExtension.kt | 6 +- .../markers/DslHighlightingMarker.kt | 4 +- .../highlighter/markers/HasActualMarker.kt | 10 +- .../highlighter/markers/HasExpectedMarker.kt | 8 +- .../markers/KotlinLineMarkerOptions.kt | 16 +- .../markers/KotlinLineMarkerProvider.kt | 20 +- .../markers/OverridenFunctionMarker.kt | 18 +- .../markers/OverridenPropertyMarker.kt | 4 +- .../markers/SuperDeclarationMarker.kt | 13 +- .../idea/imports/KotlinImportOptimizer.kt | 15 +- .../idea/imports/KotlinImportsBundle.kt | 18 - .../idea/internal/KotlinDecompilerAdapter.kt | 9 +- .../idea/internal/KotlinInternalBundle.kt | 18 - .../refactoring/KotlinRefactoringBundle.kt | 18 - .../changeSignature/KotlinChangeSignature.kt | 8 +- .../KotlinChangeSignatureHandler.kt | 13 +- .../KotlinChangeSignatureProcessor.kt | 6 +- .../KotlinChangeSignatureUsageProcessor.kt | 29 +- .../changeSignature/ui/KotlinCallerChooser.kt | 8 +- .../ui/KotlinChangePropertySignatureDialog.kt | 27 +- .../ui/KotlinChangeSignatureDialog.kt | 24 +- .../ui/KotlinChangeSignatureDialog.kt.192 | 22 +- .../ui/KotlinFunctionParameterTableModel.java | 4 +- ...PrimaryConstructorParameterTableModel.java | 4 +- .../copy/CopyKotlinDeclarationDialog.kt | 4 +- .../copy/CopyKotlinDeclarationsHandler.kt | 15 +- .../MoveDeclarationsIntentionAction.kt | 7 +- .../idea/refactoring/elementSelectionUtils.kt | 6 +- .../inline/AbstractKotlinInlineDialog.kt | 13 +- .../inline/KotlinInlineCallableProcessor.kt | 20 +- .../inline/KotlinInlineFunctionHandler.kt | 6 +- .../inline/KotlinInlineTypeAliasHandler.kt | 6 +- .../inline/KotlinInlineValDialog.kt | 4 +- .../inline/KotlinInlineValHandler.kt | 23 +- .../idea/refactoring/inline/inlineUtils.kt | 16 +- .../extractClass/ExtractSuperRefactoring.kt | 5 +- .../KotlinExtractInterfaceHandler.kt | 6 +- .../KotlinExtractSuperHandlerBase.kt | 9 +- .../KotlinExtractSuperclassHandler.kt | 6 +- .../ui/KotlinExtractSuperDialogBase.kt | 8 +- .../ExtractKotlinFunctionHandler.kt | 6 +- .../ui/ExtractFunctionParameterTablePanel.kt | 6 +- .../ui/KotlinExtractFunctionDialog.java | 7 +- .../ExtractableCodeDescriptor.kt | 14 +- .../extractionEngine/ExtractionEngine.kt | 4 +- .../extractionEngine/duplicateUtil.kt | 7 +- .../extractableAnalysisUtil.kt | 4 +- .../extractionEngine/extractorUtil.kt | 8 +- .../KotlinIntroduceImportAliasHandler.kt | 4 +- .../KotlinInplaceParameterIntroducer.kt | 7 +- .../KotlinIntroduceParameterDialog.kt | 30 +- .../KotlinIntroduceParameterHandler.kt | 21 +- .../KotlinInplacePropertyIntroducer.kt | 7 +- .../KotlinIntroducePropertyHandler.kt | 8 +- .../IntroduceTypeAliasHandler.kt | 11 +- .../introduceTypeAliasImpl.kt | 14 +- .../ui/KotlinIntroduceTypeAliasDialog.java | 4 +- .../KotlinIntroduceTypeParameterHandler.kt | 12 +- .../refactoring/introduce/introduceUtil.kt | 8 +- .../KotlinInplaceVariableIntroducer.java | 6 +- .../KotlinIntroduceVariableHandler.kt | 23 +- .../KotlinVariableInplaceIntroducer.kt | 6 +- .../introduceVariableUtils.kt | 6 +- .../ui/AbstractParameterTablePanel.kt | 4 +- .../ui/MoveKotlinTopLevelDeclarationsModel.kt | 6 +- .../idea/refactoring/rename/renameUtil.kt | 4 +- .../idea/reporter/KotlinReportSubmitter.kt | 11 +- .../idea/reporter/KotlinReporterBundle.kt | 18 - ...KotlinNonJvmSourceRootConverterProvider.kt | 3 +- .../kotlin/idea/roots/KotlinRootsBundle.kt | 18 - .../kotlin/idea/script/KotlinScriptBundle.kt | 18 - .../KotlinScriptingSettingsConfigurable.java | 4 +- .../MultipleScriptDefinitionsChecker.kt | 13 +- .../scriptsTemplatesFromDependencies.kt | 3 +- .../slicer/KotlinSliceDereferenceUsage.kt | 3 +- .../slicer/KotlinSliceDereferenceUsage.kt.191 | 3 +- .../slicer/KotlinSliceUsageCellRenderer.kt | 10 +- .../kotlin/idea/slicer/KotlinSlicerBundle.kt | 18 - .../KotlinUsageContextDataFlowPanelBase.kt | 5 +- ...KotlinUsageContextDataFlowPanelBase.kt.201 | 5 +- .../KotlinCreateTestIntention.kt | 11 +- .../KotlinTestIntegrationBundle.kt | 18 - .../update/GooglePluginUpdateVerifier.kt.as35 | 14 +- .../update/GooglePluginUpdateVerifier.kt.as36 | 14 +- .../update/GooglePluginUpdateVerifier.kt.as40 | 14 +- .../kotlin/idea/update/KotlinUpdateBundle.kt | 18 - .../idea/versions/KotlinRuntimeLibraryUtil.kt | 13 +- .../idea/versions/KotlinVersionBundle.kt | 18 - 156 files changed, 1195 insertions(+), 1570 deletions(-) delete mode 100644 idea/resources/messages/KotlinConfigurationBundle.properties delete mode 100644 idea/resources/messages/KotlinCopyBundle.properties delete mode 100644 idea/resources/messages/KotlinEditorBundle.properties delete mode 100644 idea/resources/messages/KotlinFacetBundle.properties delete mode 100644 idea/resources/messages/KotlinFiltersBundle.properties delete mode 100644 idea/resources/messages/KotlinFindUsagesBundle.properties delete mode 100644 idea/resources/messages/KotlinFormatterBundle.properties delete mode 100644 idea/resources/messages/KotlinFrameworkBundle.properties delete mode 100644 idea/resources/messages/KotlinHierarchyBundle.properties delete mode 100644 idea/resources/messages/KotlinHighlighterBundle.properties delete mode 100644 idea/resources/messages/KotlinImportsBundle.properties delete mode 100644 idea/resources/messages/KotlinInternalBundle.properties delete mode 100644 idea/resources/messages/KotlinRefactoringBundle.properties delete mode 100644 idea/resources/messages/KotlinReporterBundle.properties delete mode 100644 idea/resources/messages/KotlinRootsBundle.properties delete mode 100644 idea/resources/messages/KotlinScriptBundle.properties delete mode 100644 idea/resources/messages/KotlinSlicerBundle.properties delete mode 100644 idea/resources/messages/KotlinTestIntegrationBundle.properties delete mode 100644 idea/resources/messages/KotlinUpdateBundle.properties delete mode 100644 idea/resources/messages/KotlinVersionBundle.properties delete mode 100644 idea/src/org/jetbrains/kotlin/idea/configuration/KotlinConfigurationBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/conversion/copy/KotlinCopyBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/editor/KotlinEditorBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/filters/KotlinFiltersBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/formatter/KotlinFormatterBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/framework/KotlinFrameworkBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/hierarchy/KotlinHierarchyBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinHighlighterBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/imports/KotlinImportsBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/internal/KotlinInternalBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/refactoring/KotlinRefactoringBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/reporter/KotlinReporterBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/roots/KotlinRootsBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/script/KotlinScriptBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/slicer/KotlinSlicerBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/testIntegration/KotlinTestIntegrationBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/update/KotlinUpdateBundle.kt delete mode 100644 idea/src/org/jetbrains/kotlin/idea/versions/KotlinVersionBundle.kt diff --git a/idea/idea-analysis/resources/org/jetbrains/kotlin/idea/KotlinBundle.properties b/idea/idea-analysis/resources/org/jetbrains/kotlin/idea/KotlinBundle.properties index 0439efe028a..155eb3bea57 100644 --- a/idea/idea-analysis/resources/org/jetbrains/kotlin/idea/KotlinBundle.properties +++ b/idea/idea-analysis/resources/org/jetbrains/kotlin/idea/KotlinBundle.properties @@ -180,53 +180,6 @@ fix.unused.receiver.parameter.remove=Remove redundant receiver parameter inspection.migration.title=Code Migration inspection.migration.profile.name=Migration -options.color.attribute.descriptor.annotation=Annotation//Annotation name -description.text.annotation.attribute.name=Annotation//Annotation attribute name -options.color.attribute.descriptor.builtin.annotation=Keywords//Modifier -options.color.attribute.descriptor.builtin.keyword.val=Keywords//'val' -options.color.attribute.descriptor.builtin.keyword.var=Keywords//'var' -options.color.attribute.descriptor.builtin.keyword=Keywords//Keyword -options.color.attribute.descriptor.string.escape=String//Escape in string and template braces -options.color.attribute.descriptor.closure.braces=Braces and Operators//Lambda expression braces and arrow -options.color.attribute.descriptor.safe.access=Braces and Operators//Safe access dot -options.color.attribute.descriptor.quest=Braces and Operators//Type nullability marker -options.color.attribute.descriptor.exclexcl=Braces and Operators//Non-null assertion -options.color.attribute.descriptor.arrow=Braces and Operators//Arrow -options.color.attribute.descriptor.colon=Braces and Operators//Colon -options.color.attribute.descriptor.double.colon=Braces and Operators//Double colon -options.color.attribute.descriptor.kdoc.comment=Comments//KDoc//KDoc comment -options.color.attribute.descriptor.kdoc.tag=Comments//KDoc//KDoc tag -options.color.attribute.descriptor.kdoc.value=Comments//KDoc//Link in KDoc tag -options.color.attribute.descriptor.object=Classes and Interfaces//Object -options.color.attribute.descriptor.enumEntry=Classes and Interfaces//Enum entry -options.color.attribute.descriptor.typeAlias=Classes and Interfaces//Type alias -options.color.attribute.descriptor.var=Properties and Variables//Var (mutable variable, parameter or property) -options.color.attribute.descriptor.local.variable=Properties and Variables//Local variable or value -options.color.attribute.descriptor.captured.variable=Properties and Variables//Variables and values captured in a closure -options.color.attribute.descriptor.instance.property=Properties and Variables//Instance property -options.color.attribute.descriptor.instance.property.custom.property.declaration=Properties and Variables//Instance property with custom property declarations -options.color.attribute.descriptor.package.property=Properties and Variables//Package-level property -options.color.attribute.descriptor.package.property.custom.property.declaration=Properties and Variables//Package-level property with custom property declarations -options.color.attribute.descriptor.field=Properties and Variables//Backing field variable -options.color.attribute.descriptor.extension.property=Properties and Variables//Extension property -options.color.attribute.descriptor.synthetic.extension.property=Properties and Variables//Synthetic extension property -options.color.attribute.descriptor.dynamic.property=Properties and Variables//Dynamic property -options.color.attribute.descriptor.android.extensions.property=Properties and Variables//Android Extensions synthetic properties -options.color.attribute.descriptor.it=Parameters//Lambda expression default parameter -options.color.attribute.descriptor.fun=Functions//Function declaration -options.color.attribute.descriptor.fun.call=Functions//Function call -options.color.attribute.descriptor.dynamic.fun.call=Functions//Dynamic function call -options.color.attribute.descriptor.package.fun.call=Functions//Package-level function call -options.color.attribute.descriptor.suspend.fun.call=Functions//Suspend function call -options.color.attribute.descriptor.extension.fun.call=Functions//Extension function call -options.color.attribute.descriptor.constructor.call=Functions//Constructor call -options.color.attribute.descriptor.variable.as.function.call=Properties and Variables//Variable as function call -options.color.attribute.descriptor.variable.as.function.like.call=Properties and Variables//Variable as function-like call -options.color.attribute.descriptor.smart.cast=Smart-casts//Smart-cast value -options.color.attribute.descriptor.smart.constant=Smart-casts//Smart constant -options.color.attribute.descriptor.smart.cast.receiver=Smart-casts//Smart-cast implicit receiver -options.color.attribute.descriptor.label=Label - fix.create.from.usage.family=Create from usage fix.create.from.usage.local.variable=Create local variable ''{0}'' @@ -466,4 +419,488 @@ presentation.text.for.receiver.in.container.paren=(for {0} in {1}) presentation.text.object.in.container=object in {0} project.view.class.initializer=class initializer ->>>>>>> i18n: Internationalize part of the 'idea' module + +copy.text.adding.imports=Adding imports ... +copy.text.clipboard.content.seems.to.be.java.code.do.you.want.to.convert.it.to.kotlin=Clipboard content seems to be Java code. Do you want to convert it to Kotlin? +copy.text.convert.java.to.kotlin=Convert Java to Kotlin +copy.text.copied.kotlin.code=Copied kotlin code +copy.text.resolving.references=Resolving references ... +copy.title.convert.code.from.java=Convert Code From Java + +editor.checkbox.title.auto.add.val.keyword.to.data.inline.class.constructor.parameters=Auto add val keyword to data/inline class constructor parameters +editor.checkbox.title.convert.pasted.java.code.to.kotlin=Convert pasted Java code to Kotlin +editor.checkbox.title.don.t.show.java.to.kotlin.conversion.dialog.on.paste=Don''t show Java to Kotlin conversion dialog on paste +editor.title.kotlin=Kotlin + +facet.checkbox.text.use.project.settings=Use project settings +facet.column.name.options=Options +facet.column.name.plugin=Plugin +facet.error.text.at.least.one.target.platform.should.be.selected=At least one target platform should be selected +facet.label.text.selected.target.platforms=Selected target platforms: +facet.label.text.target.platform=Target platform: +facet.label.text.the.project.is.imported.from.external.build.system.and.could.not.be.edited=The project is imported from external build system and could not be edited +facet.link.text.edit.project.settings=Edit project settings +facet.name.compiler.plugins=Compiler Plugins +facet.name.general=General +facet.text.following.arguments.are.redundant=Following arguments are redundant: {0} +facet.text.following.arguments.override.facet.settings=Following arguments override facet settings: {0} +facet.text.following.options.are.not.correct=Following options are not correct: +facet.text.multiplatform=Multiplatform + +filters.text.inline.function.body=inline function body +filters.text.inline.function.call.site=inline function call site +filters.title.navigate.to=Navigate to + +find.usages.class=class +find.usages.companion.object=companion object +find.usages.constructor=constructor +find.usages.facade.class=facade class +find.usages.for.property={0} for property +find.usages.function=function +find.usages.getter=getter +find.usages.import.alias=import alias +find.usages.interface=interface +find.usages.label=label +find.usages.lambda=lambda +find.usages.object=object +find.usages.parameter=parameter +find.usages.property.accessor=property accessor +find.usages.property=property +find.usages.setter=setter +find.usages.type.alias=type alias +find.usages.type.parameter=type parameter +find.usages.variable=variable +find.usages.checkbox.name.expected.classes=Expected classes +find.usages.class.name.anonymous=Anonymous +find.usages.checkbox.name.expected.functions=Expected functions +find.usages.text.find.usages.for.data.class.components.and.destruction.declarations=

Find usages for data class components and destruction declarations
could be disabled once or disabled for a project.

+find.usages.tool.tip.text.disable.search.for.data.class.components.and.destruction.declarations.project.wide.setting=Disable search for data class components and destruction declarations. (Project wide setting) +find.usages.checkbox.text.fast.data.class.component.search=Fast data class component search +find.usages.checkbox.name.expected.properties=Expected properties +find.usages.action.text.find.usages.of=find usages of +find.usages.type.named.argument=Named argument +find.usages.type.type.alias=Type alias +find.usages.type.callable.reference = Callable reference +find.usages.type.type.constraint = Type constraint +find.usages.type.value.parameter.type = Parameter type +find.usages.type.nonLocal.property.type = Class/object property type +find.usages.type.function.return.type = Function return types +find.usages.type.superType = Supertype +find.usages.type.is = Target type of ''is'' operation +find.usages.type.class.object = Nested class/object +find.usages.type.companion.object = Companion object +find.usages.type.function.call = Function call +find.usages.type.implicit.get = Implicit ''get'' +find.usages.type.implicit.set = Implicit ''set'' +find.usages.type.implicit.invoke = Implicit 'invoke' +find.usages.type.implicit.iteration = Implicit iteration +find.usages.type.property.delegation = Property delegation +find.usages.type.extension.receiver.type = Extension receiver type +find.usages.type.super.type.qualifier = Super type qualifier +find.usages.type.receiver = Receiver +find.usages.type.delegate = Delegate +find.usages.type.packageDirective = Package directive +find.usages.type.packageMemberAccess = Package member access + +formatter.button.text.use.import.with.when.at.least=Use import with ''*'' when at least +formatter.button.text.use.import.with=Use import with ''*'' +formatter.button.text.use.single.name.import=Use single name import +formatter.checkbox.text.insert.imports.for.nested.classes=Insert imports for nested classes +formatter.text.names.used=\ names used +formatter.text.use.defaults.from=Use defaults from: +formatter.title.after.colon.before.declaration.type=After colon, before declaration type +formatter.title.after.colon.in.new.type.definition=After colon in new type definition +formatter.title.align.when.branches.in.columns=Align ''when'' branches in columns +formatter.title.around.arrow.in.function.types=Around arrow in function types +formatter.title.around.arrow.in=Around arrow in "when" clause +formatter.title.around.when.branches.with=Around ''when'' branches with {} +formatter.title.before.colon.after.declaration.name=Before colon, after declaration name +formatter.title.before.colon.in.new.type.definition=Before colon in new type definition +formatter.title.before.lambda.arrow=Before lambda arrow +formatter.title.chained.function.calls=Chained function calls +formatter.title.elvis.expressions=Elvis expressions +formatter.title.expression.body.functions=Expression body functions +formatter.title.function.annotations=Function annotations +formatter.title.function.call.arguments=Function call arguments +formatter.title.function.declaration.parameters=Function declaration parameters +formatter.title.function.parentheses=Function parentheses +formatter.title.in.simple.one.line.methods=In simple one line methods +formatter.title.java.statics.and.enum.members=Java Statics and Enum Members +formatter.title.load.save=Load/Save +formatter.title.other=Other +formatter.title.property.annotations=Property annotations +formatter.title.put.left.brace.on.new.line=Put left brace on new line +formatter.title.range.operator=Range operator (..) +formatter.title.top.level.symbols=Top-level Symbols +formatter.title.use.continuation.indent.in.conditions=Use continuation indent in conditions +formatter.title.use.continuation.indent=Use continuation indent +formatter.title.when.parentheses=''when'' parentheses +formatter.title.when.statements=''when'' statements + +framework.name.kotlin.sdk=Kotlin SDK + +hierarchy.text.anonymous=[anonymous] +hierarchy.text.in=\ in {0} + +highlighter.action.text.go.to.actual.declarations=Go to actual declarations +highlighter.action.text.go.to.expected.declaration=Go to expected declaration +highlighter.action.text.go.to.implementations=Go to implementations +highlighter.action.text.go.to.overridden.methods=Go to overridden methods +highlighter.action.text.go.to.overridden.properties=Go to overridden properties +highlighter.action.text.go.to.subclasses=Go to subclasses +highlighter.action.text.go.to.super.method=Go to super method +highlighter.action.text.go.to.super.property=Go to super property +highlighter.descriptor.text.android.extensions.property=Properties and Variables//Android Extensions synthetic properties +highlighter.descriptor.text.annotation=Annotation//Annotation name +highlighter.descriptor.text.annotation.attribute.name=Annotation//Annotation attribute name +highlighter.descriptor.text.arrow=Braces and Operators//Arrow +highlighter.descriptor.text.builtin.annotation=Keywords//Modifier +highlighter.descriptor.text.builtin.keyword.val=Keywords//'val' +highlighter.descriptor.text.builtin.keyword.var=Keywords//'var' +highlighter.descriptor.text.builtin.keyword=Keywords//Keyword +highlighter.descriptor.text.captured.variable=Properties and Variables//Variables and values captured in a closure +highlighter.descriptor.text.closure.braces=Braces and Operators//Lambda expression braces and arrow +highlighter.descriptor.text.colon=Braces and Operators//Colon +highlighter.descriptor.text.constructor.call=Functions//Constructor call +highlighter.descriptor.text.double.colon=Braces and Operators//Double colon +highlighter.descriptor.text.dynamic.fun.call=Functions//Dynamic function call +highlighter.descriptor.text.dynamic.property=Properties and Variables//Dynamic property +highlighter.descriptor.text.enumEntry=Classes and Interfaces//Enum entry +highlighter.descriptor.text.exclexcl=Braces and Operators//Non-null assertion +highlighter.descriptor.text.extension.fun.call=Functions//Extension function call +highlighter.descriptor.text.extension.property=Properties and Variables//Extension property +highlighter.descriptor.text.field=Properties and Variables//Backing field variable +highlighter.descriptor.text.fun.call=Functions//Function call +highlighter.descriptor.text.fun=Functions//Function declaration +highlighter.descriptor.text.instance.property.custom.property.declaration=Properties and Variables//Instance property with custom property declarations +highlighter.descriptor.text.instance.property=Properties and Variables//Instance property +highlighter.descriptor.text.it=Parameters//Lambda expression default parameter +highlighter.descriptor.text.kdoc.comment=Comments//KDoc//KDoc comment +highlighter.descriptor.text.kdoc.tag=Comments//KDoc//KDoc tag +highlighter.descriptor.text.kdoc.value=Comments//KDoc//Link in KDoc tag +highlighter.descriptor.text.label=Label +highlighter.descriptor.text.local.variable=Properties and Variables//Local variable or value +highlighter.descriptor.text.named.argument=Named argument +highlighter.descriptor.text.object=Classes and Interfaces//Object +highlighter.descriptor.text.package.fun.call=Functions//Package-level function call +highlighter.descriptor.text.package.property.custom.property.declaration=Properties and Variables//Package-level property with custom property declarations +highlighter.descriptor.text.package.property=Properties and Variables//Package-level property +highlighter.descriptor.text.quest=Braces and Operators//Type nullability marker +highlighter.descriptor.text.safe.access=Braces and Operators//Safe access dot +highlighter.descriptor.text.smart.cast.receiver=Smart-casts//Smart-cast implicit receiver +highlighter.descriptor.text.smart.cast=Smart-casts//Smart-cast value +highlighter.descriptor.text.smart.constant=Smart-casts//Smart constant +highlighter.descriptor.text.string.escape=String//Escape in string and template braces +highlighter.descriptor.text.suspend.fun.call=Functions//Suspend function call +highlighter.descriptor.text.synthetic.extension.property=Properties and Variables//Synthetic extension property +highlighter.descriptor.text.typeAlias=Classes and Interfaces//Type alias +highlighter.descriptor.text.var=Properties and Variables//Var (mutable variable, parameter or property) +highlighter.descriptor.text.variable.as.function.call=Properties and Variables//Variable as function call +highlighter.descriptor.text.variable.as.function.like.call=Properties and Variables//Variable as function-like call +highlighter.message.suspend.function.call=Suspend function call +highlighter.message.suspending.iteration=Suspending iteration +highlighter.name.dsl.markers=DSL markers +highlighter.name.dsl=Dsl// +highlighter.name.implemented.declaration=Implemented declaration +highlighter.name.implementing.declaration=Implementing declaration +highlighter.name.kotlin.line.markers=Kotlin line markers +highlighter.name.multiplatform.actual.declaration=Multiplatform actual declaration +highlighter.name.multiplatform.expect.declaration=Multiplatform expect declaration +highlighter.name.overridden.declaration=Overridden declaration +highlighter.name.overriding.declaration=Overriding declaration +highlighter.name.style=Style +highlighter.notification.text.navigation.to.overriding.classes.is.not.possible.during.index.update=Navigation to overriding classes is not possible during index update +highlighter.prefix.text.has.actuals.in=Has actuals in +highlighter.text.click.for.navigate=Click {0}to navigate +highlighter.text.has.functional.implementations=Has functional implementations +highlighter.text.implements=Implements +highlighter.text.in={0} in '{1}' +highlighter.text.modules=\ ({0} modules) +highlighter.text.or.press=\ or press {0} +highlighter.text.overrides=Overrides +highlighter.title.actuals.for=Actuals for {0} +highlighter.title.choose.actual.for=Choose actual for {0} +highlighter.title.choose.expected.for=Choose expected for {0} +highlighter.title.expected.for=Expected for {0} +highlighter.title.overriding.declarations.of=Overriding declarations of {0} +highlighter.title.searching.for.overriding.declarations=Searching for overriding declarations +highlighter.title.searching.for.overriding.methods=Searching for overriding methods +highlighter.tool.tip.has.declaration.in.common.module=Has declaration in common module +highlighter.tool.tip.marker.annotation.for.dsl=Marker annotation for DSL +highlighter.tool.tip.text.function=function +highlighter.tool.tip.text.property=property +highlighter.tool.tip.text.recursive.call=Recursive call +highlighter.tool.tip.text.run.test=Run Test + +import.optimizer.notification.text.unused.imports.not.found=Unused imports not found +import.optimizer.progress.indicator.text.collect.imports.for=Collect imports for {0} +import.optimizer.text.import={0, choice, 0#import|2#imports} +import.optimizer.text.non.zero=Removed {0} {1}{2, choice, 0#|1#, added {2} {3}} +import.optimizer.text.zero=Rearranged imports + +internal.action.text.decompile.kotlin.bytecode=Decompile kotlin bytecode +internal.error.text.cannot.decompile=Cannot decompile {0} +internal.indicator.text.decompiling=Decompiling {0} +internal.title.decompiler.error=Decompiler error + +version.title.no.runtime.found=No Runtime Found +version.dialog.message.is.not.found.make.sure.plugin.is.properly.installed={0} is not found. Make sure plugin is properly installed. +version.message.is.deprecated.since.1.2.0.and.should.be.replaced.with={0} is deprecated since 1.2.0 and should be replaced with {1} + +update.name.android.studio=Android Studio +update.reason.text.exception.during.verification=exception during verification {0} +update.reason.text.no.verified.versions.for.this.build=No verified versions for this build. +update.reason.text.unable.to.connect.to.compatibility.verification.repository=unable to connect to compatibility verification repository +update.reason.text.unable.to.parse.compatibility.verification.metadata=unable to parse compatibility verification metadata +update.reason.text.version.to.be.verified=Version to be verified. + +test.integration.button.text.cancel=Cancel +test.integration.button.text.rewrite=Rewrite +test.integration.message.text.create.test.in.the.same.source.root=Create test in the same source root? +test.integration.message.text.kotlin.class=Kotlin class ''{0}'' already exists. Do you want to update it? +test.integration.title.no.test.roots.found=No Test Roots Found + +slicer.text.in=\ in {0} +slicer.text.tracking.enclosing.lambda=\ (Tracking enclosing lambda) +slicer.title.dataflow.from.here=Dataflow from Here +slicer.title.dataflow.to.here=Dataflow to Here +slicer.tool.tip.text.variable.dereferenced=Variable dereferenced + +script.action.text.ignore=Ignore +script.action.text.open.settings=Open Settings +script.action.text.show.all=Show all +script.name.kotlin.scripting=Kotlin Scripting +script.progress.text.kotlin.scanning.dependencies.for.script.definitions=Kotlin: scanning dependencies for script definitions... +script.text.multiple.script.definitions.are.applicable.for.this.script=Multiple script definitions are applicable for this script. {0} is used + +roots.description.text.update.source.roots.for.non.jvm.modules.in.kotlin.project=Update source roots for non-JVM modules in Kotlin project + +reporter.button.text.ignore=Ignore +reporter.button.text.update=Update +reporter.message.text.you.re.running.kotlin.plugin.version=You''re running Kotlin plugin version {0}, while the latest version is {1} +reporter.text.can.t.report.exception.from.patched.plugin=Can''t report exception from patched plugin +reporter.title.update.kotlin.plugin=Update Kotlin Plugin + +configuration.action.text.ignore=Ignore +configuration.action.text.update=Update +configuration.description.always=Always +configuration.description.amd=AMD +configuration.description.commonjs=CommonJS +configuration.description.never=Never +configuration.description.plain.put.to.global.scope=Plain (put to global scope) +configuration.description.umd.detect.amd.or.commonjs.if.available.fallback.to.plain=UMD (detect AMD or CommonJS if available, fallback to plain) +configuration.description.when.inlining.a.function.from.other.module.with.embedded.sources=When inlining a function from other module with embedded sources +configuration.error.text.shouldn.t.add.null.urls.to.custom.repositories=Shouldn''t add null urls to custom repositories +configuration.feature.text.new.experimental.project.wizard=New Experimental Project Wizard +configuration.feature.text.new.java.to.kotlin.converter=New Java to Kotlin Converter +configuration.message.enter.fully.qualified.method.name=Enter fully-qualified method name: +configuration.message.text.a.new.version.is.available=A new version {0} is available +configuration.message.text.a.new.version.is.found=A new version {0} is found but it''s not verified by {1}. +configuration.message.text.update.check.failed=Update check failed: {0} +configuration.message.text.you.have.the.latest.version.of.the.plugin.installed=You have the latest version of the plugin installed. +configuration.message.verifier.disabled=(verifier disabled) +configuration.migration.text.api.version=API version: {0} -> {1} +configuration.migration.text.detected.migration=Detected migration: +configuration.migration.text.language.version=Language version: {0} -> {1} +configuration.migration.text.migrations.for.kotlin.code.are.available=Migrations for Kotlin code are available +configuration.migration.text.run.migrations=Run migrations +configuration.migration.text.standard.library=Standard library: {0} -> {1} +configuration.migration.title.kotlin.migration=Kotlin Migration +configuration.name.kotlin.compiler=Kotlin Compiler +configuration.name.kotlin=Kotlin +configuration.name.method=Method +configuration.status.text.installation.failed=Installation failed +configuration.status.text.installing=Installing... +configuration.text.add.exclusion=Add exclusion +configuration.text.and=and +configuration.text.other.s=other(s) +configuration.text.patched.original={0} (Patched! Original: {1}) +configuration.text.the.compiler.bundled.to.kotlin.plugin=The compiler bundled to Kotlin plugin ({0}) is older than external compiler used for building modules: +configuration.text.this.may.cause.different.set.of.errors.and.warnings.reported.in.ide.p=This may cause different set of errors and warnings reported in IDE. +configuration.title.choose.output.directory=Choose Output Directory +configuration.title.early.access.preview.1.3.x=Early Access Preview 1.3.x +configuration.title.early.access.preview.1.4.x=Early Access Preview 1.4.x +configuration.title.edit.exclusion=Edit exclusion +configuration.title.kotlin.compiler.js.option.output.postfix.browse.title=Choose file to append to generated code +configuration.title.kotlin.compiler.js.option.output.prefix.browse.title=Choose file to prepend to generated code +configuration.title.outdated.bundled.kotlin.compiler=Outdated Bundled Kotlin Compiler +configuration.title.stable=Stable +configuration.warning.text.following.modules.override.project.settings=Following modules override project settings: +configuration.warning.text.modules.override.project.settings={0} modules override project settings + +#Refactoring +0.1.is.never.used={0} ''{1}'' is never used +0.has.detected.1.code.fragments.in.2.that.can.be.replaced.with.3={0} has detected {1} code {1,choice,1#fragment|2#fragments} in {2} that can be replaced with {3}. Would you like to review and replace {1,choice,1#it|2#them}? +0.usages.are.not.supported.by.the.inline.refactoring.they.won.t.be.processed={0} usages are not supported by the Inline refactoring. They won''t be processed. +0.will.become.invisible.after.extraction={0} will become invisible after extraction +0.will.no.longer.be.accessible.after.extraction={0} will no longer be accessible after extraction +action.text.append=Append +action.text.cancel=Cancel +action.text.overwrite=Overwrite +cannot.extract.method=Cannot find statements to extract +cannot.extract.super.call=Cannot extract super-call +cannot.inline.property.with.accessor.s.and.backing.field=Cannot inline property with accessor(s) and backing field +cannot.introduce.parameter.of.0.type=Cannot introduce parameter of type ''{0}'' +cannot.refactor.expression.has.unit.type=Cannot introduce expression of unit type +cannot.refactor.no.container=Cannot refactor in this place +cannot.refactor.no.expression=Cannot perform refactoring without an expression +cannot.refactor.no.type=Cannot perform refactoring without a type +cannot.refactor.not.expression.to.extract=Cannot find an expression to extract +cannot.refactor.not.expression=Cannot find an expression to introduce +cannot.refactor.package.expression=Cannot introduce package reference +cannot.refactor.syntax.errors=Cannot refactor due to erroneous code +cannot.refactor.synthesized.function=Cannot refactor synthesized function ''{0}'' +checkbox.text.declare.with.var=Declare with &var +checkbox.text.extension.property=E&xtension property:\u0020 +checkbox.text.introduce.default.value=Introduce &default value +checkbox.text.replace.all.occurrences.0=&Replace all occurrences ({0}) +checkbox.text.specify.type.explicitly=Specify &type explicitly +column.name.receiver=Receiver: +column.name.val.var=Val/Var +declarations.are.used.outside.of.selected.code.fragment=Following declarations are used outside of selected code fragment: +declarations.will.move.out.of.scope=Following declarations won't be available outside of extracted function body: +description.a.reference.to.extracted.type.parameter=a reference to extracted type parameter +error.cant.refactor.vararg.functions=Can't refactor the function with variable arguments +error.hint.text.cannot.inline.0.from.a.decompiled.file=Cannot inline ''{0}'' from a decompiled file +error.text.can.t.change.signature.of.method=Can''t change signature of {0} method +error.text.can.t.copy.class.to.the.containing.file=Can''t copy class to the containing file +error.text.can.t.generate.0.1=Can''t generate {0}: {1} +error.text.can.t.introduce.lambda.parameter.for.this.expression=Can''t introduce lambda parameter for this expression +error.text.can.t.introduce.property.for.this.expression=Can''t introduce property for this expression +error.text.different.name.expected=Different name expected +error.text.expression.has.no.type=Expression has no type +error.text.extraction.from.expect.class.is.not.yet.supported=Extraction from expect class is not yet supported +error.text.extraction.from.non.jvm.class.is.not.yet.supported=Extraction from non-JVM class is not yet supported +error.text.inline.function.is.not.supported.for.functions.with.multiple.return.statements=Inline Function is not supported for functions with multiple return statements. +error.text.inline.function.is.not.supported.for.functions.with.return.statements.not.at.the.end.of.the.body=Inline Function is not supported for functions with return statements not at the end of the body. +error.text.interface.cannot.be.extracted.from.an.annotation.class=Interface cannot be extracted from an annotation class +error.text.introduce.parameter.is.not.available.for.default.value=Introduce Parameter is not available for default value +error.text.introduce.parameter.is.not.available.inside.of.annotation.entries=Introduce Parameter is not available inside of annotation entries +error.text.invalid.default.receiver.value=Invalid default receiver value +error.text.invalid.name=Invalid name +error.text.invalid.parameter.name=Invalid parameter name +error.text.invalid.parameter.type=Invalid parameter type +error.text.invalid.receiver.type=Invalid receiver type +error.text.invalid.return.type=Invalid return type +error.text.no.type.to.refactor=No type to refactor +error.text.refactoring.is.not.applicable.in.the.current.context=Refactoring is not applicable in the current context +error.text.superclass.cannot.be.extracted.from.an.annotation.class=Superclass cannot be extracted from an annotation class +error.text.type.reference.is.expected=Type reference is expected +error.types.in.generated.function=Cannot generate function with erroneous return type +error.wrong.caret.position.function.or.constructor.name=The caret should be positioned at the name of the function or constructor to be refactored. +extract.function=Extract Function +family.name.update.usages.on.declarations.cut.paste=Update usages on declarations cut/paste +file.does.not.exist=File {0} does not exist.\nDo you want to create it? +function.name.is.invalid=Function name is invalid +introduce.parameter=Introduce Parameter +introduce.property=Introduce Property +introduce.type.parameter.to.declaration=Introduce type parameter to declaration +introduce.type.parameter=Introduce Type Parameter +introduce.variable=Introduce Variable +label.text.default.receiver.value=&Default receiver value:\u0020 +label.text.introduce.as=&Introduce as:\u0020 +label.text.name=&Name:\u0020 +label.text.receiver.type=Receiver &type:\u0020 +label.text.target.file.name=Target file name: +label.text.type=&Type:\u0020 +label.text.visibility=&Visibility:\u0020 +message.change.signature.is.not.applicable.to.dynamically.invoked.functions=Change signature is not applicable to dynamically invoked functions +message.do.not.show.for.local.variables.in.future=Do not show for local variables in future +message.text.return.type.cannot.be.resolved=Return type ''{0}'' cannot be resolved.\nContinue? +message.text.type.alias.0.is.never.used=Type alias ''{0}'' is never used +message.type.for.cannot.be.resolved=Type ''{0}'' for {1} cannot be resolved.\nContinue? +name.extract.interface=Extract Interface +name.inline.type.alias=Inline Type Alias +name.introduce.import.alias=Introduce Import Alias +name.introduce.lambda.parameter=Introduce Lambda Parameter +name.introduce.parameter1=Introduce Parameter +name.introduce.type.alias=Introduce Type Alias +name.kdoc.for.abstracts=KDoc for abstracts +naming.convention.will.be.violated.after.rename=Naming conventions will be violated after rename +non.kotlin.usage.0=Non-Kotlin usage: {0} +parameter.name.is.invalid=Parameter name ''{0}'' is invalid +parameter.type.is.invalid=Parameter type ''{0}'' is invalid +parameter.types.are.not.denotable=Cannot extract method since following types are not denotable in the target scope: +refactoring.move.non.kotlin.file=Target must be a Kotlin file +return.type.is.invalid=Return type is invalid +searching.usages.of.0.parameter=Searching usages of ''{0}''parameter +selected.code.fragment.has.multiple.exit.points=Selected code fragment has multiple exit points +selected.code.fragment.has.multiple.output.values=Selected code fragment has more than 3 output values: +selected.code.fragment.has.output.values.and.exit.points=Selected code fragment has output values as well as alternative exit points +setter.of.0.will.become.invisible.after.extraction = Setter of {0} will become invisible after extraction +text.0.is.not.allowed.in.the.target.context=''{0}'' is not allowed in the target context +text.0.to.inline={0} to inline +text.0.will.no.longer.be.accessible.after.signature.change={0} will no longer be accessible after signature change +text.all=All +text.anonymous=[Anonymous] +text.callee.text.would.be.shown.here=Callee text would be shown here +text.caller.text.with.highlighted.callee.call.would.be.shown.here=Caller text\nwith highlighted callee call would be shown here +text.cannot.inline.0.1.usages=Cannot inline {0}/{1} usages +text.class.0.already.exists.in.the.target.scope=Class {0} already exists in the target scope +text.constructor=constructor +text.create.destructuring.declaration=Create destructuring declaration +text.create.single.variable=Create single variable +text.declaration=declaration +text.default.value=\ // default value = {0} +text.duplicating.local.variable=Duplicating local variable ''{0}'' +text.duplicating.parameter=Duplicating parameter ''{0}'' +text.duplicating.property=Duplicating property ''{0}'' +text.explicit.receiver.is.already.present.in.call.element.0=Explicit receiver is already present in call element: {0} +text.extract.superclass=Extract Superclass +text.file.0.already.exists.in.1=File {0} already exists in {1} +text.function.already.exists=Function already exists: ''{0}'' +text.function=function +text.inline.0.1.2=Inline {0} ''{1}''? {2} +text.inline.0=Inline {0} +text.inline.all.references.and.0.the.1=Inline all references and {0} the kind {1} +text.inline.recursive.function.is.supported.only.on.references=Inline recursive function is supported only on references +text.inline.this.reference.and.keep.the.0=Inline this reference and keep the {0} +text.inlining.0.1=Inlining {0} {1} +text.introduce.default.value=Intro&duce default value +text.keep=keep +text.lambda.parameter=lambda parameter +text.lambda.parameters=Lambda ¶meters:\u0020 +text.lambda.return.type=Lambda return &type +text.lazy.property=lazy property +text.local.property=property +text.local.variable=local variable +text.name=Name +text.no.name.provided.for.type.alias=No name provided for type alias +text.parameter.0=parameter ''{0}'' +text.parameter.name=Parameter &name:\u0020 +text.parameter.reference.can.t.be.safely.replaced.with.0.since.1.is.ambiguous.in.this.context=Parameter reference can''t be safely replaced with {0} since {1} is ambiguous in this context +text.parameter.reference.can.t.be.safely.replaced.with.0.since.target.function.can.t.be.referenced.in.this.context=Parameter reference can''t be safely replaced with {0} since target function can''t be referenced in this context +text.parameter.type=Parameter &type:\u0020 +text.parameter=parameter ''{0}'' +text.parameters=&Parameters +text.proceed.with.extraction=Proceed with extraction +text.process.duplicates=Process Duplicates +text.property.with.getter=property with getter +text.property.with.initializer=property with initializer +text.property=property +text.receiver.can.t.be.safely.transformed.to.value.argument=Receiver can''t be safely transformed to value argument: {0} +text.receiver=receiver +text.refactoring.can.t.be.performed.on.the.selected.code.element=Refactoring can''t be performed on the selected code element +text.refactoring.is.not.applicable.to.this.code.fragment=Refactoring is not applicable to this code fragment +text.remove.0.no.longer.used=Remove {0} no longer used +text.remove=remove +text.select.target.code.block.file=Select target code block / file +text.select.target.code.block=Select target code block +text.select.target.file=Select target file +text.the.following=The following +text.there.is.already.a.parameter=There is already a parameter ''{0}'' in {1}. It will conflict with the new parameter. +text.there.is.already.a.variable.0.in.1.it.will.conflict.with.the.new.parameter=There is already a variable ''{0}'' in {1}. It will conflict with the new parameter. +text.type.alias.cannot.refer.to.types.which.aren.t.accessible.in.the.scope.where.it.s.defined=Type alias cannot refer to types which aren''t accessible in the scope where it''s defined +text.type.alias.name.must.be.a.valid.identifier.0=Type alias name must be a valid identifier: {0} +text.type.alias=type alias +text.type.already.exists.in.the.target.scope=Type {0} already exists in the target scope +text.type.parameter.names.must.be.distinct=Type parameter names must be distinct +text.type.parameters=Type &Parameters +text.type=Type +text.update.usages.to.reflect.declaration.0.move=Update usages to reflect {0, choice, 0#declaration|1#declarations} move +text.variable=variable +title.inline.function=Inline Function +title.introduce.parameter.to.declaration=Introduce parameter to declaration +title.select.target.code.block=Select target code block +unsupported.usage.0=Unsupported usage: {0} +title.change.signature=Change Signature \ No newline at end of file diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/KotlinBundle.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/KotlinBundle.kt index 03b2659a01b..3e42b9ac903 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/KotlinBundle.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/KotlinBundle.kt @@ -15,20 +15,17 @@ */ package org.jetbrains.kotlin.idea -import com.intellij.CommonBundle import org.jetbrains.annotations.NonNls import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.idea.core.util.KotlinBundleBase -import java.util.* +import org.jetbrains.kotlin.util.AbstractKotlinBundle -object KotlinBundle : KotlinBundleBase() { - @NonNls - private const val BUNDLE = "org.jetbrains.kotlin.idea.KotlinBundle" +@NonNls +private const val BUNDLE = "org.jetbrains.kotlin.idea.KotlinBundle" - override fun createBundle(): ResourceBundle = ResourceBundle.getBundle(BUNDLE) +object KotlinBundle : AbstractKotlinBundle(BUNDLE) { + @JvmStatic + fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any?): String { - return CommonBundle.message(bundle, key, *params) - } + fun lazyMessage(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): () -> String = { getMessage(key, *params) } } \ No newline at end of file diff --git a/idea/resources/messages/KotlinConfigurationBundle.properties b/idea/resources/messages/KotlinConfigurationBundle.properties deleted file mode 100644 index 56287734de5..00000000000 --- a/idea/resources/messages/KotlinConfigurationBundle.properties +++ /dev/null @@ -1,46 +0,0 @@ -action.text.ignore=Ignore -action.text.update=Update -description.always=Always -description.amd=AMD -description.commonjs=CommonJS -description.never=Never -description.plain.put.to.global.scope=Plain (put to global scope) -description.umd.detect.amd.or.commonjs.if.available.fallback.to.plain=UMD (detect AMD or CommonJS if available, fallback to plain) -description.when.inlining.a.function.from.other.module.with.embedded.sources=When inlining a function from other module with embedded sources -error.text.shouldn.t.add.null.urls.to.custom.repositories=Shouldn''t add null urls to custom repositories -feature.text.new.experimental.project.wizard=New Kotlin project wizard -feature.text.new.java.to.kotlin.converter=New Java to Kotlin converter -message.enter.fully.qualified.method.name=Enter fully-qualified method name: -message.text.a.new.version.is.available=A new version {0} is available -message.text.a.new.version.is.found=A new version {0} is found but it''s not verified by {1}. -message.text.update.check.failed=Update check failed: {0} -message.text.you.have.the.latest.version.of.the.plugin.installed=You have the latest version of the plugin installed. -message.verifier.disabled=(verifier disabled) -migration.text.api.version=API version: {0} -> {1} -migration.text.detected.migration=Detected migration: -migration.text.language.version=Language version: {0} -> {1} -migration.text.migrations.for.kotlin.code.are.available=Migrations for Kotlin code are available -migration.text.run.migrations=Run migrations -migration.text.standard.library=Standard library: {0} -> {1} -migration.title.kotlin.migration=Kotlin Migration -name.kotlin.compiler=Kotlin Compiler -name.kotlin=Kotlin -name.method=Method -status.text.installation.failed=Installation failed -status.text.installing=Installing... -text.add.exclusion=Add exclusion -text.and=and -text.other.s=other(s) -text.patched.original={0} (Patched! Original: {1}) -text.the.compiler.bundled.to.kotlin.plugin=The compiler bundled to Kotlin plugin ({0}) is older than external compiler used for building modules: -text.this.may.cause.different.set.of.errors.and.warnings.reported.in.ide.p=This may cause different set of errors and warnings reported in IDE. -title.choose.output.directory=Choose Output Directory -title.early.access.preview.1.3.x=Early Access Preview 1.3.x -title.early.access.preview.1.4.x=Early Access Preview 1.4.x -title.edit.exclusion=Edit exclusion -title.kotlin.compiler.js.option.output.postfix.browse.title=Choose file to append to generated code -title.kotlin.compiler.js.option.output.prefix.browse.title=Choose file to prepend to generated code -title.outdated.bundled.kotlin.compiler=Outdated Bundled Kotlin Compiler -title.stable=Stable -warning.text.following.modules.override.project.settings=Following modules override project settings: -warning.text.modules.override.project.settings={0} modules override project settings diff --git a/idea/resources/messages/KotlinCopyBundle.properties b/idea/resources/messages/KotlinCopyBundle.properties deleted file mode 100644 index 8ebcfb906ea..00000000000 --- a/idea/resources/messages/KotlinCopyBundle.properties +++ /dev/null @@ -1,6 +0,0 @@ -text.adding.imports=Adding imports ... -text.clipboard.content.seems.to.be.java.code.do.you.want.to.convert.it.to.kotlin=Clipboard content seems to be Java code. Do you want to convert it to Kotlin? -text.convert.java.to.kotlin=Convert Java to Kotlin -text.copied.kotlin.code=Copied kotlin code -text.resolving.references=Resolving references ... -title.convert.code.from.java=Convert Code From Java \ No newline at end of file diff --git a/idea/resources/messages/KotlinEditorBundle.properties b/idea/resources/messages/KotlinEditorBundle.properties deleted file mode 100644 index 3c1ad1f0f68..00000000000 --- a/idea/resources/messages/KotlinEditorBundle.properties +++ /dev/null @@ -1,4 +0,0 @@ -checkbox.title.auto.add.val.keyword.to.data.inline.class.constructor.parameters=Auto add val keyword to data/inline class constructor parameters -checkbox.title.convert.pasted.java.code.to.kotlin=Convert pasted Java code to Kotlin -checkbox.title.don.t.show.java.to.kotlin.conversion.dialog.on.paste=Don''t show Java to Kotlin conversion dialog on paste -title.kotlin=Kotlin \ No newline at end of file diff --git a/idea/resources/messages/KotlinFacetBundle.properties b/idea/resources/messages/KotlinFacetBundle.properties deleted file mode 100644 index 9118ae780a4..00000000000 --- a/idea/resources/messages/KotlinFacetBundle.properties +++ /dev/null @@ -1,14 +0,0 @@ -checkbox.text.use.project.settings=Use project settings -column.name.options=Options -column.name.plugin=Plugin -error.text.at.least.one.target.platform.should.be.selected=At least one target platform should be selected -label.text.selected.target.platforms=Selected target platforms: -label.text.target.platform=Target platform: -label.text.the.project.is.imported.from.external.build.system.and.could.not.be.edited=The project is imported from external build system and could not be edited -link.text.edit.project.settings=Edit project settings -name.compiler.plugins=Compiler Plugins -name.general=General -text.following.arguments.are.redundant=Following arguments are redundant: {0} -text.following.arguments.override.facet.settings=Following arguments override facet settings: {0} -text.following.options.are.not.correct=Following options are not correct: -text.multiplatform=Multiplatform diff --git a/idea/resources/messages/KotlinFiltersBundle.properties b/idea/resources/messages/KotlinFiltersBundle.properties deleted file mode 100644 index 68a43e05c79..00000000000 --- a/idea/resources/messages/KotlinFiltersBundle.properties +++ /dev/null @@ -1,3 +0,0 @@ -text.inline.function.body=inline function body -text.inline.function.call.site=inline function call site -title.navigate.to=Navigate to \ No newline at end of file diff --git a/idea/resources/messages/KotlinFindUsagesBundle.properties b/idea/resources/messages/KotlinFindUsagesBundle.properties deleted file mode 100644 index 5a2362a201a..00000000000 --- a/idea/resources/messages/KotlinFindUsagesBundle.properties +++ /dev/null @@ -1,51 +0,0 @@ -kotlin.lang.class=class -kotlin.lang.companion.object=companion object -kotlin.lang.constructor=constructor -kotlin.lang.facade.class=facade class -kotlin.lang.for.property={0} for property -kotlin.lang.function=function -kotlin.lang.getter=getter -kotlin.lang.import.alias=import alias -kotlin.lang.interface=interface -kotlin.lang.label=label -kotlin.lang.lambda=lambda -kotlin.lang.object=object -kotlin.lang.parameter=parameter -kotlin.lang.property.accessor=property accessor -kotlin.lang.property=property -kotlin.lang.setter=setter -kotlin.lang.type.alias=type alias -kotlin.lang.type.parameter=type parameter -kotlin.lang.variable=variable -checkbox.name.expected.classes=Expected classes -class.name.anonymous=Anonymous -checkbox.name.expected.functions=Expected functions -text.find.usages.for.data.class.components.and.destruction.declarations=

Find usages for data class components and destruction declarations
could be disabled once or disabled for a project.

-tool.tip.text.disable.search.for.data.class.components.and.destruction.declarations.project.wide.setting=Disable search for data class components and destruction declarations. (Project wide setting) -checkbox.text.fast.data.class.component.search=Fast data class component search -checkbox.name.expected.properties=Expected properties -action.text.find.usages.of=find usages of -type.named.argument=Named argument -type.type.alias=Type alias - -find.usages.type.callable.reference = Callable reference -find.usages.type.type.constraint = Type constraint -find.usages.type.value.parameter.type = Parameter type -find.usages.type.nonLocal.property.type = Class/object property type -find.usages.type.function.return.type = Function return types -find.usages.type.superType = Supertype -find.usages.type.is = Target type of ''is'' operation -find.usages.type.class.object = Nested class/object -find.usages.type.companion.object = Companion object -find.usages.type.function.call = Function call -find.usages.type.implicit.get = Implicit ''get'' -find.usages.type.implicit.set = Implicit ''set'' -find.usages.type.implicit.invoke = Implicit 'invoke' -find.usages.type.implicit.iteration = Implicit iteration -find.usages.type.property.delegation = Property delegation -find.usages.type.extension.receiver.type = Extension receiver type -find.usages.type.super.type.qualifier = Super type qualifier -find.usages.type.receiver = Receiver -find.usages.type.delegate = Delegate -find.usages.type.packageDirective = Package directive -find.usages.type.packageMemberAccess = Package member access \ No newline at end of file diff --git a/idea/resources/messages/KotlinFormatterBundle.properties b/idea/resources/messages/KotlinFormatterBundle.properties deleted file mode 100644 index 435163ba5da..00000000000 --- a/idea/resources/messages/KotlinFormatterBundle.properties +++ /dev/null @@ -1,34 +0,0 @@ -button.text.use.import.with.when.at.least=Use import with ''*'' when at least -button.text.use.import.with=Use import with ''*'' -button.text.use.single.name.import=Use single name import -checkbox.text.insert.imports.for.nested.classes=Insert imports for nested classes -text.names.used=\ names used -text.use.defaults.from=Use defaults from: -title.after.colon.before.declaration.type=After colon, before declaration type -title.after.colon.in.new.type.definition=After colon in new type definition -title.align.when.branches.in.columns=Align ''when'' branches in columns -title.around.arrow.in.function.types=Around arrow in function types -title.around.arrow.in=Around arrow in "when" clause -title.around.when.branches.with=Around ''when'' branches with {} -title.before.colon.after.declaration.name=Before colon, after declaration name -title.before.colon.in.new.type.definition=Before colon in new type definition -title.before.lambda.arrow=Before lambda arrow -title.chained.function.calls=Chained function calls -title.elvis.expressions=Elvis expressions -title.expression.body.functions=Expression body functions -title.function.annotations=Function annotations -title.function.call.arguments=Function call arguments -title.function.declaration.parameters=Function declaration parameters -title.function.parentheses=Function parentheses -title.in.simple.one.line.methods=In simple one line methods -title.java.statics.and.enum.members=Java Statics and Enum Members -title.load.save=Load/Save -title.other=Other -title.property.annotations=Property annotations -title.put.left.brace.on.new.line=Put left brace on new line -title.range.operator=Range operator (..) -title.top.level.symbols=Top-level Symbols -title.use.continuation.indent.in.conditions=Use continuation indent in conditions -title.use.continuation.indent=Use continuation indent -title.when.parentheses=''when'' parentheses -title.when.statements=''when'' statements \ No newline at end of file diff --git a/idea/resources/messages/KotlinFrameworkBundle.properties b/idea/resources/messages/KotlinFrameworkBundle.properties deleted file mode 100644 index 2b7cf041066..00000000000 --- a/idea/resources/messages/KotlinFrameworkBundle.properties +++ /dev/null @@ -1 +0,0 @@ -name.kotlin.sdk=Kotlin SDK \ No newline at end of file diff --git a/idea/resources/messages/KotlinHierarchyBundle.properties b/idea/resources/messages/KotlinHierarchyBundle.properties deleted file mode 100644 index 6c6e59881ca..00000000000 --- a/idea/resources/messages/KotlinHierarchyBundle.properties +++ /dev/null @@ -1,2 +0,0 @@ -text.anonymous=[anonymous] -text.in=\ in {0} \ No newline at end of file diff --git a/idea/resources/messages/KotlinHighlighterBundle.properties b/idea/resources/messages/KotlinHighlighterBundle.properties deleted file mode 100644 index c2ebf98f0e0..00000000000 --- a/idea/resources/messages/KotlinHighlighterBundle.properties +++ /dev/null @@ -1,88 +0,0 @@ -action.text.go.to.actual.declarations=Go to actual declarations -action.text.go.to.expected.declaration=Go to expected declaration -action.text.go.to.implementations=Go to implementations -action.text.go.to.overridden.methods=Go to overridden methods -action.text.go.to.overridden.properties=Go to overridden properties -action.text.go.to.subclasses=Go to subclasses -action.text.go.to.super.method=Go to super method -action.text.go.to.super.property=Go to super property -description.text.android.extensions.property=Properties and Variables//Android Extensions synthetic properties -description.text.annotation=Annotation -description.text.arrow=Braces and Operators//Arrow -description.text.builtin.annotation=Keywords//Modifier -description.text.builtin.keyword.val=Keywords//'val' -description.text.builtin.keyword.var=Keywords//'var' -description.text.builtin.keyword=Keywords//Keyword -description.text.captured.variable=Properties and Variables//Variables and values captured in a closure -description.text.closure.braces=Braces and Operators//Lambda expression braces and arrow -description.text.colon=Braces and Operators//Colon -description.text.constructor.call=Functions//Constructor call -description.text.double.colon=Braces and Operators//Double colon -description.text.dynamic.fun.call=Functions//Dynamic function call -description.text.dynamic.property=Properties and Variables//Dynamic property -description.text.enumEntry=Classes and Interfaces//Enum entry -description.text.exclexcl=Braces and Operators//Non-null assertion -description.text.extension.fun.call=Functions//Extension function call -description.text.extension.property=Properties and Variables//Extension property -description.text.field=Properties and Variables//Backing field variable -description.text.fun.call=Functions//Function call -description.text.fun=Functions//Function declaration -description.text.instance.property.custom.property.declaration=Properties and Variables//Instance property with custom property declarations -description.text.instance.property=Properties and Variables//Instance property -description.text.it=Parameters//Lambda expression default parameter -description.text.kdoc.comment=Comments//KDoc//KDoc comment -description.text.kdoc.tag=Comments//KDoc//KDoc tag -description.text.kdoc.value=Comments//KDoc//Link in KDoc tag -description.text.label=Label -description.text.local.variable=Properties and Variables//Local variable or value -description.text.named.argument=Named argument -description.text.object=Classes and Interfaces//Object -description.text.package.fun.call=Functions//Package-level function call -description.text.package.property.custom.property.declaration=Properties and Variables//Package-level property with custom property declarations -description.text.package.property=Properties and Variables//Package-level property -description.text.quest=Braces and Operators//Type nullability marker -description.text.safe.access=Braces and Operators//Safe access dot -description.text.smart.cast.receiver=Smart-casts//Smart-cast implicit receiver -description.text.smart.cast=Smart-casts//Smart-cast value -description.text.smart.constant=Smart-casts//Smart constant -description.text.string.escape=String//Escape in string and template braces -description.text.suspend.fun.call=Functions//Suspend function call -description.text.synthetic.extension.property=Properties and Variables//Synthetic extension property -description.text.typeAlias=Classes and Interfaces//Type alias -description.text.var=Properties and Variables//Var (mutable variable, parameter or property) -description.text.variable.as.function.call=Properties and Variables//Variable as function call -description.text.variable.as.function.like.call=Properties and Variables//Variable as function-like call -message.suspend.function.call=Suspend function call -message.suspending.iteration=Suspending iteration -name.dsl.markers=DSL markers -name.dsl=Dsl// -name.implemented.declaration=Implemented declaration -name.implementing.declaration=Implementing declaration -name.kotlin.line.markers=Kotlin line markers -name.multiplatform.actual.declaration=Multiplatform actual declaration -name.multiplatform.expect.declaration=Multiplatform expect declaration -name.overridden.declaration=Overridden declaration -name.overriding.declaration=Overriding declaration -name.style=Style -notification.text.navigation.to.overriding.classes.is.not.possible.during.index.update=Navigation to overriding classes is not possible during index update -prefix.text.has.actuals.in=Has actuals in -text.click.for.navigate=Click {0}to navigate -text.has.functional.implementations=Has functional implementations -text.implements=Implements -text.in={0} in '{1}' -text.modules=\ ({0} modules) -text.or.press=\ or press {0} -text.overrides=Overrides -title.actuals.for=Actuals for {0} -title.choose.actual.for=Choose actual for {0} -title.choose.expected.for=Choose expected for {0} -title.expected.for=Expected for {0} -title.overriding.declarations.of=Overriding declarations of {0} -title.searching.for.overriding.declarations=Searching for overriding declarations -title.searching.for.overriding.methods=Searching for overriding methods -tool.tip.has.declaration.in.common.module=Has declaration in common module -tool.tip.marker.annotation.for.dsl=Marker annotation for DSL -tool.tip.text.function=function -tool.tip.text.property=property -tool.tip.text.recursive.call=Recursive call -tool.tip.text.run.test=Run Test \ No newline at end of file diff --git a/idea/resources/messages/KotlinImportsBundle.properties b/idea/resources/messages/KotlinImportsBundle.properties deleted file mode 100644 index cbabe970711..00000000000 --- a/idea/resources/messages/KotlinImportsBundle.properties +++ /dev/null @@ -1,5 +0,0 @@ -notification.text.unused.imports.not.found=Unused imports not found -progress.indicator.text.collect.imports.for=Collect imports for {0} -text.import.optimizer.import={0, choice, 0#import|2#imports} -text.import.optimizer.non.zero=Removed {0} {1}{2, choice, 0#|1#, added {2} {3}} -text.import.optimizer.zero=Rearranged imports diff --git a/idea/resources/messages/KotlinInternalBundle.properties b/idea/resources/messages/KotlinInternalBundle.properties deleted file mode 100644 index e96fa8651d9..00000000000 --- a/idea/resources/messages/KotlinInternalBundle.properties +++ /dev/null @@ -1,4 +0,0 @@ -action.text.decompile.kotlin.bytecode=Decompile kotlin bytecode -error.text.cannot.decompile=Cannot decompile {0} -indicator.text.decompiling=Decompiling {0} -title.decompiler.error=Decompiler error \ No newline at end of file diff --git a/idea/resources/messages/KotlinRefactoringBundle.properties b/idea/resources/messages/KotlinRefactoringBundle.properties deleted file mode 100644 index 3677f0a4c44..00000000000 --- a/idea/resources/messages/KotlinRefactoringBundle.properties +++ /dev/null @@ -1,174 +0,0 @@ -0.1.is.never.used={0} ''{1}'' is never used -0.has.detected.1.code.fragments.in.2.that.can.be.replaced.with.3={0} has detected {1} code {1,choice,1#fragment|2#fragments} in {2} that can be replaced with {3}. Would you like to review and replace {1,choice,1#it|2#them}? -0.usages.are.not.supported.by.the.inline.refactoring.they.won.t.be.processed={0} usages are not supported by the Inline refactoring. They won''t be processed. -0.will.become.invisible.after.extraction={0} will become invisible after extraction -0.will.no.longer.be.accessible.after.extraction={0} will no longer be accessible after extraction -action.text.append=Append -action.text.cancel=Cancel -action.text.overwrite=Overwrite -cannot.extract.method=Cannot find statements to extract -cannot.extract.super.call=Cannot extract super-call -cannot.inline.property.with.accessor.s.and.backing.field=Cannot inline property with accessor(s) and backing field -cannot.introduce.parameter.of.0.type=Cannot introduce parameter of type ''{0}'' -cannot.refactor.expression.has.unit.type=Cannot introduce expression of unit type -cannot.refactor.no.container=Cannot refactor in this place -cannot.refactor.no.expression=Cannot perform refactoring without an expression -cannot.refactor.no.type=Cannot perform refactoring without a type -cannot.refactor.not.expression.to.extract=Cannot find an expression to extract -cannot.refactor.not.expression=Cannot find an expression to introduce -cannot.refactor.package.expression=Cannot introduce package reference -cannot.refactor.syntax.errors=Cannot refactor due to erroneous code -cannot.refactor.synthesized.function=Cannot refactor synthesized function ''{0}'' -checkbox.text.declare.with.var=Declare with &var -checkbox.text.extension.property=E&xtension property:\u0020 -checkbox.text.introduce.default.value=Introduce &default value -checkbox.text.replace.all.occurrences.0=&Replace all occurrences ({0}) -checkbox.text.specify.type.explicitly=Specify &type explicitly -column.name.receiver=Receiver: -column.name.val.var=Val/Var -declarations.are.used.outside.of.selected.code.fragment=Following declarations are used outside of selected code fragment: -declarations.will.move.out.of.scope=Following declarations won't be available outside of extracted function body: -description.a.reference.to.extracted.type.parameter=a reference to extracted type parameter -error.cant.refactor.vararg.functions=Can't refactor the function with variable arguments -error.hint.text.cannot.inline.0.from.a.decompiled.file=Cannot inline ''{0}'' from a decompiled file -error.text.can.t.change.signature.of.method=Can''t change signature of {0} method -error.text.can.t.copy.class.to.the.containing.file=Can''t copy class to the containing file -error.text.can.t.generate.0.1=Can''t generate {0}: {1} -error.text.can.t.introduce.lambda.parameter.for.this.expression=Can''t introduce lambda parameter for this expression -error.text.can.t.introduce.property.for.this.expression=Can''t introduce property for this expression -error.text.different.name.expected=Different name expected -error.text.expression.has.no.type=Expression has no type -error.text.extraction.from.expect.class.is.not.yet.supported=Extraction from expect class is not yet supported -error.text.extraction.from.non.jvm.class.is.not.yet.supported=Extraction from non-JVM class is not yet supported -error.text.inline.function.is.not.supported.for.functions.with.multiple.return.statements=Inline Function is not supported for functions with multiple return statements. -error.text.inline.function.is.not.supported.for.functions.with.return.statements.not.at.the.end.of.the.body=Inline Function is not supported for functions with return statements not at the end of the body. -error.text.interface.cannot.be.extracted.from.an.annotation.class=Interface cannot be extracted from an annotation class -error.text.introduce.parameter.is.not.available.for.default.value=Introduce Parameter is not available for default value -error.text.introduce.parameter.is.not.available.inside.of.annotation.entries=Introduce Parameter is not available inside of annotation entries -error.text.invalid.default.receiver.value=Invalid default receiver value -error.text.invalid.name=Invalid name -error.text.invalid.parameter.name=Invalid parameter name -error.text.invalid.parameter.type=Invalid parameter type -error.text.invalid.receiver.type=Invalid receiver type -error.text.invalid.return.type=Invalid return type -error.text.no.type.to.refactor=No type to refactor -error.text.refactoring.is.not.applicable.in.the.current.context=Refactoring is not applicable in the current context -error.text.superclass.cannot.be.extracted.from.an.annotation.class=Superclass cannot be extracted from an annotation class -error.text.type.reference.is.expected=Type reference is expected -error.types.in.generated.function=Cannot generate function with erroneous return type -error.wrong.caret.position.function.or.constructor.name=The caret should be positioned at the name of the function or constructor to be refactored. -extract.function=Extract Function -family.name.update.usages.on.declarations.cut.paste=Update usages on declarations cut/paste -file.does.not.exist=File {0} does not exist.\nDo you want to create it? -function.name.is.invalid=Function name is invalid -introduce.parameter=Introduce Parameter -introduce.property=Introduce Property -introduce.type.parameter.to.declaration=Introduce type parameter to declaration -introduce.type.parameter=Introduce Type Parameter -introduce.variable=Introduce Variable -label.text.default.receiver.value=&Default receiver value:\u0020 -label.text.introduce.as=&Introduce as:\u0020 -label.text.name=&Name:\u0020 -label.text.receiver.type=Receiver &type:\u0020 -label.text.target.file.name=Target file name: -label.text.type=&Type:\u0020 -label.text.visibility=&Visibility:\u0020 -message.change.signature.is.not.applicable.to.dynamically.invoked.functions=Change signature is not applicable to dynamically invoked functions -message.do.not.show.for.local.variables.in.future=Do not show for local variables in future -message.text.return.type.cannot.be.resolved=Return type ''{0}'' cannot be resolved.\nContinue? -message.text.type.alias.0.is.never.used=Type alias ''{0}'' is never used -message.type.for.cannot.be.resolved=Type ''{0}'' for {1} cannot be resolved.\nContinue? -name.extract.interface=Extract Interface -name.inline.type.alias=Inline Type Alias -name.introduce.import.alias=Introduce Import Alias -name.introduce.lambda.parameter=Introduce Lambda Parameter -name.introduce.parameter1=Introduce Parameter -name.introduce.type.alias=Introduce Type Alias -name.kdoc.for.abstracts=KDoc for abstracts -naming.convention.will.be.violated.after.rename=Naming conventions will be violated after rename -non.kotlin.usage.0=Non-Kotlin usage: {0} -parameter.name.is.invalid=Parameter name ''{0}'' is invalid -parameter.type.is.invalid=Parameter type ''{0}'' is invalid -parameter.types.are.not.denotable=Cannot extract method since following types are not denotable in the target scope: -refactoring.move.non.kotlin.file=Target must be a Kotlin file -return.type.is.invalid=Return type is invalid -searching.usages.of.0.parameter=Searching usages of ''{0}''parameter -selected.code.fragment.has.multiple.exit.points=Selected code fragment has multiple exit points -selected.code.fragment.has.multiple.output.values=Selected code fragment has more than 3 output values: -selected.code.fragment.has.output.values.and.exit.points=Selected code fragment has output values as well as alternative exit points -setter.of.0.will.become.invisible.after.extraction = Setter of {0} will become invisible after extraction -text.0.is.not.allowed.in.the.target.context=''{0}'' is not allowed in the target context -text.0.to.inline={0} to inline -text.0.will.no.longer.be.accessible.after.signature.change={0} will no longer be accessible after signature change -text.all=All -text.anonymous=[Anonymous] -text.callee.text.would.be.shown.here=Callee text would be shown here -text.caller.text.with.highlighted.callee.call.would.be.shown.here=Caller text\nwith highlighted callee call would be shown here -text.cannot.inline.0.1.usages=Cannot inline {0}/{1} usages -text.class.0.already.exists.in.the.target.scope=Class {0} already exists in the target scope -text.constructor=constructor -text.create.destructuring.declaration=Create destructuring declaration -text.create.single.variable=Create single variable -text.declaration=declaration -text.default.value=\ // default value = {0} -text.duplicating.local.variable=Duplicating local variable ''{0}'' -text.duplicating.parameter=Duplicating parameter ''{0}'' -text.duplicating.property=Duplicating property ''{0}'' -text.explicit.receiver.is.already.present.in.call.element.0=Explicit receiver is already present in call element: {0} -text.extract.superclass=Extract Superclass -text.file.0.already.exists.in.1=File {0} already exists in {1} -text.function.already.exists=Function already exists: ''{0}'' -text.function=function -text.inline.0.1.2=Inline {0} ''{1}''? {2} -text.inline.0=Inline {0} -text.inline.all.references.and.0.the.1=Inline all references and {0} the kind {1} -text.inline.recursive.function.is.supported.only.on.references=Inline recursive function is supported only on references -text.inline.this.reference.and.keep.the.0=Inline this reference and keep the {0} -text.inlining.0.1=Inlining {0} {1} -text.introduce.default.value=Intro&duce default value -text.keep=keep -text.lambda.parameter=lambda parameter -text.lambda.parameters=Lambda ¶meters:\u0020 -text.lambda.return.type=Lambda return &type -text.lazy.property=lazy property -text.local.property=property -text.local.variable=local variable -text.name=Name -text.no.name.provided.for.type.alias=No name provided for type alias -text.parameter.0=parameter ''{0}'' -text.parameter.name=Parameter &name:\u0020 -text.parameter.reference.can.t.be.safely.replaced.with.0.since.1.is.ambiguous.in.this.context=Parameter reference can''t be safely replaced with {0} since {1} is ambiguous in this context -text.parameter.reference.can.t.be.safely.replaced.with.0.since.target.function.can.t.be.referenced.in.this.context=Parameter reference can''t be safely replaced with {0} since target function can''t be referenced in this context -text.parameter.type=Parameter &type:\u0020 -text.parameter=parameter ''{0}'' -text.parameters=&Parameters -text.proceed.with.extraction=Proceed with extraction -text.process.duplicates=Process Duplicates -text.property.with.getter=property with getter -text.property.with.initializer=property with initializer -text.property=property -text.receiver.can.t.be.safely.transformed.to.value.argument=Receiver can''t be safely transformed to value argument: {0} -text.receiver=receiver -text.refactoring.can.t.be.performed.on.the.selected.code.element=Refactoring can''t be performed on the selected code element -text.refactoring.is.not.applicable.to.this.code.fragment=Refactoring is not applicable to this code fragment -text.remove.0.no.longer.used=Remove {0} no longer used -text.remove=remove -text.select.target.code.block.file=Select target code block / file -text.select.target.code.block=Select target code block -text.select.target.file=Select target file -text.the.following=The following -text.there.is.already.a.parameter=There is already a parameter ''{0}'' in {1}. It will conflict with the new parameter. -text.there.is.already.a.variable.0.in.1.it.will.conflict.with.the.new.parameter=There is already a variable ''{0}'' in {1}. It will conflict with the new parameter. -text.type.alias.cannot.refer.to.types.which.aren.t.accessible.in.the.scope.where.it.s.defined=Type alias cannot refer to types which aren''t accessible in the scope where it''s defined -text.type.alias.name.must.be.a.valid.identifier.0=Type alias name must be a valid identifier: {0} -text.type.alias=type alias -text.type.already.exists.in.the.target.scope=Type {0} already exists in the target scope -text.type.parameter.names.must.be.distinct=Type parameter names must be distinct -text.type.parameters=Type &Parameters -text.type=Type -text.update.usages.to.reflect.declaration.0.move=Update usages to reflect {0, choice, 0#declaration|1#declarations} move -text.variable=variable -title.inline.function=Inline Function -title.introduce.parameter.to.declaration=Introduce parameter to declaration -title.select.target.code.block=Select target code block -unsupported.usage.0=Unsupported usage: {0} \ No newline at end of file diff --git a/idea/resources/messages/KotlinReporterBundle.properties b/idea/resources/messages/KotlinReporterBundle.properties deleted file mode 100644 index 5498dc367bd..00000000000 --- a/idea/resources/messages/KotlinReporterBundle.properties +++ /dev/null @@ -1,5 +0,0 @@ -button.text.ignore=Ignore -button.text.update=Update -message.text.you.re.running.kotlin.plugin.version=You''re running Kotlin plugin version {0}, while the latest version is {1} -text.can.t.report.exception.from.patched.plugin=Can''t report exception from patched plugin -title.update.kotlin.plugin=Update Kotlin Plugin \ No newline at end of file diff --git a/idea/resources/messages/KotlinRootsBundle.properties b/idea/resources/messages/KotlinRootsBundle.properties deleted file mode 100644 index 427d2fa77e7..00000000000 --- a/idea/resources/messages/KotlinRootsBundle.properties +++ /dev/null @@ -1 +0,0 @@ -description.text.update.source.roots.for.non.jvm.modules.in.kotlin.project=Update source roots for non-JVM modules in Kotlin project \ No newline at end of file diff --git a/idea/resources/messages/KotlinScriptBundle.properties b/idea/resources/messages/KotlinScriptBundle.properties deleted file mode 100644 index 4a8e529c62c..00000000000 --- a/idea/resources/messages/KotlinScriptBundle.properties +++ /dev/null @@ -1,6 +0,0 @@ -action.text.ignore=Ignore -action.text.open.settings=Open Settings -action.text.show.all=Show all -name.kotlin.scripting=Kotlin Scripting -progress.text.kotlin.scanning.dependencies.for.script.definitions=Kotlin: scanning dependencies for script definitions... -text.multiple.script.definitions.are.applicable.for.this.script=Multiple script definitions are applicable for this script. {0} is used \ No newline at end of file diff --git a/idea/resources/messages/KotlinSlicerBundle.properties b/idea/resources/messages/KotlinSlicerBundle.properties deleted file mode 100644 index b9680644d01..00000000000 --- a/idea/resources/messages/KotlinSlicerBundle.properties +++ /dev/null @@ -1,5 +0,0 @@ -text.in=\ in {0} -text.tracking.enclosing.lambda=\ (Tracking enclosing lambda) -title.dataflow.from.here=Dataflow from Here -title.dataflow.to.here=Dataflow to Here -tool.tip.text.variable.dereferenced=Variable dereferenced \ No newline at end of file diff --git a/idea/resources/messages/KotlinTestIntegrationBundle.properties b/idea/resources/messages/KotlinTestIntegrationBundle.properties deleted file mode 100644 index 74367abe6e3..00000000000 --- a/idea/resources/messages/KotlinTestIntegrationBundle.properties +++ /dev/null @@ -1,5 +0,0 @@ -button.text.cancel=Cancel -button.text.rewrite=Rewrite -message.text.create.test.in.the.same.source.root=Create test in the same source root? -message.text.kotlin.class=Kotlin class ''{0}'' already exists. Do you want to update it? -title.no.test.roots.found=No Test Roots Found \ No newline at end of file diff --git a/idea/resources/messages/KotlinUpdateBundle.properties b/idea/resources/messages/KotlinUpdateBundle.properties deleted file mode 100644 index 853bf716c2e..00000000000 --- a/idea/resources/messages/KotlinUpdateBundle.properties +++ /dev/null @@ -1,6 +0,0 @@ -name.android.studio=Android Studio -reason.text.exception.during.verification=exception during verification {0} -reason.text.no.verified.versions.for.this.build=No verified versions for this build. -reason.text.unable.to.connect.to.compatibility.verification.repository=unable to connect to compatibility verification repository -reason.text.unable.to.parse.compatibility.verification.metadata=unable to parse compatibility verification metadata -reason.text.version.to.be.verified=Version to be verified. \ No newline at end of file diff --git a/idea/resources/messages/KotlinVersionBundle.properties b/idea/resources/messages/KotlinVersionBundle.properties deleted file mode 100644 index 70b8234c20c..00000000000 --- a/idea/resources/messages/KotlinVersionBundle.properties +++ /dev/null @@ -1,3 +0,0 @@ -title.no.runtime.found=No Runtime Found -dialog.message.is.not.found.make.sure.plugin.is.properly.installed={0} is not found. Make sure plugin is properly installed. -message.is.deprecated.since.1.2.0.and.should.be.replaced.with={0} is deprecated since 1.2.0 and should be replaced with {1} \ No newline at end of file diff --git a/idea/src/org/jetbrains/kotlin/idea/compiler/configuration/KotlinCompilerConfigurableTab.java b/idea/src/org/jetbrains/kotlin/idea/compiler/configuration/KotlinCompilerConfigurableTab.java index 07211d56f2c..f262a2a418d 100644 --- a/idea/src/org/jetbrains/kotlin/idea/compiler/configuration/KotlinCompilerConfigurableTab.java +++ b/idea/src/org/jetbrains/kotlin/idea/compiler/configuration/KotlinCompilerConfigurableTab.java @@ -33,7 +33,7 @@ import org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments; import org.jetbrains.kotlin.cli.common.arguments.K2JsArgumentConstants; import org.jetbrains.kotlin.config.*; import org.jetbrains.kotlin.idea.PluginStartupService; -import org.jetbrains.kotlin.idea.configuration.KotlinConfigurationBundle; +import org.jetbrains.kotlin.idea.KotlinBundle; import org.jetbrains.kotlin.idea.facet.DescriptionListCellRenderer; import org.jetbrains.kotlin.idea.facet.KotlinFacet; import org.jetbrains.kotlin.idea.project.NewInferenceForIDEAnalysisComponent; @@ -60,19 +60,14 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { private static final int MAX_WARNING_SIZE = 75; static { - moduleKindDescriptions - .put(K2JsArgumentConstants.MODULE_PLAIN, KotlinConfigurationBundle.message("description.plain.put.to.global.scope")); - moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_AMD, KotlinConfigurationBundle.message("description.amd")); - moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_COMMONJS, KotlinConfigurationBundle.message("description.commonjs")); - moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_UMD, KotlinConfigurationBundle - .message("description.umd.detect.amd.or.commonjs.if.available.fallback.to.plain")); + moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_PLAIN, KotlinBundle.message("configuration.description.plain.put.to.global.scope")); + moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_AMD, KotlinBundle.message("configuration.description.amd")); + moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_COMMONJS, KotlinBundle.message("configuration.description.commonjs")); + moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_UMD, KotlinBundle.message("configuration.description.umd.detect.amd.or.commonjs.if.available.fallback.to.plain")); - soruceMapSourceEmbeddingDescriptions - .put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_NEVER, KotlinConfigurationBundle.message("description.never")); - soruceMapSourceEmbeddingDescriptions - .put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_ALWAYS, KotlinConfigurationBundle.message("description.always")); - soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_INLINING, KotlinConfigurationBundle - .message("description.when.inlining.a.function.from.other.module.with.embedded.sources")); + soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_NEVER, KotlinBundle.message("configuration.description.never")); + soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_ALWAYS, KotlinBundle.message("configuration.description.always")); + soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_INLINING, KotlinBundle.message("configuration.description.when.inlining.a.function.from.other.module.with.embedded.sources")); } @Nullable @@ -191,13 +186,13 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { private void initializeNonCidrSettings(boolean isMultiEditor) { setupFileChooser(labelForOutputPrefixFile, outputPrefixFile, - KotlinConfigurationBundle.message("title.kotlin.compiler.js.option.output.prefix.browse.title"), + KotlinBundle.message("configuration.title.kotlin.compiler.js.option.output.prefix.browse.title"), true); setupFileChooser(labelForOutputPostfixFile, outputPostfixFile, - KotlinConfigurationBundle.message("title.kotlin.compiler.js.option.output.postfix.browse.title"), + KotlinBundle.message("configuration.title.kotlin.compiler.js.option.output.postfix.browse.title"), true); setupFileChooser(labelForOutputDirectory, outputDirectory, - KotlinConfigurationBundle.message("title.choose.output.directory"), + KotlinBundle.message("configuration.title.choose.output.directory"), false); fillModuleKindList(); @@ -235,12 +230,12 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { int nameCountToShow = calculateNameCountToShowInWarning(modulesOverridingProjectSettings); int allNamesCount = modulesOverridingProjectSettings.size(); if (nameCountToShow == 0) { - return KotlinConfigurationBundle.message("warning.text.modules.override.project.settings", String.valueOf(allNamesCount)); + return KotlinBundle.message("configuration.warning.text.modules.override.project.settings", String.valueOf(allNamesCount)); } StringBuilder builder = new StringBuilder(); builder.append(""); - builder.append(KotlinConfigurationBundle.message("warning.text.following.modules.override.project.settings")).append(" "); + builder.append(KotlinBundle.message("configuration.warning.text.following.modules.override.project.settings")).append(" "); CollectionsKt.joinTo( modulesOverridingProjectSettings.subList(0, nameCountToShow), builder, @@ -257,8 +252,7 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { } ); if (nameCountToShow < allNamesCount) { - builder.append(" ").append(KotlinConfigurationBundle.message("text.and")).append(" ").append(allNamesCount - nameCountToShow) - .append(" ").append(KotlinConfigurationBundle.message("text.other.s")); + builder.append(" ").append(KotlinBundle.message("configuration.text.and")).append(" ").append(allNamesCount - nameCountToShow).append(" ").append(KotlinBundle.message("configuration.text.other.s")); } return builder.toString(); } @@ -636,7 +630,7 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { @Nls @Override public String getDisplayName() { - return KotlinConfigurationBundle.message("name.kotlin.compiler"); + return KotlinBundle.message("configuration.name.kotlin.compiler"); } @Nullable diff --git a/idea/src/org/jetbrains/kotlin/idea/compiler/configuration/KotlinCompilerConfigurableTab.java.192 b/idea/src/org/jetbrains/kotlin/idea/compiler/configuration/KotlinCompilerConfigurableTab.java.192 index 4b7f6d456d8..623982ef608 100644 --- a/idea/src/org/jetbrains/kotlin/idea/compiler/configuration/KotlinCompilerConfigurableTab.java.192 +++ b/idea/src/org/jetbrains/kotlin/idea/compiler/configuration/KotlinCompilerConfigurableTab.java.192 @@ -35,7 +35,7 @@ import org.jetbrains.kotlin.cli.common.arguments.K2JsArgumentConstants; import org.jetbrains.kotlin.config.*; import org.jetbrains.kotlin.idea.PluginStartupComponent; import org.jetbrains.kotlin.idea.configuration.ProjectUtilsKt; -import org.jetbrains.kotlin.idea.configuration.KotlinConfigurationBundle; +import org.jetbrains.kotlin.idea.KotlinBundle; import org.jetbrains.kotlin.idea.facet.DescriptionListCellRenderer; import org.jetbrains.kotlin.idea.facet.KotlinFacet; import org.jetbrains.kotlin.idea.project.NewInferenceForIDEAnalysisComponent; @@ -63,14 +63,14 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { private static final int MAX_WARNING_SIZE = 75; static { - moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_PLAIN, KotlinConfigurationBundle.message("description.plain.put.to.global.scope")); - moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_AMD, KotlinConfigurationBundle.message("description.amd")); - moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_COMMONJS, KotlinConfigurationBundle.message("description.commonjs")); - moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_UMD, KotlinConfigurationBundle.message("description.umd.detect.amd.or.commonjs.if.available.fallback.to.plain")); + moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_PLAIN, KotlinBundle.message("configuration.description.plain.put.to.global.scope")); + moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_AMD, KotlinBundle.message("configuration.description.amd")); + moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_COMMONJS, KotlinBundle.message("configuration.description.commonjs")); + moduleKindDescriptions.put(K2JsArgumentConstants.MODULE_UMD, KotlinBundle.message("configuration.description.umd.detect.amd.or.commonjs.if.available.fallback.to.plain")); - soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_NEVER, KotlinConfigurationBundle.message("description.never")); - soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_ALWAYS, KotlinConfigurationBundle.message("description.always")); - soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_INLINING, KotlinConfigurationBundle.message("description.when.inlining.a.function.from.other.module.with.embedded.sources")); + soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_NEVER, KotlinBundle.message("configuration.description.never")); + soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_ALWAYS, KotlinBundle.message("configuration.description.always")); + soruceMapSourceEmbeddingDescriptions.put(K2JsArgumentConstants.SOURCE_MAP_SOURCE_CONTENT_INLINING, KotlinBundle.message("configuration.description.when.inlining.a.function.from.other.module.with.embedded.sources")); } @Nullable @@ -189,13 +189,13 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { private void initializeNonCidrSettings(boolean isMultiEditor) { setupFileChooser(labelForOutputPrefixFile, outputPrefixFile, - KotlinConfigurationBundle.message("title.kotlin.compiler.js.option.output.prefix.browse.title"), + KotlinBundle.message("configuration.title.kotlin.compiler.js.option.output.prefix.browse.title"), true); setupFileChooser(labelForOutputPostfixFile, outputPostfixFile, - KotlinConfigurationBundle.message("title.kotlin.compiler.js.option.output.postfix.browse.title"), + KotlinBundle.message("configuration.title.kotlin.compiler.js.option.output.postfix.browse.title"), true); setupFileChooser(labelForOutputDirectory, outputDirectory, - KotlinConfigurationBundle.message("title.choose.output.directory"), + KotlinBundle.message("configuration.title.choose.output.directory"), false); fillModuleKindList(); @@ -233,12 +233,12 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { int nameCountToShow = calculateNameCountToShowInWarning(modulesOverridingProjectSettings); int allNamesCount = modulesOverridingProjectSettings.size(); if (nameCountToShow == 0) { - return KotlinConfigurationBundle.message("warning.text.modules.override.project.settings", String.valueOf(allNamesCount)); + return KotlinBundle.message("configuration.warning.text.modules.override.project.settings", String.valueOf(allNamesCount)); } StringBuilder builder = new StringBuilder(); builder.append(""); - builder.append(KotlinConfigurationBundle.message("warning.text.following.modules.override.project.settings")).append(" "); + builder.append(KotlinBundle.message("configuration.warning.text.following.modules.override.project.settings")).append(" "); CollectionsKt.joinTo( modulesOverridingProjectSettings.subList(0, nameCountToShow), builder, @@ -255,7 +255,7 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { } ); if (nameCountToShow < allNamesCount) { - builder.append(" ").append(KotlinConfigurationBundle.message("text.and")).append(" ").append(allNamesCount - nameCountToShow).append(" ").append(KotlinConfigurationBundle.message("text.other.s")); + builder.append(" ").append(KotlinBundle.message("configuration.text.and")).append(" ").append(allNamesCount - nameCountToShow).append(" ").append(KotlinBundle.message("configuration.text.other.s")); } return builder.toString(); } @@ -628,7 +628,7 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable { @Nls @Override public String getDisplayName() { - return KotlinConfigurationBundle.message("name.kotlin.compiler"); + return KotlinBundle.message("configuration.name.kotlin.compiler"); } @Nullable diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/ExperimentalFeatures.kt b/idea/src/org/jetbrains/kotlin/idea/configuration/ExperimentalFeatures.kt index 19f4c130714..accbb4c8777 100644 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/ExperimentalFeatures.kt +++ b/idea/src/org/jetbrains/kotlin/idea/configuration/ExperimentalFeatures.kt @@ -20,13 +20,13 @@ import javax.swing.JPanel object ExperimentalFeatures { val NewJ2k = RegistryExperimentalFeature( - title = KotlinConfigurationBundle.message("feature.text.new.java.to.kotlin.converter"), + title = KotlinBundle.message("configuration.feature.text.new.java.to.kotlin.converter"), registryKey = "kotlin.experimental.new.j2k", enabledByDefault = true ) val NewWizard = object : RegistryExperimentalFeature( - title = KotlinConfigurationBundle.message("feature.text.new.experimental.project.wizard"), + title = KotlinBundle.message("configuration.feature.text.new.experimental.project.wizard"), registryKey = "kotlin.experimental.project.wizard", enabledByDefault = false ) { diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/KotlinConfigurationBundle.kt b/idea/src/org/jetbrains/kotlin/idea/configuration/KotlinConfigurationBundle.kt deleted file mode 100644 index a16f2a3779d..00000000000 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/KotlinConfigurationBundle.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.idea.configuration - -import org.jetbrains.annotations.NonNls -import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.util.AbstractKotlinBundle - -@NonNls -private const val BUNDLE = "messages.KotlinConfigurationBundle" - -object KotlinConfigurationBundle : AbstractKotlinBundle(BUNDLE) { - @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) -} diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/KotlinLanguageConfiguration.kt b/idea/src/org/jetbrains/kotlin/idea/configuration/KotlinLanguageConfiguration.kt index f304a85a8c6..9094732c011 100644 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/KotlinLanguageConfiguration.kt +++ b/idea/src/org/jetbrains/kotlin/idea/configuration/KotlinLanguageConfiguration.kt @@ -9,6 +9,7 @@ import com.intellij.ide.IdeBundle import com.intellij.openapi.options.Configurable import com.intellij.openapi.options.SearchableConfigurable import com.intellij.openapi.updateSettings.impl.UpdateSettings +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.KotlinPluginUpdater import org.jetbrains.kotlin.idea.KotlinPluginUtil import org.jetbrains.kotlin.idea.PluginUpdateStatus @@ -28,20 +29,20 @@ class KotlinLanguageConfiguration : SearchableConfigurable, Configurable.NoScrol UpdateChannel.values().find { it.ordinal == channelOrdinal }?.let { eapChannel -> if (eapChannel != UpdateChannel.STABLE) { - hosts.add(eapChannel.url ?: error(KotlinConfigurationBundle.message("error.text.shouldn.t.add.null.urls.to.custom.repositories"))) + hosts.add(eapChannel.url ?: error(KotlinBundle.message("configuration.error.text.shouldn.t.add.null.urls.to.custom.repositories"))) } } } enum class UpdateChannel(val url: String?, val title: String) { - STABLE(null, KotlinConfigurationBundle.message("title.stable")), + STABLE(null, KotlinBundle.message("configuration.title.stable")), EAP( "https://plugins.jetbrains.com/plugins/eap/${KotlinPluginUtil.KOTLIN_PLUGIN_ID.idString}", - KotlinConfigurationBundle.message("title.early.access.preview.1.3.x") + KotlinBundle.message("configuration.title.early.access.preview.1.3.x") ), EAP_NEXT( "https://plugins.jetbrains.com/plugins/eap-next/${KotlinPluginUtil.KOTLIN_PLUGIN_ID.idString}", - KotlinConfigurationBundle.message("title.early.access.preview.1.4.x") + KotlinBundle.message("configuration.title.early.access.preview.1.4.x") ); fun isInHosts(): Boolean { @@ -63,7 +64,7 @@ class KotlinLanguageConfiguration : SearchableConfigurable, Configurable.NoScrol override fun getId(): String = ID - override fun getDisplayName(): String = KotlinConfigurationBundle.message("name.kotlin") + override fun getDisplayName(): String = KotlinBundle.message("configuration.name.kotlin") override fun isModified() = form.experimentalFeaturesPanel.isModified() @@ -92,7 +93,7 @@ class KotlinLanguageConfiguration : SearchableConfigurable, Configurable.NoScrol update?.let { form.hideInstallButton() - setInstalledVersion(it.pluginDescriptor.version, KotlinConfigurationBundle.message("status.text.installing")) + setInstalledVersion(it.pluginDescriptor.version, KotlinBundle.message("configuration.status.text.installing")) form.installStatusLabel.text = installingStatus @@ -114,7 +115,7 @@ class KotlinLanguageConfiguration : SearchableConfigurable, Configurable.NoScrol }, errorCallback = { if (versionForInstallation == it.pluginDescriptor.version) { - form.installStatusLabel.text = KotlinConfigurationBundle.message("status.text.installation.failed") + form.installStatusLabel.text = KotlinBundle.message("configuration.status.text.installation.failed") form.showInstallButton() setInstalledVersion(null, null) } @@ -153,7 +154,7 @@ class KotlinLanguageConfiguration : SearchableConfigurable, Configurable.NoScrol when (pluginUpdateStatus) { PluginUpdateStatus.LatestVersionInstalled -> { form.setUpdateStatus( - KotlinConfigurationBundle.message("message.text.you.have.the.latest.version.of.the.plugin.installed"), + KotlinBundle.message("configuration.message.text.you.have.the.latest.version.of.the.plugin.installed"), false ) } @@ -162,8 +163,7 @@ class KotlinLanguageConfiguration : SearchableConfigurable, Configurable.NoScrol update = pluginUpdateStatus versionForInstallation = update?.pluginDescriptor?.version form.setUpdateStatus( - KotlinConfigurationBundle.message( - "message.text.a.new.version.is.available", + KotlinBundle.message("configuration.message.text.a.new.version.is.available", pluginUpdateStatus.pluginDescriptor.version ), true @@ -177,14 +177,13 @@ class KotlinLanguageConfiguration : SearchableConfigurable, Configurable.NoScrol is PluginUpdateStatus.CheckFailed -> form.setUpdateStatus( - KotlinConfigurationBundle.message("message.text.update.check.failed", pluginUpdateStatus.message), + KotlinBundle.message("configuration.message.text.update.check.failed", pluginUpdateStatus.message), false ) is PluginUpdateStatus.Unverified -> { val version = pluginUpdateStatus.updateStatus.pluginDescriptor.version - val generalLine = KotlinConfigurationBundle.message( - "message.text.a.new.version.is.found", + val generalLine = KotlinBundle.message("configuration.message.text.a.new.version.is.found", version, pluginUpdateStatus.verifierName ) diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/outdatedBundledCompilerNotification.kt b/idea/src/org/jetbrains/kotlin/idea/configuration/outdatedBundledCompilerNotification.kt index 3180da9c8ab..01501bc13a2 100644 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/outdatedBundledCompilerNotification.kt +++ b/idea/src/org/jetbrains/kotlin/idea/configuration/outdatedBundledCompilerNotification.kt @@ -22,6 +22,7 @@ import com.intellij.openapi.util.Key import com.intellij.util.text.VersionComparatorUtil import org.jetbrains.kotlin.config.KotlinCompilerVersion import org.jetbrains.kotlin.config.LanguageVersion +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.KotlinPluginUtil import org.jetbrains.kotlin.idea.actions.ConfigurePluginUpdatesAction import org.jetbrains.kotlin.idea.project.languageVersionSettings @@ -46,7 +47,7 @@ fun notifyOutdatedBundledCompilerIfNecessary(project: Project) { Notifications.Bus.notify( Notification( OUTDATED_BUNDLED_COMPILER_GROUP_DISPLAY_ID, - KotlinConfigurationBundle.message("title.outdated.bundled.kotlin.compiler"), + KotlinBundle.message("configuration.title.outdated.bundled.kotlin.compiler"), message, NotificationType.WARNING, NotificationListener { notification, event -> @@ -130,10 +131,10 @@ fun createOutdatedBundledCompilerMessage(project: Project, bundledCompilerVersio modulesStr = modulesStr.removeSuffix("
") return """ -

${KotlinConfigurationBundle.message("text.the.compiler.bundled.to.kotlin.plugin", bundledCompilerVersion)}

+

${KotlinBundle.message("configuration.text.the.compiler.bundled.to.kotlin.plugin", bundledCompilerVersion)}

-

${KotlinConfigurationBundle.message("text.this.may.cause.different.set.of.errors.and.warnings.reported.in.ide.p")}

-

${KotlinConfigurationBundle.message("action.text.update")} ${KotlinConfigurationBundle.message("action.text.ignore")}

""" +

${KotlinBundle.message("configuration.text.this.may.cause.different.set.of.errors.and.warnings.reported.in.ide.p")}

+

${KotlinBundle.message("configuration.action.text.update")} ${KotlinBundle.message("configuration.action.text.ignore")}

""" .trimIndent().lines().joinToString(separator = "").replace("
", "\n") } diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/ui/KotlinLanguageConfigurationForm.java b/idea/src/org/jetbrains/kotlin/idea/configuration/ui/KotlinLanguageConfigurationForm.java index 64f1597836c..cf45064d554 100644 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/ui/KotlinLanguageConfigurationForm.java +++ b/idea/src/org/jetbrains/kotlin/idea/configuration/ui/KotlinLanguageConfigurationForm.java @@ -11,7 +11,7 @@ import com.intellij.util.ui.AsyncProcessIcon; import org.jetbrains.kotlin.idea.KotlinPluginUtil; import org.jetbrains.kotlin.idea.PlatformVersion; import org.jetbrains.kotlin.idea.configuration.ExperimentalFeaturesPanel; -import org.jetbrains.kotlin.idea.configuration.KotlinConfigurationBundle; +import org.jetbrains.kotlin.idea.KotlinBundle; import org.jetbrains.kotlin.idea.util.VersioningKt; import javax.swing.*; @@ -41,7 +41,7 @@ public class KotlinLanguageConfigurationForm { if (KotlinPluginUtil.isPatched()) { @SuppressWarnings("deprecation") String pluginVersionFromIdea = KotlinPluginUtil.getPluginVersionFromIdea(); - currentVersion.setText(KotlinConfigurationBundle.message("text.patched.original", pluginVersion, pluginVersionFromIdea)); + currentVersion.setText(KotlinBundle.message("configuration.text.patched.original", pluginVersion, pluginVersionFromIdea)); } else { currentVersion.setText(pluginVersion); } @@ -107,7 +107,7 @@ public class KotlinLanguageConfigurationForm { private void showVerifierDisabledStatus() { //noinspection UnresolvedPropertyKey if (!Registry.is("kotlin.plugin.update.verifier.enabled", true)) { - verifierDisabledText.setText(KotlinConfigurationBundle.message("message.verifier.disabled")); + verifierDisabledText.setText(KotlinBundle.message("configuration.message.verifier.disabled")); } else { verifierDisabledText.setText(""); diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/ui/NotPropertyListPanel.kt b/idea/src/org/jetbrains/kotlin/idea/configuration/ui/NotPropertyListPanel.kt index 235c9b6ebb1..fb36df4a945 100644 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/ui/NotPropertyListPanel.kt +++ b/idea/src/org/jetbrains/kotlin/idea/configuration/ui/NotPropertyListPanel.kt @@ -8,7 +8,7 @@ package org.jetbrains.kotlin.idea.configuration.ui import com.intellij.openapi.ui.Messages import com.intellij.openapi.ui.NonEmptyInputValidator import com.intellij.ui.AddEditRemovePanel -import org.jetbrains.kotlin.idea.configuration.KotlinConfigurationBundle +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.name.FqNameUnsafe class NotPropertyListPanel(data: MutableList) : AddEditRemovePanel(MyTableModel(), data) { @@ -22,8 +22,8 @@ class NotPropertyListPanel(data: MutableList) : AddEditRemovePanel override fun editItem(fqName: FqNameUnsafe): FqNameUnsafe? { val result = Messages.showInputDialog( - this, KotlinConfigurationBundle.message("message.enter.fully.qualified.method.name"), - KotlinConfigurationBundle.message("title.edit.exclusion"), + this, KotlinBundle.message("configuration.message.enter.fully.qualified.method.name"), + KotlinBundle.message("configuration.title.edit.exclusion"), Messages.getQuestionIcon(), fqName.asString(), NonEmptyInputValidator() @@ -40,8 +40,8 @@ class NotPropertyListPanel(data: MutableList) : AddEditRemovePanel override fun addItem(): FqNameUnsafe? { val result = Messages.showInputDialog( - this, KotlinConfigurationBundle.message("message.enter.fully.qualified.method.name"), - KotlinConfigurationBundle.message("text.add.exclusion"), + this, KotlinBundle.message("configuration.message.enter.fully.qualified.method.name"), + KotlinBundle.message("configuration.text.add.exclusion"), Messages.getQuestionIcon(), "", NonEmptyInputValidator() @@ -58,7 +58,7 @@ class NotPropertyListPanel(data: MutableList) : AddEditRemovePanel class MyTableModel : AddEditRemovePanel.TableModel() { override fun getField(o: FqNameUnsafe, columnIndex: Int) = o.asString() - override fun getColumnName(columnIndex: Int) = KotlinConfigurationBundle.message("name.method") + override fun getColumnName(columnIndex: Int) = KotlinBundle.message("configuration.name.method") override fun getColumnCount() = 1 } } diff --git a/idea/src/org/jetbrains/kotlin/idea/configuration/ui/migrationNotification.kt b/idea/src/org/jetbrains/kotlin/idea/configuration/ui/migrationNotification.kt index f11e4d64d58..9b4038f70e6 100644 --- a/idea/src/org/jetbrains/kotlin/idea/configuration/ui/migrationNotification.kt +++ b/idea/src/org/jetbrains/kotlin/idea/configuration/ui/migrationNotification.kt @@ -9,17 +9,17 @@ import com.intellij.notification.* import com.intellij.openapi.actionSystem.ActionManager import com.intellij.openapi.actionSystem.impl.SimpleDataContext import com.intellij.openapi.project.Project -import org.jetbrains.kotlin.idea.configuration.KotlinConfigurationBundle +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.configuration.MigrationInfo import org.jetbrains.kotlin.idea.migration.CodeMigrationAction internal fun showMigrationNotification(project: Project, migrationInfo: MigrationInfo) { val detectedChangeMessage = buildString { - appendBr(KotlinConfigurationBundle.message("migration.text.detected.migration")) + appendBr(KotlinBundle.message("configuration.migration.text.detected.migration")) if (migrationInfo.oldStdlibVersion != migrationInfo.newStdlibVersion) { appendIndentBr( - KotlinConfigurationBundle.message( - "migration.text.standard.library", + KotlinBundle.message( + "configuration.migration.text.standard.library", migrationInfo.oldStdlibVersion, migrationInfo.newStdlibVersion ) @@ -28,8 +28,8 @@ internal fun showMigrationNotification(project: Project, migrationInfo: Migratio if (migrationInfo.oldLanguageVersion != migrationInfo.newLanguageVersion) { appendIndentBr( - KotlinConfigurationBundle.message( - "migration.text.language.version", + KotlinBundle.message( + "configuration.migration.text.language.version", migrationInfo.oldLanguageVersion, migrationInfo.newLanguageVersion ) @@ -38,8 +38,8 @@ internal fun showMigrationNotification(project: Project, migrationInfo: Migratio if (migrationInfo.oldApiVersion != migrationInfo.newApiVersion) { appendIndentBr( - KotlinConfigurationBundle.message( - "migration.text.api.version", + KotlinBundle.message( + "configuration.migration.text.api.version", migrationInfo.oldApiVersion, migrationInfo.newApiVersion ) @@ -49,13 +49,13 @@ internal fun showMigrationNotification(project: Project, migrationInfo: Migratio KOTLIN_MIGRATION_NOTIFICATION_GROUP .createNotification( - KotlinConfigurationBundle.message("migration.title.kotlin.migration"), - "${KotlinConfigurationBundle.message("migration.text.migrations.for.kotlin.code.are.available")}

$detectedChangeMessage", + KotlinBundle.message("configuration.migration.title.kotlin.migration"), + "${KotlinBundle.message("configuration.migration.text.migrations.for.kotlin.code.are.available")}

$detectedChangeMessage", NotificationType.WARNING, null ) .also { notification -> - notification.addAction(NotificationAction.createSimple(KotlinConfigurationBundle.message("migration.text.run.migrations")) { + notification.addAction(NotificationAction.createSimple(KotlinBundle.message("configuration.migration.text.run.migrations")) { val projectContext = SimpleDataContext.getProjectContext(project) val action = ActionManager.getInstance().getAction(CodeMigrationAction.ACTION_ID) Notification.fire(notification, action, projectContext) diff --git a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/ConvertJavaCopyPasteProcessor.kt b/idea/src/org/jetbrains/kotlin/idea/conversion/copy/ConvertJavaCopyPasteProcessor.kt index 901ae038168..8c4cfe5e9d7 100644 --- a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/ConvertJavaCopyPasteProcessor.kt +++ b/idea/src/org/jetbrains/kotlin/idea/conversion/copy/ConvertJavaCopyPasteProcessor.kt @@ -32,6 +32,7 @@ import com.intellij.openapi.util.ThrowableComputable import com.intellij.openapi.util.text.StringUtil import com.intellij.psi.* import org.jetbrains.annotations.TestOnly +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.actions.JavaToKotlinAction import org.jetbrains.kotlin.idea.caches.resolve.resolveImportReference import org.jetbrains.kotlin.idea.codeInsight.KotlinCopyPasteReferenceProcessor @@ -377,7 +378,7 @@ fun runPostProcessing( processor.updateState(0, phase, description) } }, - KotlinCopyBundle.message("text.convert.java.to.kotlin"), + KotlinBundle.message("copy.text.convert.java.to.kotlin"), true, project ) diff --git a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/CopiedKotlinCode.kt b/idea/src/org/jetbrains/kotlin/idea/conversion/copy/CopiedKotlinCode.kt index 25a9afb44f9..ff69499f22a 100644 --- a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/CopiedKotlinCode.kt +++ b/idea/src/org/jetbrains/kotlin/idea/conversion/copy/CopiedKotlinCode.kt @@ -17,6 +17,7 @@ package org.jetbrains.kotlin.idea.conversion.copy import com.intellij.codeInsight.editorActions.TextBlockTransferableData +import org.jetbrains.kotlin.idea.KotlinBundle import java.awt.datatransfer.DataFlavor @@ -29,6 +30,6 @@ class CopiedKotlinCode(val fileText: String, val startOffsets: IntArray, val end override fun setOffsets(offsets: IntArray?, index: Int) = index companion object { - val DATA_FLAVOR: DataFlavor = DataFlavor(CopiedKotlinCode::class.java, KotlinCopyBundle.message("text.copied.kotlin.code")) + val DATA_FLAVOR: DataFlavor = DataFlavor(CopiedKotlinCode::class.java, KotlinBundle.message("copy.text.copied.kotlin.code")) } } diff --git a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/KotlinCopyBundle.kt b/idea/src/org/jetbrains/kotlin/idea/conversion/copy/KotlinCopyBundle.kt deleted file mode 100644 index 235f95324d1..00000000000 --- a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/KotlinCopyBundle.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.idea.conversion.copy - -import org.jetbrains.annotations.NonNls -import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.util.AbstractKotlinBundle - -@NonNls -private const val BUNDLE = "messages.KotlinCopyBundle" - -object KotlinCopyBundle : AbstractKotlinBundle(BUNDLE) { - @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) -} diff --git a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/KotlinPasteFromJavaDialog.java b/idea/src/org/jetbrains/kotlin/idea/conversion/copy/KotlinPasteFromJavaDialog.java index 6237c124779..f8602e9b759 100644 --- a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/KotlinPasteFromJavaDialog.java +++ b/idea/src/org/jetbrains/kotlin/idea/conversion/copy/KotlinPasteFromJavaDialog.java @@ -20,6 +20,7 @@ import com.intellij.CommonBundle; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.DialogWrapper; import org.jetbrains.annotations.NotNull; +import org.jetbrains.kotlin.idea.KotlinBundle; import org.jetbrains.kotlin.idea.editor.KotlinEditorOptions; import javax.swing.*; @@ -39,9 +40,10 @@ public class KotlinPasteFromJavaDialog extends DialogWrapper { super(project, true); setModal(true); getRootPane().setDefaultButton(buttonOK); - setTitle(KotlinCopyBundle.message("title.convert.code.from.java")); + setTitle(KotlinBundle.message("copy.title.convert.code.from.java")); if (isPlainText) { - questionLabel.setText(KotlinCopyBundle.message("text.clipboard.content.seems.to.be.java.code.do.you.want.to.convert.it.to.kotlin")); + questionLabel.setText( + KotlinBundle.message("copy.text.clipboard.content.seems.to.be.java.code.do.you.want.to.convert.it.to.kotlin")); //TODO: should we also use different set of settings? } init(); diff --git a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/PlainTextPasteImportResolver.kt b/idea/src/org/jetbrains/kotlin/idea/conversion/copy/PlainTextPasteImportResolver.kt index c07b9fba8a8..84dedfdc252 100644 --- a/idea/src/org/jetbrains/kotlin/idea/conversion/copy/PlainTextPasteImportResolver.kt +++ b/idea/src/org/jetbrains/kotlin/idea/conversion/copy/PlainTextPasteImportResolver.kt @@ -24,6 +24,7 @@ import com.intellij.psi.util.PsiTreeUtil import org.jetbrains.kotlin.builtins.jvm.JavaToKotlinClassMap import org.jetbrains.kotlin.descriptors.ClassDescriptor import org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithVisibility +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.caches.project.getNullableModuleInfo import org.jetbrains.kotlin.idea.caches.resolve.analyzeWithContent import org.jetbrains.kotlin.idea.caches.resolve.getResolutionFacade @@ -134,7 +135,7 @@ class PlainTextPasteImportResolver(private val dataForConversion: DataForConvers } ProgressManager.getInstance().runProcessWithProgressSynchronously( - task, KotlinCopyBundle.message("text.adding.imports"), true, project + task, KotlinBundle.message("copy.text.adding.imports"), true, project ) } @@ -229,7 +230,7 @@ class PlainTextPasteImportResolver(private val dataForConversion: DataForConvers } ProgressManager.getInstance().runProcessWithProgressSynchronously( - task, KotlinCopyBundle.message("text.resolving.references"), true, project + task, KotlinBundle.message("copy.text.resolving.references"), true, project ) } diff --git a/idea/src/org/jetbrains/kotlin/idea/editor/KotlinEditorBundle.kt b/idea/src/org/jetbrains/kotlin/idea/editor/KotlinEditorBundle.kt deleted file mode 100644 index 39179c19096..00000000000 --- a/idea/src/org/jetbrains/kotlin/idea/editor/KotlinEditorBundle.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.idea.editor - -import org.jetbrains.annotations.NonNls -import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.util.AbstractKotlinBundle - -@NonNls -private const val BUNDLE = "messages.KotlinEditorBundle" - -object KotlinEditorBundle : AbstractKotlinBundle(BUNDLE) { - @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) -} diff --git a/idea/src/org/jetbrains/kotlin/idea/editor/KotlinEditorOptionsConfigurable.java b/idea/src/org/jetbrains/kotlin/idea/editor/KotlinEditorOptionsConfigurable.java index 151104c817e..cd79b03cf4f 100644 --- a/idea/src/org/jetbrains/kotlin/idea/editor/KotlinEditorOptionsConfigurable.java +++ b/idea/src/org/jetbrains/kotlin/idea/editor/KotlinEditorOptionsConfigurable.java @@ -8,6 +8,7 @@ package org.jetbrains.kotlin.idea.editor; import com.intellij.openapi.options.BeanConfigurable; import com.intellij.openapi.options.UnnamedConfigurable; import com.intellij.ui.IdeBorderFactory; +import org.jetbrains.kotlin.idea.KotlinBundle; import javax.swing.*; @@ -15,13 +16,13 @@ public class KotlinEditorOptionsConfigurable extends BeanConfigurable KotlinFacetBundle.message("column.name.plugin") - else -> KotlinFacetBundle.message("column.name.options") + 0 -> KotlinBundle.message("facet.column.name.plugin") + else -> KotlinBundle.message("facet.column.name.options") } override fun getColumnClass(columnIndex: Int) = String::class.java @@ -118,7 +119,7 @@ class KotlinFacetCompilerPluginsTab( val invalidOptions = optionsByTable.filter { parsePluginOption(it) == null } if (invalidOptions.isNotEmpty()) { val message = buildString { - append(KotlinFacetBundle.message("text.following.options.are.not.correct")) + append(KotlinBundle.message("facet.text.following.options.are.not.correct")) append("
") invalidOptions.joinTo(this, "
") { "$it" } } @@ -141,7 +142,7 @@ class KotlinFacetCompilerPluginsTab( validatorsManager.registerValidator(OptionValidator()) } - override fun getDisplayName() = KotlinFacetBundle.message("name.compiler.plugins") + override fun getDisplayName() = KotlinBundle.message("facet.name.compiler.plugins") override fun createComponent(): JComponent { val panel = JPanel(BorderLayout()) diff --git a/idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetEditorGeneralTab.kt b/idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetEditorGeneralTab.kt index e6df077f8c3..5a3bbe6010c 100644 --- a/idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetEditorGeneralTab.kt +++ b/idea/src/org/jetbrains/kotlin/idea/facet/KotlinFacetEditorGeneralTab.kt @@ -16,6 +16,7 @@ import org.jetbrains.kotlin.cli.common.arguments.* import org.jetbrains.kotlin.config.CompilerSettings import org.jetbrains.kotlin.config.createArguments import org.jetbrains.kotlin.config.splitArgumentString +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.compiler.configuration.* import org.jetbrains.kotlin.idea.core.util.onTextChange import org.jetbrains.kotlin.platform.* @@ -83,10 +84,12 @@ class KotlinFacetEditorGeneralTab( private fun FormBuilder.addTargetPlatformComponents(): FormBuilder { return if (configuration?.settings?.isHmppEnabled == true) { targetPlatformLabel.toolTipText = - KotlinFacetBundle.message("label.text.the.project.is.imported.from.external.build.system.and.could.not.be.edited") - this.addLabeledComponent(KotlinFacetBundle.message("label.text.selected.target.platforms"), targetPlatformLabel) + KotlinBundle.message("facet.label.text.the.project.is.imported.from.external.build.system.and.could.not.be.edited") + this.addLabeledComponent( + KotlinBundle.message("facet.label.text.selected.target.platforms"), targetPlatformLabel) } else { - this.addLabeledComponent(KotlinFacetBundle.message("label.text.target.platform"), targetPlatformSelectSingleCombobox) + this.addLabeledComponent( + KotlinBundle.message("facet.label.text.target.platform"), targetPlatformSelectSingleCombobox) } } @@ -132,7 +135,7 @@ class KotlinFacetEditorGeneralTab( isMultiEditor ) - useProjectSettingsCheckBox = ThreeStateCheckBox(KotlinFacetBundle.message("checkbox.text.use.project.settings")).apply { isThirdStateEnabled = isMultiEditor } + useProjectSettingsCheckBox = ThreeStateCheckBox(KotlinBundle.message("facet.checkbox.text.use.project.settings")).apply { isThirdStateEnabled = isMultiEditor } dependsOnLabel = JLabel() targetPlatformWrappers = CommonPlatforms.allDefaultTargetPlatforms.sortedBy { unifyJvmVersion(it.oldFashionedDescription) } @@ -152,14 +155,14 @@ class KotlinFacetEditorGeneralTab( text = (value as? TargetPlatformWrapper)?.targetPlatform?.componentPlatforms?.singleOrNull() ?.oldFashionedDescription - ?: KotlinFacetBundle.message("text.multiplatform") + ?: KotlinBundle.message("facet.text.multiplatform") } } }) } targetPlatformSelectSingleCombobox.maximumRowCount = targetPlatformsComboboxRowsCount(targetPlatformWrappers.size) - projectSettingsLink = HoverHyperlinkLabel(KotlinFacetBundle.message("link.text.edit.project.settings")).apply { + projectSettingsLink = HoverHyperlinkLabel(KotlinBundle.message("facet.link.text.edit.project.settings")).apply { addHyperlinkListener { ShowSettingsUtilImpl.showSettingsDialog(project, compilerConfigurable.id, "") if (useProjectSettingsCheckBox.isSelected) { @@ -224,7 +227,8 @@ class KotlinFacetEditorGeneralTab( inner class ArgumentConsistencyValidator : FacetEditorValidator() { override fun check(): ValidationResult { - val platform = editor.getChosenPlatform() ?: return ValidationResult(KotlinFacetBundle.message("error.text.at.least.one.target.platform.should.be.selected")) + val platform = editor.getChosenPlatform() ?: return ValidationResult( + KotlinBundle.message("facet.error.text.at.least.one.target.platform.should.be.selected")) val primaryArguments = platform.createArguments { editor.compilerConfigurable.applyTo( this, @@ -261,8 +265,8 @@ class KotlinFacetEditorGeneralTab( val message = buildString { if (overridingArguments.isNotEmpty()) { append( - KotlinFacetBundle.message( - "text.following.arguments.override.facet.settings", + KotlinBundle.message( + "facet.text.following.arguments.override.facet.settings", overridingArguments.joinToString() ) ) @@ -271,7 +275,8 @@ class KotlinFacetEditorGeneralTab( if (isNotEmpty()) { append("
") } - append(KotlinFacetBundle.message("text.following.arguments.are.redundant", redundantArguments.joinToString())) + append( + KotlinBundle.message("facet.text.following.arguments.are.redundant", redundantArguments.joinToString())) } } return ValidationResult(message) @@ -431,7 +436,7 @@ class KotlinFacetEditorGeneralTab( } } - override fun getDisplayName() = KotlinFacetBundle.message("name.general") + override fun getDisplayName() = KotlinBundle.message("facet.name.general") override fun createComponent(): JComponent { return editor diff --git a/idea/src/org/jetbrains/kotlin/idea/filters/InlineFunctionHyperLinkInfo.kt b/idea/src/org/jetbrains/kotlin/idea/filters/InlineFunctionHyperLinkInfo.kt index 10378b21e81..bf991e85063 100644 --- a/idea/src/org/jetbrains/kotlin/idea/filters/InlineFunctionHyperLinkInfo.kt +++ b/idea/src/org/jetbrains/kotlin/idea/filters/InlineFunctionHyperLinkInfo.kt @@ -14,6 +14,7 @@ import com.intellij.openapi.vfs.VirtualFile import com.intellij.ui.SimpleColoredComponent import com.intellij.ui.awt.RelativePoint import com.intellij.ui.components.JBList +import org.jetbrains.kotlin.idea.KotlinBundle import java.awt.Component import javax.swing.JList import javax.swing.ListCellRenderer @@ -32,7 +33,7 @@ class InlineFunctionHyperLinkInfo( val list = JBList(inlineInfo) list.cellRenderer = InlineInfoCellRenderer() val popup = JBPopupFactory.getInstance().createListPopupBuilder(list) - .setTitle(KotlinFiltersBundle.message("title.navigate.to")) + .setTitle(KotlinBundle.message("filters.title.navigate.to")) .setItemChoosenCallback { val fileInfo = list.selectedValue as InlineInfo OpenFileHyperlinkInfo(project, fileInfo.file, fileInfo.line).navigate(project) @@ -54,10 +55,10 @@ class InlineFunctionHyperLinkInfo( sealed class InlineInfo(val prefix: String, val file: VirtualFile, val line: Int) { class CallSiteInfo(file: VirtualFile, line: Int) : - InlineInfo(KotlinFiltersBundle.message("text.inline.function.call.site"), file, line) + InlineInfo(KotlinBundle.message("filters.text.inline.function.call.site"), file, line) class InlineFunctionBodyInfo(file: VirtualFile, line: Int) : - InlineInfo(KotlinFiltersBundle.message("text.inline.function.body"), file, line) + InlineInfo(KotlinBundle.message("filters.text.inline.function.body"), file, line) } private class InlineInfoCellRenderer : SimpleColoredComponent(), ListCellRenderer { diff --git a/idea/src/org/jetbrains/kotlin/idea/filters/KotlinFiltersBundle.kt b/idea/src/org/jetbrains/kotlin/idea/filters/KotlinFiltersBundle.kt deleted file mode 100644 index a9ca70e8b38..00000000000 --- a/idea/src/org/jetbrains/kotlin/idea/filters/KotlinFiltersBundle.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.idea.filters - -import org.jetbrains.annotations.NonNls -import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.util.AbstractKotlinBundle - -@NonNls -private const val BUNDLE = "messages.KotlinFiltersBundle" - -object KotlinFiltersBundle : AbstractKotlinBundle(BUNDLE) { - @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) -} diff --git a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinElementDescriptionProvider.kt b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinElementDescriptionProvider.kt index cd5e77c2c3b..08b7252300d 100644 --- a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinElementDescriptionProvider.kt +++ b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinElementDescriptionProvider.kt @@ -29,6 +29,7 @@ import com.intellij.usageView.UsageViewShortNameLocation import com.intellij.usageView.UsageViewTypeLocation import org.jetbrains.kotlin.asJava.classes.KtLightClassForFacade import org.jetbrains.kotlin.asJava.unwrapped +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.KotlinLanguage import org.jetbrains.kotlin.idea.refactoring.rename.RenameJavaSyntheticPropertyHandler import org.jetbrains.kotlin.idea.refactoring.rename.RenameKotlinPropertyProcessor @@ -118,36 +119,36 @@ class KotlinElementDescriptionProvider : ElementDescriptionProvider { fun elementKind() = when (targetElement) { is KtClass -> if (targetElement.isInterface()) - KotlinFindUsagesBundle.message("kotlin.lang.interface") + KotlinBundle.message("find.usages.interface") else - KotlinFindUsagesBundle.message("kotlin.lang.class") + KotlinBundle.message("find.usages.class") is KtObjectDeclaration -> if (targetElement.isCompanion()) - KotlinFindUsagesBundle.message("kotlin.lang.companion.object") + KotlinBundle.message("find.usages.companion.object") else - KotlinFindUsagesBundle.message("kotlin.lang.object") - is KtNamedFunction -> KotlinFindUsagesBundle.message("kotlin.lang.function") - is KtPropertyAccessor -> KotlinFindUsagesBundle.message( - "kotlin.lang.for.property", + KotlinBundle.message("find.usages.object") + is KtNamedFunction -> KotlinBundle.message("find.usages.function") + is KtPropertyAccessor -> KotlinBundle.message( + "find.usages.for.property", (if (targetElement.isGetter) - KotlinFindUsagesBundle.message("kotlin.lang.getter") + KotlinBundle.message("find.usages.getter") else - KotlinFindUsagesBundle.message("kotlin.lang.setter")) + KotlinBundle.message("find.usages.setter")) ) + " " - is KtFunctionLiteral -> KotlinFindUsagesBundle.message("kotlin.lang.lambda") - is KtPrimaryConstructor, is KtSecondaryConstructor -> KotlinFindUsagesBundle.message("kotlin.lang.constructor") + is KtFunctionLiteral -> KotlinBundle.message("find.usages.lambda") + is KtPrimaryConstructor, is KtSecondaryConstructor -> KotlinBundle.message("find.usages.constructor") is KtProperty -> if (targetElement.isLocal) - KotlinFindUsagesBundle.message("kotlin.lang.variable") + KotlinBundle.message("find.usages.variable") else - KotlinFindUsagesBundle.message("kotlin.lang.property") - is KtTypeParameter -> KotlinFindUsagesBundle.message("kotlin.lang.type.parameter") - is KtParameter -> KotlinFindUsagesBundle.message("kotlin.lang.parameter") - is KtDestructuringDeclarationEntry -> KotlinFindUsagesBundle.message("kotlin.lang.variable") - is KtTypeAlias -> KotlinFindUsagesBundle.message("kotlin.lang.type.alias") - is KtLabeledExpression -> KotlinFindUsagesBundle.message("kotlin.lang.label") - is KtImportAlias -> KotlinFindUsagesBundle.message("kotlin.lang.import.alias") - is RenameJavaSyntheticPropertyHandler.SyntheticPropertyWrapper -> KotlinFindUsagesBundle.message("kotlin.lang.property") - is KtLightClassForFacade -> KotlinFindUsagesBundle.message("kotlin.lang.facade.class") - is RenameKotlinPropertyProcessor.PropertyMethodWrapper -> KotlinFindUsagesBundle.message("kotlin.lang.property.accessor") + KotlinBundle.message("find.usages.property") + is KtTypeParameter -> KotlinBundle.message("find.usages.type.parameter") + is KtParameter -> KotlinBundle.message("find.usages.parameter") + is KtDestructuringDeclarationEntry -> KotlinBundle.message("find.usages.variable") + is KtTypeAlias -> KotlinBundle.message("find.usages.type.alias") + is KtLabeledExpression -> KotlinBundle.message("find.usages.label") + is KtImportAlias -> KotlinBundle.message("find.usages.import.alias") + is RenameJavaSyntheticPropertyHandler.SyntheticPropertyWrapper -> KotlinBundle.message("find.usages.property") + is KtLightClassForFacade -> KotlinBundle.message("find.usages.facade.class") + is RenameKotlinPropertyProcessor.PropertyMethodWrapper -> KotlinBundle.message("find.usages.property.accessor") else -> null } diff --git a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesBundle.kt b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesBundle.kt deleted file mode 100644 index f27c1dd706e..00000000000 --- a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesBundle.kt +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.idea.findUsages - -import org.jetbrains.annotations.NonNls -import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.util.AbstractKotlinBundle - -@NonNls -private const val BUNDLE = "messages.KotlinFindUsagesBundle" - -object KotlinFindUsagesBundle : AbstractKotlinBundle(BUNDLE) { - @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) - - @JvmStatic - fun lazyMessage(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): () -> String = { getMessage(key, *params) } -} diff --git a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesHandlerFactory.kt b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesHandlerFactory.kt index d012ff51b02..9b6d6a8631f 100644 --- a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesHandlerFactory.kt +++ b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesHandlerFactory.kt @@ -28,6 +28,7 @@ import com.intellij.psi.PsiElement import com.intellij.psi.search.searches.OverridingMethodsSearch import org.jetbrains.kotlin.asJava.toLightMethods import org.jetbrains.kotlin.asJava.unwrapped +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.core.isOverridable import org.jetbrains.kotlin.idea.findUsages.handlers.DelegatingFindMemberUsagesHandler import org.jetbrains.kotlin.idea.findUsages.handlers.KotlinFindClassUsagesHandler @@ -64,7 +65,7 @@ class KotlinFindUsagesHandlerFactory(project: Project) : FindUsagesHandlerFactor val declarationsToSearch = checkSuperMethods( element, null, - KotlinFindUsagesBundle.message("action.text.find.usages.of") + KotlinBundle.message("find.usages.action.text.find.usages.of") ) return handlerForMultiple(element, declarationsToSearch) @@ -101,7 +102,7 @@ class KotlinFindUsagesHandlerFactory(project: Project) : FindUsagesHandlerFactor val declarationsToSearch = checkSuperMethods( declaration, null, - KotlinFindUsagesBundle.message("action.text.find.usages.of") + KotlinBundle.message("find.usages.action.text.find.usages.of") ) return handlerForMultiple(declaration, declarationsToSearch) diff --git a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesProvider.kt b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesProvider.kt index a838e415397..c205744cce7 100644 --- a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesProvider.kt +++ b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinFindUsagesProvider.kt @@ -11,6 +11,7 @@ import com.intellij.lang.java.JavaFindUsagesProvider import com.intellij.psi.* import org.jetbrains.kotlin.asJava.elements.KtLightElement import org.jetbrains.kotlin.descriptors.FunctionDescriptor +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.caches.resolve.unsafeResolveToDescriptor import org.jetbrains.kotlin.idea.util.IdeDescriptorRenderers import org.jetbrains.kotlin.psi.* @@ -30,17 +31,17 @@ class KotlinFindUsagesProvider : FindUsagesProvider { override fun getType(element: PsiElement): String { return when (element) { - is KtNamedFunction -> KotlinFindUsagesBundle.message("kotlin.lang.function") - is KtClass -> KotlinFindUsagesBundle.message("kotlin.lang.class") - is KtParameter -> KotlinFindUsagesBundle.message("kotlin.lang.parameter") + is KtNamedFunction -> KotlinBundle.message("find.usages.function") + is KtClass -> KotlinBundle.message("find.usages.class") + is KtParameter -> KotlinBundle.message("find.usages.parameter") is KtProperty -> if (element.isLocal) - KotlinFindUsagesBundle.message("kotlin.lang.variable") + KotlinBundle.message("find.usages.variable") else - KotlinFindUsagesBundle.message("kotlin.lang.property") - is KtDestructuringDeclarationEntry -> KotlinFindUsagesBundle.message("kotlin.lang.variable") - is KtTypeParameter -> KotlinFindUsagesBundle.message("kotlin.lang.type.parameter") - is KtSecondaryConstructor -> KotlinFindUsagesBundle.message("kotlin.lang.constructor") - is KtObjectDeclaration -> KotlinFindUsagesBundle.message("kotlin.lang.object") + KotlinBundle.message("find.usages.property") + is KtDestructuringDeclarationEntry -> KotlinBundle.message("find.usages.variable") + is KtTypeParameter -> KotlinBundle.message("find.usages.type.parameter") + is KtSecondaryConstructor -> KotlinBundle.message("find.usages.constructor") + is KtObjectDeclaration -> KotlinBundle.message("find.usages.object") else -> "" } } diff --git a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinUsageTypeProvider.kt b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinUsageTypeProvider.kt index 2bbd4705c27..859d2253b26 100644 --- a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinUsageTypeProvider.kt +++ b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinUsageTypeProvider.kt @@ -20,6 +20,7 @@ import com.intellij.psi.PsiElement import com.intellij.usages.UsageTarget import com.intellij.usages.impl.rules.UsageType import com.intellij.usages.impl.rules.UsageTypeProviderEx +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.findUsages.UsageTypeEnum.* object KotlinUsageTypeProvider : UsageTypeProviderEx { @@ -74,35 +75,35 @@ object KotlinUsageTypeProvider : UsageTypeProviderEx { object KotlinUsageTypes { // types - val TYPE_CONSTRAINT = UsageType(KotlinFindUsagesBundle.message("find.usages.type.type.constraint")) - val VALUE_PARAMETER_TYPE = UsageType(KotlinFindUsagesBundle.message("find.usages.type.value.parameter.type")) - val NON_LOCAL_PROPERTY_TYPE = UsageType(KotlinFindUsagesBundle.message("find.usages.type.nonLocal.property.type")) - val FUNCTION_RETURN_TYPE = UsageType(KotlinFindUsagesBundle.message("find.usages.type.function.return.type")) - val SUPER_TYPE = UsageType(KotlinFindUsagesBundle.message("find.usages.type.superType")) - val IS = UsageType(KotlinFindUsagesBundle.message("find.usages.type.is")) - val CLASS_OBJECT_ACCESS = UsageType(KotlinFindUsagesBundle.message("find.usages.type.class.object")) - val COMPANION_OBJECT_ACCESS = UsageType(KotlinFindUsagesBundle.message("find.usages.type.companion.object")) - val EXTENSION_RECEIVER_TYPE = UsageType(KotlinFindUsagesBundle.message("find.usages.type.extension.receiver.type")) - val SUPER_TYPE_QUALIFIER = UsageType(KotlinFindUsagesBundle.message("find.usages.type.super.type.qualifier")) - val TYPE_ALIAS = UsageType(KotlinFindUsagesBundle.message("type.type.alias")) + val TYPE_CONSTRAINT = UsageType(KotlinBundle.message("find.usages.type.type.constraint")) + val VALUE_PARAMETER_TYPE = UsageType(KotlinBundle.message("find.usages.type.value.parameter.type")) + val NON_LOCAL_PROPERTY_TYPE = UsageType(KotlinBundle.message("find.usages.type.nonLocal.property.type")) + val FUNCTION_RETURN_TYPE = UsageType(KotlinBundle.message("find.usages.type.function.return.type")) + val SUPER_TYPE = UsageType(KotlinBundle.message("find.usages.type.superType")) + val IS = UsageType(KotlinBundle.message("find.usages.type.is")) + val CLASS_OBJECT_ACCESS = UsageType(KotlinBundle.message("find.usages.type.class.object")) + val COMPANION_OBJECT_ACCESS = UsageType(KotlinBundle.message("find.usages.type.companion.object")) + val EXTENSION_RECEIVER_TYPE = UsageType(KotlinBundle.message("find.usages.type.extension.receiver.type")) + val SUPER_TYPE_QUALIFIER = UsageType(KotlinBundle.message("find.usages.type.super.type.qualifier")) + val TYPE_ALIAS = UsageType(KotlinBundle.message("find.usages.type.type.alias")) // functions - val FUNCTION_CALL = UsageType(KotlinFindUsagesBundle.message("find.usages.type.function.call")) - val IMPLICIT_GET = UsageType(KotlinFindUsagesBundle.message("find.usages.type.implicit.get")) - val IMPLICIT_SET = UsageType(KotlinFindUsagesBundle.message("find.usages.type.implicit.set")) - val IMPLICIT_INVOKE = UsageType(KotlinFindUsagesBundle.message("find.usages.type.implicit.invoke")) - val IMPLICIT_ITERATION = UsageType(KotlinFindUsagesBundle.message("find.usages.type.implicit.iteration")) - val PROPERTY_DELEGATION = UsageType(KotlinFindUsagesBundle.message("find.usages.type.property.delegation")) + val FUNCTION_CALL = UsageType(KotlinBundle.message("find.usages.type.function.call")) + val IMPLICIT_GET = UsageType(KotlinBundle.message("find.usages.type.implicit.get")) + val IMPLICIT_SET = UsageType(KotlinBundle.message("find.usages.type.implicit.set")) + val IMPLICIT_INVOKE = UsageType(KotlinBundle.message("find.usages.type.implicit.invoke")) + val IMPLICIT_ITERATION = UsageType(KotlinBundle.message("find.usages.type.implicit.iteration")) + val PROPERTY_DELEGATION = UsageType(KotlinBundle.message("find.usages.type.property.delegation")) // values - val RECEIVER = UsageType(KotlinFindUsagesBundle.message("find.usages.type.receiver")) - val DELEGATE = UsageType(KotlinFindUsagesBundle.message("find.usages.type.delegate")) + val RECEIVER = UsageType(KotlinBundle.message("find.usages.type.receiver")) + val DELEGATE = UsageType(KotlinBundle.message("find.usages.type.delegate")) // packages - val PACKAGE_DIRECTIVE = UsageType(KotlinFindUsagesBundle.message("find.usages.type.packageDirective")) - val PACKAGE_MEMBER_ACCESS = UsageType(KotlinFindUsagesBundle.message("find.usages.type.packageMemberAccess")) + val PACKAGE_DIRECTIVE = UsageType(KotlinBundle.message("find.usages.type.packageDirective")) + val PACKAGE_MEMBER_ACCESS = UsageType(KotlinBundle.message("find.usages.type.packageMemberAccess")) // common usage types - val CALLABLE_REFERENCE = UsageType(KotlinFindUsagesBundle.message("find.usages.type.callable.reference")) - val NAMED_ARGUMENT = UsageType(KotlinFindUsagesBundle.message("type.named.argument")) + val CALLABLE_REFERENCE = UsageType(KotlinBundle.message("find.usages.type.callable.reference")) + val NAMED_ARGUMENT = UsageType(KotlinBundle.message("find.usages.type.named.argument")) } diff --git a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinUsageTypeProvider.kt.201 b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinUsageTypeProvider.kt.201 index 83a7ce21c84..3f10e9ed73d 100644 --- a/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinUsageTypeProvider.kt.201 +++ b/idea/src/org/jetbrains/kotlin/idea/findUsages/KotlinUsageTypeProvider.kt.201 @@ -20,6 +20,7 @@ import com.intellij.psi.PsiElement import com.intellij.usages.UsageTarget import com.intellij.usages.impl.rules.UsageType import com.intellij.usages.impl.rules.UsageTypeProviderEx +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.findUsages.UsageTypeEnum.* object KotlinUsageTypeProvider : UsageTypeProviderEx { @@ -74,35 +75,35 @@ object KotlinUsageTypeProvider : UsageTypeProviderEx { object KotlinUsageTypes { // types - val TYPE_CONSTRAINT = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.type.constraint")) - val VALUE_PARAMETER_TYPE = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.value.parameter.type")) - val NON_LOCAL_PROPERTY_TYPE = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.nonLocal.property.type")) - val FUNCTION_RETURN_TYPE = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.function.return.type")) - val SUPER_TYPE = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.superType")) - val IS = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.is")) - val CLASS_OBJECT_ACCESS = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.class.object")) - val COMPANION_OBJECT_ACCESS = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.companion.object")) - val EXTENSION_RECEIVER_TYPE = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.extension.receiver.type")) - val SUPER_TYPE_QUALIFIER = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.super.type.qualifier")) - val TYPE_ALIAS = UsageType(KotlinFindUsagesBundle.lazyMessage("type.type.alias")) + val TYPE_CONSTRAINT = UsageType(KotlinBundle.lazyMessage("find.usages.type.type.constraint")) + val VALUE_PARAMETER_TYPE = UsageType(KotlinBundle.lazyMessage("find.usages.type.value.parameter.type")) + val NON_LOCAL_PROPERTY_TYPE = UsageType(KotlinBundle.lazyMessage("find.usages.type.nonLocal.property.type")) + val FUNCTION_RETURN_TYPE = UsageType(KotlinBundle.lazyMessage("find.usages.type.function.return.type")) + val SUPER_TYPE = UsageType(KotlinBundle.lazyMessage("find.usages.type.superType")) + val IS = UsageType(KotlinBundle.lazyMessage("find.usages.type.is")) + val CLASS_OBJECT_ACCESS = UsageType(KotlinBundle.lazyMessage("find.usages.type.class.object")) + val COMPANION_OBJECT_ACCESS = UsageType(KotlinBundle.lazyMessage("find.usages.type.companion.object")) + val EXTENSION_RECEIVER_TYPE = UsageType(KotlinBundle.lazyMessage("find.usages.type.extension.receiver.type")) + val SUPER_TYPE_QUALIFIER = UsageType(KotlinBundle.lazyMessage("find.usages.type.super.type.qualifier")) + val TYPE_ALIAS = UsageType(KotlinBundle.lazyMessage("type.type.alias")) // functions - val FUNCTION_CALL = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.function.call")) - val IMPLICIT_GET = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.implicit.get")) - val IMPLICIT_SET = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.implicit.set")) - val IMPLICIT_INVOKE = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.implicit.invoke")) - val IMPLICIT_ITERATION = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.implicit.iteration")) - val PROPERTY_DELEGATION = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.property.delegation")) + val FUNCTION_CALL = UsageType(KotlinBundle.lazyMessage("find.usages.type.function.call")) + val IMPLICIT_GET = UsageType(KotlinBundle.lazyMessage("find.usages.type.implicit.get")) + val IMPLICIT_SET = UsageType(KotlinBundle.lazyMessage("find.usages.type.implicit.set")) + val IMPLICIT_INVOKE = UsageType(KotlinBundle.lazyMessage("find.usages.type.implicit.invoke")) + val IMPLICIT_ITERATION = UsageType(KotlinBundle.lazyMessage("find.usages.type.implicit.iteration")) + val PROPERTY_DELEGATION = UsageType(KotlinBundle.lazyMessage("find.usages.type.property.delegation")) // values - val RECEIVER = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.receiver")) - val DELEGATE = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.delegate")) + val RECEIVER = UsageType(KotlinBundle.lazyMessage("find.usages.type.receiver")) + val DELEGATE = UsageType(KotlinBundle.lazyMessage("find.usages.type.delegate")) // packages - val PACKAGE_DIRECTIVE = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.packageDirective")) - val PACKAGE_MEMBER_ACCESS = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.packageMemberAccess")) + val PACKAGE_DIRECTIVE = UsageType(KotlinBundle.lazyMessage("find.usages.type.packageDirective")) + val PACKAGE_MEMBER_ACCESS = UsageType(KotlinBundle.lazyMessage("find.usages.type.packageMemberAccess")) // common usage types - val CALLABLE_REFERENCE = UsageType(KotlinFindUsagesBundle.lazyMessage("find.usages.type.callable.reference")) - val NAMED_ARGUMENT = UsageType(KotlinFindUsagesBundle.lazyMessage("type.named.argument")) + val CALLABLE_REFERENCE = UsageType(KotlinBundle.lazyMessage("find.usages.type.callable.reference")) + val NAMED_ARGUMENT = UsageType(KotlinBundle.lazyMessage("type.named.argument")) } diff --git a/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindClassUsagesDialog.java b/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindClassUsagesDialog.java index d89977a41b2..3e1d0906984 100644 --- a/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindClassUsagesDialog.java +++ b/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindClassUsagesDialog.java @@ -35,7 +35,6 @@ import org.jetbrains.kotlin.asJava.LightClassUtilsKt; import org.jetbrains.kotlin.idea.KotlinBundle; import org.jetbrains.kotlin.idea.core.PsiModificationUtilsKt; import org.jetbrains.kotlin.idea.findUsages.KotlinClassFindUsagesOptions; -import org.jetbrains.kotlin.idea.findUsages.KotlinFindUsagesBundle; import org.jetbrains.kotlin.idea.refactoring.RenderingUtilsKt; import org.jetbrains.kotlin.psi.KtClass; import org.jetbrains.kotlin.psi.KtClassOrObject; @@ -75,7 +74,7 @@ public class KotlinFindClassUsagesDialog extends FindClassUsagesDialog { String name = classOrObject.getName(); if (name == null || name.isEmpty()) { - name = KotlinFindUsagesBundle.message("class.name.anonymous"); + name = KotlinBundle.message("find.usages.class.name.anonymous"); } PsiClass javaClass; @@ -166,7 +165,7 @@ public class KotlinFindClassUsagesDialog extends FindClassUsagesDialog { KotlinClassFindUsagesOptions options = getFindUsagesOptions(); if (isActual) { expectedUsages = addCheckboxToPanel( - KotlinFindUsagesBundle.message("checkbox.name.expected.classes"), + KotlinBundle.message("find.usages.checkbox.name.expected.classes"), options.getSearchExpected(), optionsPanel, false diff --git a/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindFunctionUsagesDialog.java b/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindFunctionUsagesDialog.java index 191d5719002..4bb1973cc06 100644 --- a/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindFunctionUsagesDialog.java +++ b/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindFunctionUsagesDialog.java @@ -30,7 +30,6 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.kotlin.asJava.LightClassUtilsKt; import org.jetbrains.kotlin.asJava.elements.KtLightMethod; import org.jetbrains.kotlin.idea.KotlinBundle; -import org.jetbrains.kotlin.idea.findUsages.KotlinFindUsagesBundle; import org.jetbrains.kotlin.idea.findUsages.KotlinFunctionFindUsagesOptions; import org.jetbrains.kotlin.idea.refactoring.RenderingUtilsKt; import org.jetbrains.kotlin.psi.KtDeclaration; @@ -111,7 +110,7 @@ public class KotlinFindFunctionUsagesDialog extends FindMethodUsagesDialog { KotlinFunctionFindUsagesOptions options = getFindUsagesOptions(); if (isActual) { expectedUsages = addCheckboxToPanel( - KotlinFindUsagesBundle.message("checkbox.name.expected.functions"), + KotlinBundle.message("find.usages.checkbox.name.expected.functions"), options.getSearchExpected(), optionsPanel, false diff --git a/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindPropertyUsagesDialog.java b/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindPropertyUsagesDialog.java index 9c568a28a81..cb0742860e8 100644 --- a/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindPropertyUsagesDialog.java +++ b/idea/src/org/jetbrains/kotlin/idea/findUsages/dialogs/KotlinFindPropertyUsagesDialog.java @@ -28,7 +28,6 @@ import com.intellij.ui.SimpleColoredComponent; import com.intellij.ui.StateRestoringCheckBox; import org.jetbrains.annotations.NotNull; import org.jetbrains.kotlin.idea.KotlinBundle; -import org.jetbrains.kotlin.idea.findUsages.KotlinFindUsagesBundle; import org.jetbrains.kotlin.idea.findUsages.KotlinPropertyFindUsagesOptions; import org.jetbrains.kotlin.lexer.KtTokens; import org.jetbrains.kotlin.psi.*; @@ -128,7 +127,7 @@ public class KotlinFindPropertyUsagesDialog extends JavaFindUsagesDialog protected c private const val DISABLE_ONCE = "DISABLE_ONCE" private const val DISABLE = "DISABLE" - private val DISABLE_COMPONENT_AND_DESTRUCTION_SEARCH_TEXT = KotlinFindUsagesBundle.message( - "text.find.usages.for.data.class.components.and.destruction.declarations", + private val DISABLE_COMPONENT_AND_DESTRUCTION_SEARCH_TEXT = KotlinBundle.message( + "find.usages.text.find.usages.for.data.class.components.and.destruction.declarations", DISABLE_ONCE, DISABLE ) diff --git a/idea/src/org/jetbrains/kotlin/idea/formatter/ImportSettingsPanel.kt b/idea/src/org/jetbrains/kotlin/idea/formatter/ImportSettingsPanel.kt index c892f00b565..7ee4d968953 100644 --- a/idea/src/org/jetbrains/kotlin/idea/formatter/ImportSettingsPanel.kt +++ b/idea/src/org/jetbrains/kotlin/idea/formatter/ImportSettingsPanel.kt @@ -14,6 +14,7 @@ import com.intellij.psi.codeStyle.CodeStyleSettings import com.intellij.psi.codeStyle.PackageEntryTable import com.intellij.ui.OptionGroup import com.intellij.ui.components.JBScrollPane +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.core.formatter.KotlinCodeStyleSettings import java.awt.BorderLayout import java.awt.GridBagConstraints @@ -49,7 +50,7 @@ class ImportSettingsPanelWrapper(settings: CodeStyleSettings) : CodeStyleAbstrac } class ImportSettingsPanel(private val commonSettings: CodeStyleSettings) : JPanel() { - private val cbImportNestedClasses = JCheckBox(KotlinFormatterBundle.message("checkbox.text.insert.imports.for.nested.classes")) + private val cbImportNestedClasses = JCheckBox(KotlinBundle.message("formatter.checkbox.text.insert.imports.for.nested.classes")) private val starImportPackageEntryTable = PackageEntryTable() private val dummyImportLayoutPanel = object : ImportLayoutPanel() { @@ -59,11 +60,11 @@ class ImportSettingsPanel(private val commonSettings: CodeStyleSettings) : JPane private val starImportPackageTable = ImportLayoutPanel.createTableForPackageEntries(starImportPackageEntryTable, dummyImportLayoutPanel) private val nameCountToUseStarImportSelector = NameCountToUseStarImportSelector( - KotlinFormatterBundle.message("title.top.level.symbols"), KotlinCodeStyleSettings.defaultSettings().NAME_COUNT_TO_USE_STAR_IMPORT + KotlinBundle.message("formatter.title.top.level.symbols"), KotlinCodeStyleSettings.defaultSettings().NAME_COUNT_TO_USE_STAR_IMPORT ) private val nameCountToUseStarImportForMembersSelector = NameCountToUseStarImportSelector( - KotlinFormatterBundle.message("title.java.statics.and.enum.members"), + KotlinBundle.message("formatter.title.java.statics.and.enum.members"), KotlinCodeStyleSettings.defaultSettings().NAME_COUNT_TO_USE_STAR_IMPORT_FOR_MEMBERS ) @@ -82,7 +83,8 @@ class ImportSettingsPanel(private val commonSettings: CodeStyleSettings) : JPane add(nameCountToUseStarImportForMembersSelector.createPanel(), constraints.apply { gridy++ }) add( - OptionGroup(KotlinFormatterBundle.message("title.other")).apply { add(cbImportNestedClasses) }.createPanel(), + OptionGroup( + KotlinBundle.message("formatter.title.other")).apply { add(cbImportNestedClasses) }.createPanel(), constraints.apply { gridy++ }) add(PackagePanel.createPackagesPanel(starImportPackageTable, starImportPackageEntryTable), constraints.apply { @@ -158,9 +160,9 @@ class ImportSettingsPanel(private val commonSettings: CodeStyleSettings) : JPane } private class NameCountToUseStarImportSelector(title: String, default: Int) : OptionGroup(title) { - private val rbUseSingleImports = JRadioButton(KotlinFormatterBundle.message("button.text.use.single.name.import")) - private val rbUseStarImports = JRadioButton(KotlinFormatterBundle.message("button.text.use.import.with")) - private val rbUseStarImportsIfAtLeast = JRadioButton(KotlinFormatterBundle.message("button.text.use.import.with.when.at.least")) + private val rbUseSingleImports = JRadioButton(KotlinBundle.message("formatter.button.text.use.single.name.import")) + private val rbUseStarImports = JRadioButton(KotlinBundle.message("formatter.button.text.use.import.with")) + private val rbUseStarImportsIfAtLeast = JRadioButton(KotlinBundle.message("formatter.button.text.use.import.with.when.at.least")) private val starImportLimitModel = SpinnerNumberModel(default, 2, 100, 1) private val starImportLimitField = JSpinner(starImportLimitModel) @@ -179,7 +181,7 @@ class ImportSettingsPanel(private val commonSettings: CodeStyleSettings) : JPane this.add(rbUseStarImportsIfAtLeast, constraints) this.add(starImportLimitField, constraints) this.add( - JLabel(KotlinFormatterBundle.message("text.names.used")), + JLabel(KotlinBundle.message("formatter.text.names.used")), constraints.apply { fill = GridBagConstraints.HORIZONTAL; weightx = 1.0 }) }, true) diff --git a/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinFormatterBundle.kt b/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinFormatterBundle.kt deleted file mode 100644 index 6402fd9da00..00000000000 --- a/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinFormatterBundle.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.idea.formatter - -import org.jetbrains.annotations.NonNls -import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.util.AbstractKotlinBundle - -@NonNls -private const val BUNDLE = "messages.KotlinFormatterBundle" - -object KotlinFormatterBundle : AbstractKotlinBundle(BUNDLE) { - @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) -} diff --git a/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinLanguageCodeStyleSettingsProvider.kt b/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinLanguageCodeStyleSettingsProvider.kt index 3d49d24d926..bc34b18c797 100644 --- a/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinLanguageCodeStyleSettingsProvider.kt +++ b/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinLanguageCodeStyleSettingsProvider.kt @@ -11,6 +11,7 @@ import com.intellij.openapi.application.ApplicationBundle import com.intellij.psi.codeStyle.CodeStyleSettingsCustomizable import com.intellij.psi.codeStyle.CommonCodeStyleSettings import com.intellij.psi.codeStyle.LanguageCodeStyleSettingsProvider +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.KotlinLanguage import org.jetbrains.kotlin.idea.core.formatter.KotlinCodeStyleSettings import kotlin.reflect.KProperty @@ -194,61 +195,61 @@ class KotlinLanguageCodeStyleSettingsProvider : LanguageCodeStyleSettingsProvide showCustomOption( KotlinCodeStyleSettings::SPACE_AROUND_RANGE, - KotlinFormatterBundle.message("title.range.operator"), + KotlinBundle.message("formatter.title.range.operator"), CodeStyleSettingsCustomizable.SPACES_AROUND_OPERATORS ) showCustomOption( KotlinCodeStyleSettings::SPACE_BEFORE_TYPE_COLON, - KotlinFormatterBundle.message("title.before.colon.after.declaration.name"), + KotlinBundle.message("formatter.title.before.colon.after.declaration.name"), CodeStyleSettingsCustomizable.SPACES_OTHER ) showCustomOption( KotlinCodeStyleSettings::SPACE_AFTER_TYPE_COLON, - KotlinFormatterBundle.message("title.after.colon.before.declaration.type"), + KotlinBundle.message("formatter.title.after.colon.before.declaration.type"), CodeStyleSettingsCustomizable.SPACES_OTHER ) showCustomOption( KotlinCodeStyleSettings::SPACE_BEFORE_EXTEND_COLON, - KotlinFormatterBundle.message("title.before.colon.in.new.type.definition"), + KotlinBundle.message("formatter.title.before.colon.in.new.type.definition"), CodeStyleSettingsCustomizable.SPACES_OTHER ) showCustomOption( KotlinCodeStyleSettings::SPACE_AFTER_EXTEND_COLON, - KotlinFormatterBundle.message("title.after.colon.in.new.type.definition"), + KotlinBundle.message("formatter.title.after.colon.in.new.type.definition"), CodeStyleSettingsCustomizable.SPACES_OTHER ) showCustomOption( KotlinCodeStyleSettings::INSERT_WHITESPACES_IN_SIMPLE_ONE_LINE_METHOD, - KotlinFormatterBundle.message("title.in.simple.one.line.methods"), + KotlinBundle.message("formatter.title.in.simple.one.line.methods"), CodeStyleSettingsCustomizable.SPACES_OTHER ) showCustomOption( KotlinCodeStyleSettings::SPACE_AROUND_FUNCTION_TYPE_ARROW, - KotlinFormatterBundle.message("title.around.arrow.in.function.types"), + KotlinBundle.message("formatter.title.around.arrow.in.function.types"), CodeStyleSettingsCustomizable.SPACES_OTHER ) showCustomOption( KotlinCodeStyleSettings::SPACE_AROUND_WHEN_ARROW, - KotlinFormatterBundle.message("title.around.arrow.in"), + KotlinBundle.message("formatter.title.around.arrow.in"), CodeStyleSettingsCustomizable.SPACES_OTHER ) showCustomOption( KotlinCodeStyleSettings::SPACE_BEFORE_LAMBDA_ARROW, - KotlinFormatterBundle.message("title.before.lambda.arrow"), + KotlinBundle.message("formatter.title.before.lambda.arrow"), CodeStyleSettingsCustomizable.SPACES_OTHER ) showCustomOption( KotlinCodeStyleSettings::SPACE_BEFORE_WHEN_PARENTHESES, - KotlinFormatterBundle.message("title.when.parentheses"), + KotlinBundle.message("formatter.title.when.parentheses"), CodeStyleSettingsCustomizable.SPACES_BEFORE_PARENTHESES ) } @@ -287,59 +288,59 @@ class KotlinLanguageCodeStyleSettingsProvider : LanguageCodeStyleSettingsProvide ) consumer.renameStandardOption( CodeStyleSettingsCustomizable.WRAPPING_SWITCH_STATEMENT, - KotlinFormatterBundle.message("title.when.statements") + KotlinBundle.message("formatter.title.when.statements") ) - consumer.renameStandardOption("FIELD_ANNOTATION_WRAP", KotlinFormatterBundle.message("title.property.annotations")) + consumer.renameStandardOption("FIELD_ANNOTATION_WRAP", KotlinBundle.message("formatter.title.property.annotations")) consumer.renameStandardOption( "METHOD_PARAMETERS_WRAP", - KotlinFormatterBundle.message("title.function.declaration.parameters") + KotlinBundle.message("formatter.title.function.declaration.parameters") ) - consumer.renameStandardOption("CALL_PARAMETERS_WRAP", KotlinFormatterBundle.message("title.function.call.arguments")) - consumer.renameStandardOption("METHOD_CALL_CHAIN_WRAP", KotlinFormatterBundle.message("title.chained.function.calls")) - consumer.renameStandardOption("METHOD_ANNOTATION_WRAP", KotlinFormatterBundle.message("title.function.annotations")) + consumer.renameStandardOption("CALL_PARAMETERS_WRAP", KotlinBundle.message("formatter.title.function.call.arguments")) + consumer.renameStandardOption("METHOD_CALL_CHAIN_WRAP", KotlinBundle.message("formatter.title.chained.function.calls")) + consumer.renameStandardOption("METHOD_ANNOTATION_WRAP", KotlinBundle.message("formatter.title.function.annotations")) consumer.renameStandardOption( CodeStyleSettingsCustomizable.WRAPPING_METHOD_PARENTHESES, - KotlinFormatterBundle.message("title.function.parentheses") + KotlinBundle.message("formatter.title.function.parentheses") ) showCustomOption(KotlinCodeStyleSettings::ALLOW_TRAILING_COMMA, "Use trailing comma") showCustomOption( KotlinCodeStyleSettings::ALIGN_IN_COLUMNS_CASE_BRANCH, - KotlinFormatterBundle.message("title.align.when.branches.in.columns"), + KotlinBundle.message("formatter.title.align.when.branches.in.columns"), CodeStyleSettingsCustomizable.WRAPPING_SWITCH_STATEMENT ) showCustomOption( KotlinCodeStyleSettings::LBRACE_ON_NEXT_LINE, - KotlinFormatterBundle.message("title.put.left.brace.on.new.line"), + KotlinBundle.message("formatter.title.put.left.brace.on.new.line"), CodeStyleSettingsCustomizable.WRAPPING_BRACES ) showCustomOption( KotlinCodeStyleSettings::CONTINUATION_INDENT_IN_PARAMETER_LISTS, - KotlinFormatterBundle.message("title.use.continuation.indent"), + KotlinBundle.message("formatter.title.use.continuation.indent"), CodeStyleSettingsCustomizable.WRAPPING_METHOD_PARAMETERS ) showCustomOption( KotlinCodeStyleSettings::CONTINUATION_INDENT_IN_ARGUMENT_LISTS, - KotlinFormatterBundle.message("title.use.continuation.indent"), + KotlinBundle.message("formatter.title.use.continuation.indent"), CodeStyleSettingsCustomizable.WRAPPING_METHOD_ARGUMENTS_WRAPPING ) showCustomOption( KotlinCodeStyleSettings::CONTINUATION_INDENT_FOR_CHAINED_CALLS, - KotlinFormatterBundle.message("title.use.continuation.indent"), + KotlinBundle.message("formatter.title.use.continuation.indent"), CodeStyleSettingsCustomizable.WRAPPING_CALL_CHAIN ) showCustomOption( KotlinCodeStyleSettings::CONTINUATION_INDENT_IN_SUPERTYPE_LISTS, - KotlinFormatterBundle.message("title.use.continuation.indent"), + KotlinBundle.message("formatter.title.use.continuation.indent"), CodeStyleSettingsCustomizable.WRAPPING_EXTENDS_LIST ) showCustomOption( KotlinCodeStyleSettings::WRAP_EXPRESSION_BODY_FUNCTIONS, - KotlinFormatterBundle.message("title.expression.body.functions"), + KotlinBundle.message("formatter.title.expression.body.functions"), options = *arrayOf( CodeStyleSettingsCustomizable.WRAP_OPTIONS_FOR_SINGLETON, CodeStyleSettingsCustomizable.WRAP_VALUES_FOR_SINGLETON @@ -347,12 +348,12 @@ class KotlinLanguageCodeStyleSettingsProvider : LanguageCodeStyleSettingsProvide ) showCustomOption( KotlinCodeStyleSettings::CONTINUATION_INDENT_FOR_EXPRESSION_BODIES, - KotlinFormatterBundle.message("title.use.continuation.indent"), - KotlinFormatterBundle.message("title.expression.body.functions") + KotlinBundle.message("formatter.title.use.continuation.indent"), + KotlinBundle.message("formatter.title.expression.body.functions") ) showCustomOption( KotlinCodeStyleSettings::WRAP_ELVIS_EXPRESSIONS, - KotlinFormatterBundle.message("title.elvis.expressions"), + KotlinBundle.message("formatter.title.elvis.expressions"), options = *arrayOf( CodeStyleSettingsCustomizable.WRAP_OPTIONS_FOR_SINGLETON, CodeStyleSettingsCustomizable.WRAP_VALUES_FOR_SINGLETON @@ -360,8 +361,8 @@ class KotlinLanguageCodeStyleSettingsProvider : LanguageCodeStyleSettingsProvide ) showCustomOption( KotlinCodeStyleSettings::CONTINUATION_INDENT_IN_ELVIS, - title = KotlinFormatterBundle.message("title.use.continuation.indent"), - groupName = KotlinFormatterBundle.message("title.elvis.expressions") + title = KotlinBundle.message("formatter.title.use.continuation.indent"), + groupName = KotlinBundle.message("formatter.title.elvis.expressions") ) @Suppress("InvalidBundleOrProperty") showCustomOption( @@ -371,7 +372,7 @@ class KotlinLanguageCodeStyleSettingsProvider : LanguageCodeStyleSettingsProvide ) showCustomOption( KotlinCodeStyleSettings::CONTINUATION_INDENT_IN_IF_CONDITIONS, - KotlinFormatterBundle.message("title.use.continuation.indent.in.conditions"), + KotlinBundle.message("formatter.title.use.continuation.indent.in.conditions"), CodeStyleSettingsCustomizable.WRAPPING_IF_STATEMENT ) } @@ -384,7 +385,7 @@ class KotlinLanguageCodeStyleSettingsProvider : LanguageCodeStyleSettingsProvide ) showCustomOption( KotlinCodeStyleSettings::BLANK_LINES_AROUND_BLOCK_WHEN_BRANCHES, - KotlinFormatterBundle.message("title.around.when.branches.with"), + KotlinBundle.message("formatter.title.around.when.branches.with"), CodeStyleSettingsCustomizable.BLANK_LINES ) } diff --git a/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinSaveStylePanel.kt b/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinSaveStylePanel.kt index e1ce9ed1b43..3d3e8bcfa37 100644 --- a/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinSaveStylePanel.kt +++ b/idea/src/org/jetbrains/kotlin/idea/formatter/KotlinSaveStylePanel.kt @@ -15,6 +15,7 @@ import com.intellij.ui.components.panels.HorizontalLayout import com.intellij.ui.components.panels.VerticalLayout import com.intellij.util.ui.JBUI import com.intellij.util.ui.UIUtil +import org.jetbrains.kotlin.idea.KotlinBundle import java.awt.BorderLayout import javax.swing.BorderFactory import javax.swing.JLabel @@ -27,7 +28,7 @@ class KotlinSaveStylePanel(settings: CodeStyleSettings) : CodeStyleAbstractPanel override fun getFileType() = throw UnsupportedOperationException() override fun getPreviewText(): String? = null - override fun getTabTitle(): String = KotlinFormatterBundle.message("title.load.save") + override fun getTabTitle(): String = KotlinBundle.message("formatter.title.load.save") private data class SaveItem(val label: String, val id: String?) @@ -63,7 +64,7 @@ class KotlinSaveStylePanel(settings: CodeStyleSettings) : CodeStyleAbstractPanel } }) - add(JLabel(KotlinFormatterBundle.message("text.use.defaults.from"))) + add(JLabel(KotlinBundle.message("formatter.text.use.defaults.from"))) add(saveDefaultsComboBox) }) } diff --git a/idea/src/org/jetbrains/kotlin/idea/framework/KotlinFrameworkBundle.kt b/idea/src/org/jetbrains/kotlin/idea/framework/KotlinFrameworkBundle.kt deleted file mode 100644 index 28e0e15e429..00000000000 --- a/idea/src/org/jetbrains/kotlin/idea/framework/KotlinFrameworkBundle.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.idea.framework - -import org.jetbrains.annotations.NonNls -import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.util.AbstractKotlinBundle - -@NonNls -private const val BUNDLE = "messages.KotlinFrameworkBundle" - -object KotlinFrameworkBundle : AbstractKotlinBundle(BUNDLE) { - @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) -} diff --git a/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt b/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt index b9f83dade33..3928717d5c8 100644 --- a/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt +++ b/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt @@ -11,6 +11,7 @@ import com.intellij.openapi.projectRoots.impl.ProjectJdkImpl import com.intellij.openapi.projectRoots.impl.SdkConfigurationUtil import com.intellij.util.Consumer import org.jdom.Element +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.KotlinIcons import org.jetbrains.kotlin.idea.util.application.runWriteAction import org.jetbrains.kotlin.idea.versions.bundledRuntimeVersion @@ -45,7 +46,7 @@ class KotlinSdkType : SdkType("KotlinSDK") { } } - override fun getPresentableName() = KotlinFrameworkBundle.message("name.kotlin.sdk") + override fun getPresentableName() = KotlinBundle.message("framework.name.kotlin.sdk") override fun getIcon() = KotlinIcons.SMALL_LOGO diff --git a/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt.192 b/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt.192 index 04291b78aac..6248341590b 100644 --- a/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt.192 +++ b/idea/src/org/jetbrains/kotlin/idea/framework/KotlinSdkType.kt.192 @@ -11,6 +11,7 @@ import com.intellij.openapi.projectRoots.impl.ProjectJdkImpl import com.intellij.openapi.projectRoots.impl.SdkConfigurationUtil import com.intellij.util.Consumer import org.jdom.Element +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.KotlinIcons import org.jetbrains.kotlin.idea.util.application.runWriteAction import org.jetbrains.kotlin.idea.versions.bundledRuntimeVersion @@ -45,7 +46,7 @@ class KotlinSdkType : SdkType("KotlinSDK") { } } - override fun getPresentableName() = KotlinFrameworkBundle.message("name.kotlin.sdk") + override fun getPresentableName() = KotlinBundle.message("name.kotlin.sdk") override fun getIcon() = KotlinIcons.SMALL_LOGO diff --git a/idea/src/org/jetbrains/kotlin/idea/hierarchy/KotlinHierarchyBundle.kt b/idea/src/org/jetbrains/kotlin/idea/hierarchy/KotlinHierarchyBundle.kt deleted file mode 100644 index dbc7d352651..00000000000 --- a/idea/src/org/jetbrains/kotlin/idea/hierarchy/KotlinHierarchyBundle.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.idea.hierarchy - -import org.jetbrains.annotations.NonNls -import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.util.AbstractKotlinBundle - -@NonNls -private const val BUNDLE = "messages.KotlinHierarchyBundle" - -object KotlinHierarchyBundle : AbstractKotlinBundle(BUNDLE) { - @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) -} diff --git a/idea/src/org/jetbrains/kotlin/idea/hierarchy/calls/KotlinCallHierarchyNodeDescriptor.kt b/idea/src/org/jetbrains/kotlin/idea/hierarchy/calls/KotlinCallHierarchyNodeDescriptor.kt index 1e74fd59cbd..c76cdae9fa1 100644 --- a/idea/src/org/jetbrains/kotlin/idea/hierarchy/calls/KotlinCallHierarchyNodeDescriptor.kt +++ b/idea/src/org/jetbrains/kotlin/idea/hierarchy/calls/KotlinCallHierarchyNodeDescriptor.kt @@ -30,7 +30,7 @@ import com.intellij.psi.PsiReference import com.intellij.ui.LayeredIcon import org.jetbrains.kotlin.descriptors.* import org.jetbrains.kotlin.idea.caches.resolve.resolveToDescriptorIfAny -import org.jetbrains.kotlin.idea.hierarchy.KotlinHierarchyBundle +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.psi.* import org.jetbrains.kotlin.renderer.DescriptorRenderer import org.jetbrains.kotlin.resolve.lazy.BodyResolveMode @@ -163,7 +163,7 @@ class KotlinCallHierarchyNodeDescriptor( elementText = if (element.name != null) { renderClassOrObject(descriptor as ClassDescriptor) } else { - KotlinHierarchyBundle.message("text.anonymous") + KotlinBundle.message("hierarchy.text.anonymous") } } } diff --git a/idea/src/org/jetbrains/kotlin/idea/hierarchy/overrides/KotlinOverrideHierarchyNodeDescriptor.kt b/idea/src/org/jetbrains/kotlin/idea/hierarchy/overrides/KotlinOverrideHierarchyNodeDescriptor.kt index 40233b18257..83348e06f10 100644 --- a/idea/src/org/jetbrains/kotlin/idea/hierarchy/overrides/KotlinOverrideHierarchyNodeDescriptor.kt +++ b/idea/src/org/jetbrains/kotlin/idea/hierarchy/overrides/KotlinOverrideHierarchyNodeDescriptor.kt @@ -30,7 +30,7 @@ import com.intellij.ui.RowIcon import org.jetbrains.kotlin.descriptors.* import org.jetbrains.kotlin.idea.caches.resolve.unsafeResolveToDescriptor import org.jetbrains.kotlin.idea.caches.resolve.util.getJavaMemberDescriptor -import org.jetbrains.kotlin.idea.hierarchy.KotlinHierarchyBundle +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.psi.KtNamedDeclaration import org.jetbrains.kotlin.psi.psiUtil.createSmartPointer import org.jetbrains.kotlin.resolve.DescriptorUtils @@ -141,7 +141,7 @@ class KotlinOverrideHierarchyNodeDescriptor( classDescriptor.parents.forEach { parentDescriptor -> when (parentDescriptor) { is MemberDescriptor -> { - addText(KotlinHierarchyBundle.message("text.in", parentDescriptor.name.asString()), classNameAttributes) + addText(KotlinBundle.message("hierarchy.text.in", parentDescriptor.name.asString()), classNameAttributes) if (parentDescriptor is FunctionDescriptor) { addText("()", classNameAttributes) } diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinColorSettingsPage.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinColorSettingsPage.kt index 9347dcfc82e..a9acef96966 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinColorSettingsPage.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinColorSettingsPage.kt @@ -16,7 +16,6 @@ package org.jetbrains.kotlin.idea.highlighter -import com.intellij.ide.highlighter.JavaHighlightingColors import com.intellij.openapi.editor.colors.TextAttributesKey import com.intellij.openapi.fileTypes.SyntaxHighlighter import com.intellij.openapi.options.OptionsBundle @@ -130,70 +129,70 @@ var globalCounte infix fun String.to(key: TextAttributesKey) = AttributesDescriptor(this, key) return arrayOf( - KotlinHighlighterBundle.message("description.text.builtin.keyword") to KotlinHighlightingColors.KEYWORD, - KotlinHighlighterBundle.message("description.text.builtin.keyword.val") to KotlinHighlightingColors.VAL_KEYWORD, - KotlinHighlighterBundle.message("description.text.builtin.keyword.var") to KotlinHighlightingColors.VAR_KEYWORD, - KotlinHighlighterBundle.message("description.text.builtin.annotation") to KotlinHighlightingColors.BUILTIN_ANNOTATION, + KotlinBundle.message("highlighter.descriptor.text.builtin.keyword") to KotlinHighlightingColors.KEYWORD, + KotlinBundle.message("highlighter.descriptor.text.builtin.keyword.val") to KotlinHighlightingColors.VAL_KEYWORD, + KotlinBundle.message("highlighter.descriptor.text.builtin.keyword.var") to KotlinHighlightingColors.VAR_KEYWORD, + KotlinBundle.message("highlighter.descriptor.text.builtin.annotation") to KotlinHighlightingColors.BUILTIN_ANNOTATION, OptionsBundle.message("options.java.attribute.descriptor.number") to KotlinHighlightingColors.NUMBER, OptionsBundle.message("options.java.attribute.descriptor.string") to KotlinHighlightingColors.STRING, - KotlinHighlighterBundle.message("description.text.string.escape") to KotlinHighlightingColors.STRING_ESCAPE, + KotlinBundle.message("highlighter.descriptor.text.string.escape") to KotlinHighlightingColors.STRING_ESCAPE, OptionsBundle.message("options.java.attribute.descriptor.invalid.escape.in.string") to KotlinHighlightingColors.INVALID_STRING_ESCAPE, OptionsBundle.message("options.java.attribute.descriptor.operator.sign") to KotlinHighlightingColors.OPERATOR_SIGN, OptionsBundle.message("options.java.attribute.descriptor.parentheses") to KotlinHighlightingColors.PARENTHESIS, OptionsBundle.message("options.java.attribute.descriptor.braces") to KotlinHighlightingColors.BRACES, - KotlinHighlighterBundle.message("description.text.closure.braces") to KotlinHighlightingColors.FUNCTION_LITERAL_BRACES_AND_ARROW, - KotlinHighlighterBundle.message("description.text.arrow") to KotlinHighlightingColors.ARROW, + KotlinBundle.message("highlighter.descriptor.text.closure.braces") to KotlinHighlightingColors.FUNCTION_LITERAL_BRACES_AND_ARROW, + KotlinBundle.message("highlighter.descriptor.text.arrow") to KotlinHighlightingColors.ARROW, OptionsBundle.message("options.java.attribute.descriptor.brackets") to KotlinHighlightingColors.BRACKETS, OptionsBundle.message("options.java.attribute.descriptor.comma") to KotlinHighlightingColors.COMMA, OptionsBundle.message("options.java.attribute.descriptor.semicolon") to KotlinHighlightingColors.SEMICOLON, - KotlinHighlighterBundle.message("description.text.colon") to KotlinHighlightingColors.COLON, - KotlinHighlighterBundle.message("description.text.double.colon") to KotlinHighlightingColors.DOUBLE_COLON, + KotlinBundle.message("highlighter.descriptor.text.colon") to KotlinHighlightingColors.COLON, + KotlinBundle.message("highlighter.descriptor.text.double.colon") to KotlinHighlightingColors.DOUBLE_COLON, OptionsBundle.message("options.java.attribute.descriptor.dot") to KotlinHighlightingColors.DOT, - KotlinHighlighterBundle.message("description.text.safe.access") to KotlinHighlightingColors.SAFE_ACCESS, - KotlinHighlighterBundle.message("description.text.quest") to KotlinHighlightingColors.QUEST, - KotlinHighlighterBundle.message("description.text.exclexcl") to KotlinHighlightingColors.EXCLEXCL, + KotlinBundle.message("highlighter.descriptor.text.safe.access") to KotlinHighlightingColors.SAFE_ACCESS, + KotlinBundle.message("highlighter.descriptor.text.quest") to KotlinHighlightingColors.QUEST, + KotlinBundle.message("highlighter.descriptor.text.exclexcl") to KotlinHighlightingColors.EXCLEXCL, OptionsBundle.message("options.java.attribute.descriptor.line.comment") to KotlinHighlightingColors.LINE_COMMENT, OptionsBundle.message("options.java.attribute.descriptor.block.comment") to KotlinHighlightingColors.BLOCK_COMMENT, - KotlinHighlighterBundle.message("description.text.kdoc.comment") to KotlinHighlightingColors.DOC_COMMENT, - KotlinHighlighterBundle.message("description.text.kdoc.tag") to KotlinHighlightingColors.KDOC_TAG, - KotlinHighlighterBundle.message("description.text.kdoc.value") to KotlinHighlightingColors.KDOC_LINK, + KotlinBundle.message("highlighter.descriptor.text.kdoc.comment") to KotlinHighlightingColors.DOC_COMMENT, + KotlinBundle.message("highlighter.descriptor.text.kdoc.tag") to KotlinHighlightingColors.KDOC_TAG, + KotlinBundle.message("highlighter.descriptor.text.kdoc.value") to KotlinHighlightingColors.KDOC_LINK, OptionsBundle.message("options.java.attribute.descriptor.class") to KotlinHighlightingColors.CLASS, OptionsBundle.message("options.java.attribute.descriptor.type.parameter") to KotlinHighlightingColors.TYPE_PARAMETER, OptionsBundle.message("options.java.attribute.descriptor.abstract.class") to KotlinHighlightingColors.ABSTRACT_CLASS, OptionsBundle.message("options.java.attribute.descriptor.interface") to KotlinHighlightingColors.TRAIT, - KotlinHighlighterBundle.message("description.text.annotation") to KotlinHighlightingColors.ANNOTATION, - KotlinBundle.message("description.text.annotation.attribute.name") to KotlinHighlightingColors.ANNOTATION_ATTRIBUTE_NAME_ATTRIBUTES, - KotlinHighlighterBundle.message("description.text.object") to KotlinHighlightingColors.OBJECT, - KotlinHighlighterBundle.message("description.text.enumEntry") to KotlinHighlightingColors.ENUM_ENTRY, - KotlinHighlighterBundle.message("description.text.typeAlias") to KotlinHighlightingColors.TYPE_ALIAS, - KotlinHighlighterBundle.message("description.text.var") to KotlinHighlightingColors.MUTABLE_VARIABLE, - KotlinHighlighterBundle.message("description.text.local.variable") to KotlinHighlightingColors.LOCAL_VARIABLE, + KotlinBundle.message("highlighter.descriptor.text.annotation") to KotlinHighlightingColors.ANNOTATION, + KotlinBundle.message("highlighter.descriptor.text.annotation.attribute.name") to KotlinHighlightingColors.ANNOTATION_ATTRIBUTE_NAME_ATTRIBUTES, + KotlinBundle.message("highlighter.descriptor.text.object") to KotlinHighlightingColors.OBJECT, + KotlinBundle.message("highlighter.descriptor.text.enumEntry") to KotlinHighlightingColors.ENUM_ENTRY, + KotlinBundle.message("highlighter.descriptor.text.typeAlias") to KotlinHighlightingColors.TYPE_ALIAS, + KotlinBundle.message("highlighter.descriptor.text.var") to KotlinHighlightingColors.MUTABLE_VARIABLE, + KotlinBundle.message("highlighter.descriptor.text.local.variable") to KotlinHighlightingColors.LOCAL_VARIABLE, OptionsBundle.message("options.java.attribute.descriptor.parameter") to KotlinHighlightingColors.PARAMETER, - KotlinHighlighterBundle.message("description.text.captured.variable") to KotlinHighlightingColors.WRAPPED_INTO_REF, - KotlinHighlighterBundle.message("description.text.instance.property") to KotlinHighlightingColors.INSTANCE_PROPERTY, - KotlinHighlighterBundle.message("description.text.instance.property.custom.property.declaration") to KotlinHighlightingColors.INSTANCE_PROPERTY_CUSTOM_PROPERTY_DECLARATION, - KotlinHighlighterBundle.message("description.text.package.property.custom.property.declaration") to KotlinHighlightingColors.PACKAGE_PROPERTY_CUSTOM_PROPERTY_DECLARATION, - KotlinHighlighterBundle.message("description.text.package.property") to KotlinHighlightingColors.PACKAGE_PROPERTY, - KotlinHighlighterBundle.message("description.text.field") to KotlinHighlightingColors.BACKING_FIELD_VARIABLE, - KotlinHighlighterBundle.message("description.text.extension.property") to KotlinHighlightingColors.EXTENSION_PROPERTY, - KotlinHighlighterBundle.message("description.text.synthetic.extension.property") to KotlinHighlightingColors.SYNTHETIC_EXTENSION_PROPERTY, - KotlinHighlighterBundle.message("description.text.dynamic.property") to KotlinHighlightingColors.DYNAMIC_PROPERTY_CALL, - KotlinHighlighterBundle.message("description.text.android.extensions.property") to KotlinHighlightingColors.ANDROID_EXTENSIONS_PROPERTY_CALL, - KotlinHighlighterBundle.message("description.text.it") to KotlinHighlightingColors.FUNCTION_LITERAL_DEFAULT_PARAMETER, - KotlinHighlighterBundle.message("description.text.fun") to KotlinHighlightingColors.FUNCTION_DECLARATION, - KotlinHighlighterBundle.message("description.text.fun.call") to KotlinHighlightingColors.FUNCTION_CALL, - KotlinHighlighterBundle.message("description.text.dynamic.fun.call") to KotlinHighlightingColors.DYNAMIC_FUNCTION_CALL, - KotlinHighlighterBundle.message("description.text.suspend.fun.call") to KotlinHighlightingColors.SUSPEND_FUNCTION_CALL, - KotlinHighlighterBundle.message("description.text.package.fun.call") to KotlinHighlightingColors.PACKAGE_FUNCTION_CALL, - KotlinHighlighterBundle.message("description.text.extension.fun.call") to KotlinHighlightingColors.EXTENSION_FUNCTION_CALL, - KotlinHighlighterBundle.message("description.text.constructor.call") to KotlinHighlightingColors.CONSTRUCTOR_CALL, - KotlinHighlighterBundle.message("description.text.variable.as.function.call") to KotlinHighlightingColors.VARIABLE_AS_FUNCTION_CALL, - KotlinHighlighterBundle.message("description.text.variable.as.function.like.call") to KotlinHighlightingColors.VARIABLE_AS_FUNCTION_LIKE_CALL, - KotlinHighlighterBundle.message("description.text.smart.cast") to KotlinHighlightingColors.SMART_CAST_VALUE, - KotlinHighlighterBundle.message("description.text.smart.constant") to KotlinHighlightingColors.SMART_CONSTANT, - KotlinHighlighterBundle.message("description.text.smart.cast.receiver") to KotlinHighlightingColors.SMART_CAST_RECEIVER, - KotlinHighlighterBundle.message("description.text.label") to KotlinHighlightingColors.LABEL, - KotlinHighlighterBundle.message("description.text.named.argument") to KotlinHighlightingColors.NAMED_ARGUMENT + KotlinBundle.message("highlighter.descriptor.text.captured.variable") to KotlinHighlightingColors.WRAPPED_INTO_REF, + KotlinBundle.message("highlighter.descriptor.text.instance.property") to KotlinHighlightingColors.INSTANCE_PROPERTY, + KotlinBundle.message("highlighter.descriptor.text.instance.property.custom.property.declaration") to KotlinHighlightingColors.INSTANCE_PROPERTY_CUSTOM_PROPERTY_DECLARATION, + KotlinBundle.message("highlighter.descriptor.text.package.property.custom.property.declaration") to KotlinHighlightingColors.PACKAGE_PROPERTY_CUSTOM_PROPERTY_DECLARATION, + KotlinBundle.message("highlighter.descriptor.text.package.property") to KotlinHighlightingColors.PACKAGE_PROPERTY, + KotlinBundle.message("highlighter.descriptor.text.field") to KotlinHighlightingColors.BACKING_FIELD_VARIABLE, + KotlinBundle.message("highlighter.descriptor.text.extension.property") to KotlinHighlightingColors.EXTENSION_PROPERTY, + KotlinBundle.message("highlighter.descriptor.text.synthetic.extension.property") to KotlinHighlightingColors.SYNTHETIC_EXTENSION_PROPERTY, + KotlinBundle.message("highlighter.descriptor.text.dynamic.property") to KotlinHighlightingColors.DYNAMIC_PROPERTY_CALL, + KotlinBundle.message("highlighter.descriptor.text.android.extensions.property") to KotlinHighlightingColors.ANDROID_EXTENSIONS_PROPERTY_CALL, + KotlinBundle.message("highlighter.descriptor.text.it") to KotlinHighlightingColors.FUNCTION_LITERAL_DEFAULT_PARAMETER, + KotlinBundle.message("highlighter.descriptor.text.fun") to KotlinHighlightingColors.FUNCTION_DECLARATION, + KotlinBundle.message("highlighter.descriptor.text.fun.call") to KotlinHighlightingColors.FUNCTION_CALL, + KotlinBundle.message("highlighter.descriptor.text.dynamic.fun.call") to KotlinHighlightingColors.DYNAMIC_FUNCTION_CALL, + KotlinBundle.message("highlighter.descriptor.text.suspend.fun.call") to KotlinHighlightingColors.SUSPEND_FUNCTION_CALL, + KotlinBundle.message("highlighter.descriptor.text.package.fun.call") to KotlinHighlightingColors.PACKAGE_FUNCTION_CALL, + KotlinBundle.message("highlighter.descriptor.text.extension.fun.call") to KotlinHighlightingColors.EXTENSION_FUNCTION_CALL, + KotlinBundle.message("highlighter.descriptor.text.constructor.call") to KotlinHighlightingColors.CONSTRUCTOR_CALL, + KotlinBundle.message("highlighter.descriptor.text.variable.as.function.call") to KotlinHighlightingColors.VARIABLE_AS_FUNCTION_CALL, + KotlinBundle.message("highlighter.descriptor.text.variable.as.function.like.call") to KotlinHighlightingColors.VARIABLE_AS_FUNCTION_LIKE_CALL, + KotlinBundle.message("highlighter.descriptor.text.smart.cast") to KotlinHighlightingColors.SMART_CAST_VALUE, + KotlinBundle.message("highlighter.descriptor.text.smart.constant") to KotlinHighlightingColors.SMART_CONSTANT, + KotlinBundle.message("highlighter.descriptor.text.smart.cast.receiver") to KotlinHighlightingColors.SMART_CAST_RECEIVER, + KotlinBundle.message("highlighter.descriptor.text.label") to KotlinHighlightingColors.LABEL, + KotlinBundle.message("highlighter.descriptor.text.named.argument") to KotlinHighlightingColors.NAMED_ARGUMENT ) + DslHighlighterExtension.descriptionsToStyles.map { (description, key) -> description to key }.toTypedArray() } diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinHighlighterBundle.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinHighlighterBundle.kt deleted file mode 100644 index 4b0b74adb5a..00000000000 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinHighlighterBundle.kt +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. - * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. - */ - -package org.jetbrains.kotlin.idea.highlighter - -import org.jetbrains.annotations.NonNls -import org.jetbrains.annotations.PropertyKey -import org.jetbrains.kotlin.util.AbstractKotlinBundle - -@NonNls -private const val BUNDLE = "messages.KotlinHighlighterBundle" - -object KotlinHighlighterBundle : AbstractKotlinBundle(BUNDLE) { - @JvmStatic - fun message(@NonNls @PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any): String = getMessage(key, *params) -} diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinRecursiveCallLineMarkerProvider.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinRecursiveCallLineMarkerProvider.kt index 8b9bc7bc124..d08c252fc83 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinRecursiveCallLineMarkerProvider.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinRecursiveCallLineMarkerProvider.kt @@ -26,6 +26,7 @@ import com.intellij.psi.PsiDocumentManager import com.intellij.psi.PsiElement import org.jetbrains.kotlin.descriptors.ClassDescriptor import org.jetbrains.kotlin.descriptors.SimpleFunctionDescriptor +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.caches.resolve.analyze import org.jetbrains.kotlin.idea.inspections.RecursivePropertyAccessorInspection import org.jetbrains.kotlin.idea.util.getReceiverTargetDescriptor @@ -124,7 +125,7 @@ class KotlinRecursiveCallLineMarkerProvider : LineMarkerProvider { callElement.textRange, AllIcons.Gutter.RecursiveMethod, Pass.LINE_MARKERS, - { KotlinHighlighterBundle.message("tool.tip.text.recursive.call") }, + { KotlinBundle.message("highlighter.tool.tip.text.recursive.call") }, null, GutterIconRenderer.Alignment.RIGHT ) { diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinSuspendCallLineMarkerProvider.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinSuspendCallLineMarkerProvider.kt index ccfcc54da9e..adee69f7706 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinSuspendCallLineMarkerProvider.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinSuspendCallLineMarkerProvider.kt @@ -16,6 +16,7 @@ import org.jetbrains.kotlin.descriptors.FunctionDescriptor import org.jetbrains.kotlin.descriptors.PropertyDescriptor import org.jetbrains.kotlin.descriptors.VariableDescriptorWithAccessors import org.jetbrains.kotlin.descriptors.accessors +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.KotlinIcons import org.jetbrains.kotlin.idea.caches.resolve.analyze import org.jetbrains.kotlin.idea.refactoring.getLineNumber @@ -69,10 +70,10 @@ class KotlinSuspendCallLineMarkerProvider : LineMarkerProvider { result += if (element is KtForExpression) { SuspendCallMarkerInfo( getElementForLineMark(element.loopRange!!), - KotlinHighlighterBundle.message("message.suspending.iteration") + KotlinBundle.message("highlighter.message.suspending.iteration") ) } else { - SuspendCallMarkerInfo(getElementForLineMark(element), KotlinHighlighterBundle.message("message.suspend.function.call")) + SuspendCallMarkerInfo(getElementForLineMark(element), KotlinBundle.message("highlighter.message.suspend.function.call")) } } } diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinTestRunLineMarkerContributor.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinTestRunLineMarkerContributor.kt index c89ca9c9b63..93bcf088d50 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinTestRunLineMarkerContributor.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/KotlinTestRunLineMarkerContributor.kt @@ -25,6 +25,7 @@ import com.intellij.icons.AllIcons import com.intellij.openapi.project.Project import com.intellij.psi.PsiElement import com.intellij.util.Function +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.caches.resolve.resolveToDescriptorIfAny import org.jetbrains.kotlin.idea.platform.tooling import org.jetbrains.kotlin.idea.project.platform @@ -67,6 +68,6 @@ class KotlinTestRunLineMarkerContributor : RunLineMarkerContributor() { val targetPlatform = declaration.module?.platform ?: return null val icon = targetPlatform.idePlatformKind.tooling.getTestIcon(declaration, descriptor) ?: return null - return Info(icon, Function { KotlinHighlighterBundle.message("tool.tip.text.run.test") }, *ExecutorAction.getActions()) + return Info(icon, Function { KotlinBundle.message("highlighter.tool.tip.text.run.test") }, *ExecutorAction.getActions()) } } diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/dsl/DslHighlighterExtension.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/dsl/DslHighlighterExtension.kt index 7db7e3ac5d9..0726056ebf8 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/dsl/DslHighlighterExtension.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/dsl/DslHighlighterExtension.kt @@ -12,7 +12,7 @@ import org.jetbrains.kotlin.descriptors.CallableDescriptor import org.jetbrains.kotlin.descriptors.ClassDescriptor import org.jetbrains.kotlin.descriptors.DeclarationDescriptor import org.jetbrains.kotlin.idea.highlighter.HighlighterExtension -import org.jetbrains.kotlin.idea.highlighter.KotlinHighlighterBundle +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.resolve.calls.DslMarkerUtils import org.jetbrains.kotlin.resolve.calls.model.ResolvedCall import org.jetbrains.kotlin.resolve.descriptorUtil.annotationClass @@ -45,10 +45,10 @@ class DslHighlighterExtension : HighlighterExtension() { fun externalKeyName(index: Int) = "KOTLIN_DSL_STYLE$index" val descriptionsToStyles = (1..numStyles).associate { index -> - KotlinHighlighterBundle.message("name.dsl") + styleOptionDisplayName(index) to styleById(index) + KotlinBundle.message("highlighter.name.dsl") + styleOptionDisplayName(index) to styleById(index) } - fun styleOptionDisplayName(index: Int) = KotlinHighlighterBundle.message("name.style") + index + fun styleOptionDisplayName(index: Int) = KotlinBundle.message("highlighter.name.style") + index fun styleIdByMarkerAnnotation(markerAnnotation: ClassDescriptor): Int? { val markerAnnotationFqName = markerAnnotation.fqNameSafe diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/DslHighlightingMarker.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/DslHighlightingMarker.kt index 5fbc534ce2f..8d093ed90d7 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/DslHighlightingMarker.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/DslHighlightingMarker.kt @@ -17,7 +17,7 @@ import org.jetbrains.kotlin.descriptors.ClassDescriptor import org.jetbrains.kotlin.descriptors.ClassKind import org.jetbrains.kotlin.idea.KotlinLanguage import org.jetbrains.kotlin.idea.core.toDescriptor -import org.jetbrains.kotlin.idea.highlighter.KotlinHighlighterBundle +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.highlighter.dsl.DslHighlighterExtension import org.jetbrains.kotlin.idea.highlighter.dsl.isDslHighlightingMarker import org.jetbrains.kotlin.psi.KtClass @@ -32,7 +32,7 @@ private val navHandler = GutterIconNavigationHandler { event, elemen } private val toolTipHandler = Function { - KotlinHighlighterBundle.message("tool.tip.marker.annotation.for.dsl") + KotlinBundle.message("highlighter.tool.tip.marker.annotation.for.dsl") } fun collectHighlightingColorsMarkers( diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/HasActualMarker.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/HasActualMarker.kt index 525a80ae3a0..1e2a11fdb4e 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/HasActualMarker.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/HasActualMarker.kt @@ -23,7 +23,7 @@ import org.jetbrains.kotlin.descriptors.ModuleDescriptor import org.jetbrains.kotlin.idea.caches.project.ModuleSourceInfo import org.jetbrains.kotlin.idea.core.isAndroidModule import org.jetbrains.kotlin.idea.core.toDescriptor -import org.jetbrains.kotlin.idea.highlighter.KotlinHighlighterBundle +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.util.actualsForExpected import org.jetbrains.kotlin.platform.isCommon import org.jetbrains.kotlin.psi.KtDeclaration @@ -53,8 +53,8 @@ fun getPlatformActualTooltip(declaration: KtDeclaration): String? { .groupBy { it.getPlatformName() } .filter { (platform, _) -> platform != null } .entries - .joinToString(prefix = KotlinHighlighterBundle.message("prefix.text.has.actuals.in") + " ") { (platform, modules) -> - val modulesSuffix = if (modules.size <= 1) "" else KotlinHighlighterBundle.message("text.modules", modules.size) + .joinToString(prefix = KotlinBundle.message("highlighter.prefix.text.has.actuals.in") + " ") { (platform, modules) -> + val modulesSuffix = if (modules.size <= 1) "" else KotlinBundle.message("highlighter.text.modules", modules.size) if (platform == null) { throw AssertionError("Platform should not be null") } @@ -69,9 +69,9 @@ class ActualExpectedPsiElementCellRenderer : DefaultPsiElementCellRenderer() { override fun getContainerText(element: PsiElement?, name: String?) = "" } -fun KtDeclaration.navigateToActualTitle() = KotlinHighlighterBundle.message("title.choose.actual.for", name.toString()) +fun KtDeclaration.navigateToActualTitle() = KotlinBundle.message("highlighter.title.choose.actual.for", name.toString()) -fun KtDeclaration.navigateToActualUsagesTitle() = KotlinHighlighterBundle.message("title.actuals.for", name.toString()) +fun KtDeclaration.navigateToActualUsagesTitle() = KotlinBundle.message("highlighter.title.actuals.for", name.toString()) fun buildNavigateToActualDeclarationsPopup(element: PsiElement?): NavigationPopupDescriptor? { return element?.markerDeclaration?.let { diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/HasExpectedMarker.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/HasExpectedMarker.kt index 3586823ee30..1dfc687dd60 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/HasExpectedMarker.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/HasExpectedMarker.kt @@ -21,7 +21,7 @@ import org.jetbrains.kotlin.descriptors.MemberDescriptor import org.jetbrains.kotlin.idea.caches.project.implementedDescriptors import org.jetbrains.kotlin.idea.caches.resolve.findModuleDescriptor import org.jetbrains.kotlin.idea.core.toDescriptor -import org.jetbrains.kotlin.idea.highlighter.KotlinHighlighterBundle +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.util.expectedDeclarationIfAny import org.jetbrains.kotlin.idea.util.hasDeclarationOf import org.jetbrains.kotlin.psi.KtDeclaration @@ -33,15 +33,15 @@ fun getExpectedDeclarationTooltip(declaration: KtDeclaration): String? { val commonModuleDescriptors = platformModuleDescriptor.implementedDescriptors if (!commonModuleDescriptors.any { it.hasDeclarationOf(descriptor) }) return null - return KotlinHighlighterBundle.message("tool.tip.has.declaration.in.common.module") + return KotlinBundle.message("highlighter.tool.tip.has.declaration.in.common.module") } fun KtDeclaration.allNavigatableExpectedDeclarations(): List = listOfNotNull(expectedDeclarationIfAny()) + findMarkerBoundDeclarations().mapNotNull { it.expectedDeclarationIfAny() } -fun KtDeclaration.navigateToExpectedTitle() = KotlinHighlighterBundle.message("title.choose.expected.for", name.toString()) +fun KtDeclaration.navigateToExpectedTitle() = KotlinBundle.message("highlighter.title.choose.expected.for", name.toString()) -fun KtDeclaration.navigateToExpectedUsagesTitle() = KotlinHighlighterBundle.message("title.expected.for", name.toString()) +fun KtDeclaration.navigateToExpectedUsagesTitle() = KotlinBundle.message("highlighter.title.expected.for", name.toString()) fun buildNavigateToExpectedDeclarationsPopup(element: PsiElement?): NavigationPopupDescriptor? { return element?.markerDeclaration?.let { diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/KotlinLineMarkerOptions.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/KotlinLineMarkerOptions.kt index 6f2aaf1992f..2ee06c59db1 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/KotlinLineMarkerOptions.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/KotlinLineMarkerOptions.kt @@ -8,43 +8,43 @@ package org.jetbrains.kotlin.idea.highlighter.markers import com.intellij.codeInsight.daemon.GutterIconDescriptor import com.intellij.icons.AllIcons import org.jetbrains.kotlin.idea.KotlinIcons -import org.jetbrains.kotlin.idea.highlighter.KotlinHighlighterBundle +import org.jetbrains.kotlin.idea.KotlinBundle internal object KotlinLineMarkerOptions { val overriddenOption = GutterIconDescriptor.Option( "kotlin.overridden", - KotlinHighlighterBundle.message("name.overridden.declaration"), AllIcons.Gutter.OverridenMethod + KotlinBundle.message("highlighter.name.overridden.declaration"), AllIcons.Gutter.OverridenMethod ) val implementedOption = GutterIconDescriptor.Option( "kotlin.implemented", - KotlinHighlighterBundle.message("name.implemented.declaration"), AllIcons.Gutter.ImplementedMethod + KotlinBundle.message("highlighter.name.implemented.declaration"), AllIcons.Gutter.ImplementedMethod ) val overridingOption = GutterIconDescriptor.Option( "kotlin.overriding", - KotlinHighlighterBundle.message("name.overriding.declaration"), AllIcons.Gutter.OverridingMethod + KotlinBundle.message("highlighter.name.overriding.declaration"), AllIcons.Gutter.OverridingMethod ) val implementingOption = GutterIconDescriptor.Option( "kotlin.implementing", - KotlinHighlighterBundle.message("name.implementing.declaration"), + KotlinBundle.message("highlighter.name.implementing.declaration"), AllIcons.Gutter.ImplementingMethod ) val actualOption = GutterIconDescriptor.Option( "kotlin.actual", - KotlinHighlighterBundle.message("name.multiplatform.actual.declaration"), KotlinIcons.ACTUAL + KotlinBundle.message("highlighter.name.multiplatform.actual.declaration"), KotlinIcons.ACTUAL ) val expectOption = GutterIconDescriptor.Option( "kotlin.expect", - KotlinHighlighterBundle.message("name.multiplatform.expect.declaration"), KotlinIcons.EXPECT + KotlinBundle.message("highlighter.name.multiplatform.expect.declaration"), KotlinIcons.EXPECT ) val dslOption = - GutterIconDescriptor.Option("kotlin.dsl", KotlinHighlighterBundle.message("name.dsl.markers"), KotlinIcons.DSL_MARKER_ANNOTATION) + GutterIconDescriptor.Option("kotlin.dsl", KotlinBundle.message("highlighter.name.dsl.markers"), KotlinIcons.DSL_MARKER_ANNOTATION) val options = arrayOf( overriddenOption, implementedOption, diff --git a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/KotlinLineMarkerProvider.kt b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/KotlinLineMarkerProvider.kt index 1acdccc8a59..23bf82722c3 100644 --- a/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/KotlinLineMarkerProvider.kt +++ b/idea/src/org/jetbrains/kotlin/idea/highlighter/markers/KotlinLineMarkerProvider.kt @@ -37,7 +37,7 @@ import org.jetbrains.kotlin.idea.core.isInheritable import org.jetbrains.kotlin.idea.core.isOverridable import org.jetbrains.kotlin.idea.core.toDescriptor import org.jetbrains.kotlin.idea.editor.fixers.startLine -import org.jetbrains.kotlin.idea.highlighter.KotlinHighlighterBundle +import org.jetbrains.kotlin.idea.KotlinBundle import org.jetbrains.kotlin.idea.presentation.DeclarationByModuleRenderer import org.jetbrains.kotlin.idea.search.declarationsSearch.toPossiblyFakeLightMethods import org.jetbrains.kotlin.idea.util.* @@ -50,7 +50,7 @@ import java.util.* import javax.swing.ListCellRenderer class KotlinLineMarkerProvider : LineMarkerProviderDescriptor() { - override fun getName() = KotlinHighlighterBundle.message("name.kotlin.line.markers") + override fun getName() = KotlinBundle.message("highlighter.name.kotlin.line.markers") override fun getOptions(): Array