mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
API for replacing "Log to console" text in the UI
Rider needs to show "Log to debug output" instead.
This commit is contained in:
@@ -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<B extends XBreakpoint<P>, P extends XBreak
|
||||
return getDisplayText(breakpoint);
|
||||
}
|
||||
|
||||
public String getLogMessageLabelText() {
|
||||
return XDebuggerBundle.message("xbreakpoints.log.message.label");
|
||||
}
|
||||
|
||||
public interface XBreakpointCreator<P extends XBreakpointProperties> {
|
||||
@NotNull
|
||||
XBreakpoint<P> createBreakpoint(@Nullable P properties);
|
||||
|
||||
+1
-1
@@ -77,7 +77,7 @@
|
||||
<size top="4" left="0" bottom="0" right="0"/>
|
||||
</border>
|
||||
<children>
|
||||
<component id="dc810" class="javax.swing.JLabel">
|
||||
<component id="dc810" class="javax.swing.JLabel" binding="myLogToConsoleLabel">
|
||||
<constraints>
|
||||
<grid row="0" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
|
||||
+2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user