From f4175d698331ddc60ca705ce14b9683c26cc1e92 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Fri, 25 Jun 2021 16:36:22 +0000 Subject: [PATCH] IDEA-272483 Change button text in source selection prompt GitOrigin-RevId: 4a117fb2e57f3f1785171cca033cc6b3aadde5af --- .../debugger/ui/AlternativeSourceNotificationProvider.java | 4 ++-- .../openapi/resources/messages/JavaDebuggerBundle.properties | 2 +- .../resources/messages/KotlinDebuggerCoreBundle.properties | 2 +- .../debugger/KotlinAlternativeSourceNotificationProvider.kt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/AlternativeSourceNotificationProvider.java b/java/debugger/impl/src/com/intellij/debugger/ui/AlternativeSourceNotificationProvider.java index 55787c962303..50d51ae244fd 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/AlternativeSourceNotificationProvider.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/AlternativeSourceNotificationProvider.java @@ -1,4 +1,4 @@ -// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.ui; import com.intellij.debugger.DebuggerManagerEx; @@ -184,7 +184,7 @@ public final class AlternativeSourceNotificationProvider extends EditorNotificat } }); myLinksPanel.add(switcher); - createActionLabel(JavaDebuggerBundle.message("action.disable.text"), () -> { + createActionLabel(JavaDebuggerBundle.message("action.hide.text"), () -> { DebuggerSettings.getInstance().SHOW_ALTERNATIVE_SOURCE = false; setFileProcessed(file, false); FileEditorManager fileEditorManager = FileEditorManager.getInstance(project); diff --git a/java/debugger/openapi/resources/messages/JavaDebuggerBundle.properties b/java/debugger/openapi/resources/messages/JavaDebuggerBundle.properties index 27936ac70899..e2c1d760ebfa 100644 --- a/java/debugger/openapi/resources/messages/JavaDebuggerBundle.properties +++ b/java/debugger/openapi/resources/messages/JavaDebuggerBundle.properties @@ -297,7 +297,7 @@ add.field.breakpoint.dialog.field.chooser.title={0,choice, 0#Class has no fields label.add.wildcard.breakpoint.dialog.method.name=&Method name: label.add.wildcard.breakpoint.dialog.class.pattern=&Class pattern: breakpoint.any.exception.display.name=Any exception -action.disable.text=Disable +action.hide.text=Hide default.package.name= class.filters.dialog.title=Class Filters class.filters.dialog.inclusion.filters.group=Include diff --git a/plugins/kotlin/jvm-debugger/core/resources/messages/KotlinDebuggerCoreBundle.properties b/plugins/kotlin/jvm-debugger/core/resources/messages/KotlinDebuggerCoreBundle.properties index b29cb389e9c4..eeee93045a0d 100644 --- a/plugins/kotlin/jvm-debugger/core/resources/messages/KotlinDebuggerCoreBundle.properties +++ b/plugins/kotlin/jvm-debugger/core/resources/messages/KotlinDebuggerCoreBundle.properties @@ -2,7 +2,7 @@ find.inline.calls.task.compute.names=Compute class names for declaration {0} find.inline.calls.task.cancelled=Debugger can skip some executions of {0} because the computation of class names was interrupted alternative.sources.notification.title=Alternative source available for file {0} -alternative.sources.notification.disable=Disable +alternative.sources.notification.hide=Hide function.breakpoint.tab.title=Kotlin Function Breakpoints function.breakpoint.initialize=Initialize function breakpoint diff --git a/plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/KotlinAlternativeSourceNotificationProvider.kt b/plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/KotlinAlternativeSourceNotificationProvider.kt index f32b321eeba5..8a22f7f12e74 100644 --- a/plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/KotlinAlternativeSourceNotificationProvider.kt +++ b/plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/KotlinAlternativeSourceNotificationProvider.kt @@ -132,7 +132,7 @@ class KotlinAlternativeSourceNotificationProvider(private val myProject: Project }, ) - createActionLabel(KotlinDebuggerCoreBundle.message("alternative.sources.notification.disable")) { + createActionLabel(KotlinDebuggerCoreBundle.message("alternative.sources.notification.hide")) { DebuggerSettings.getInstance().SHOW_ALTERNATIVE_SOURCE = false FILE_PROCESSED_KEY.set(file, null) val fileEditorManager = FileEditorManager.getInstance(project)