From bce8646f7ebbc7cba3ef017cbe46fed114aff12f Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 10 Apr 2018 14:53:36 +0200 Subject: [PATCH] API for replacing "Log to console" text in the UI Rider needs to show "Log to debug output" instead. --- .../com/intellij/xdebugger/breakpoints/XBreakpointType.java | 5 +++++ .../impl/breakpoints/ui/XBreakpointActionsPanel.form | 2 +- .../impl/breakpoints/ui/XBreakpointActionsPanel.java | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/platform/xdebugger-api/src/com/intellij/xdebugger/breakpoints/XBreakpointType.java b/platform/xdebugger-api/src/com/intellij/xdebugger/breakpoints/XBreakpointType.java index 9a52d7416316..bf1cd555af5b 100644 --- a/platform/xdebugger-api/src/com/intellij/xdebugger/breakpoints/XBreakpointType.java +++ b/platform/xdebugger-api/src/com/intellij/xdebugger/breakpoints/XBreakpointType.java @@ -19,6 +19,7 @@ package com.intellij.xdebugger.breakpoints; import com.intellij.icons.AllIcons; import com.intellij.openapi.extensions.ExtensionPointName; import com.intellij.openapi.project.Project; +import com.intellij.xdebugger.XDebuggerBundle; import com.intellij.xdebugger.XSourcePosition; import com.intellij.xdebugger.breakpoints.ui.XBreakpointCustomPropertiesPanel; import com.intellij.xdebugger.breakpoints.ui.XBreakpointGroupingRule; @@ -245,6 +246,10 @@ public abstract class XBreakpointType, P extends XBreak return getDisplayText(breakpoint); } + public String getLogMessageLabelText() { + return XDebuggerBundle.message("xbreakpoints.log.message.label"); + } + public interface XBreakpointCreator

{ @NotNull XBreakpoint

createBreakpoint(@Nullable P properties); diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XBreakpointActionsPanel.form b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XBreakpointActionsPanel.form index 68c68f0276ae..9fceb61ee1cc 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XBreakpointActionsPanel.form +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XBreakpointActionsPanel.form @@ -77,7 +77,7 @@ - + diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XBreakpointActionsPanel.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XBreakpointActionsPanel.java index eb41796c0d24..cba96840add8 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XBreakpointActionsPanel.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/XBreakpointActionsPanel.java @@ -34,10 +34,12 @@ public class XBreakpointActionsPanel extends XBreakpointPropertiesSubPanel { private JPanel myExpressionPanel; private JPanel myLanguageChooserPanel; private JCheckBox myLogStack; + private JLabel myLogToConsoleLabel; private XDebuggerExpressionComboBox myLogExpressionComboBox; public void init(Project project, XBreakpointManager breakpointManager, @NotNull XBreakpointBase breakpoint, @Nullable XDebuggerEditorsProvider debuggerEditorsProvider) { init(project, breakpointManager, breakpoint); + myLogToConsoleLabel.setText(breakpoint.getType().getLogMessageLabelText()); if (debuggerEditorsProvider != null) { ActionListener listener = new ActionListener() { public void actionPerformed(final ActionEvent e) {