mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use constant for history id
This commit is contained in:
+3
-2
@@ -30,13 +30,14 @@ import javax.swing.*;
|
||||
* @author egor
|
||||
*/
|
||||
public class DefaultConditionComboBoxPanel<B extends XBreakpoint<?>> extends XBreakpointCustomPropertiesPanel<B> {
|
||||
public static final String HISTORY_KEY = "breakpointCondition";
|
||||
|
||||
private XDebuggerExpressionComboBox myConditionComboBox;
|
||||
|
||||
public DefaultConditionComboBoxPanel(Project project,
|
||||
XDebuggerEditorsProvider debuggerEditorsProvider,
|
||||
String historyId,
|
||||
XSourcePosition sourcePosition) {
|
||||
myConditionComboBox = new XDebuggerExpressionComboBox(project, debuggerEditorsProvider, historyId, sourcePosition);
|
||||
myConditionComboBox = new XDebuggerExpressionComboBox(project, debuggerEditorsProvider, HISTORY_KEY, sourcePosition);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
+3
-2
@@ -29,13 +29,14 @@ import javax.swing.*;
|
||||
* @author egor
|
||||
*/
|
||||
public class DefaultLogExpressionComboBoxPanel<B extends XBreakpoint<?>> extends XBreakpointCustomPropertiesPanel<B> {
|
||||
public static final String HISTORY_KEY = "breakpointLogExpression";
|
||||
|
||||
private XDebuggerExpressionComboBox myLogExpressionComboBox;
|
||||
|
||||
public DefaultLogExpressionComboBoxPanel(Project project,
|
||||
XDebuggerEditorsProvider debuggerEditorsProvider,
|
||||
String historyId,
|
||||
XSourcePosition sourcePosition) {
|
||||
myLogExpressionComboBox = new XDebuggerExpressionComboBox(project, debuggerEditorsProvider, historyId, sourcePosition);
|
||||
myLogExpressionComboBox = new XDebuggerExpressionComboBox(project, debuggerEditorsProvider, HISTORY_KEY, sourcePosition);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
+2
-2
@@ -57,11 +57,11 @@ public class XBreakpointActionsPanel<B extends XBreakpoint<?>> extends XBreakpoi
|
||||
|
||||
if (debuggerEditorsProvider instanceof XDebuggerComboBoxProvider) {
|
||||
logExpressionPanel = ((XDebuggerComboBoxProvider<B>)debuggerEditorsProvider).createLogExpressionComboBoxPanel(
|
||||
project, debuggerEditorsProvider, "breakpointCondition", myBreakpoint.getSourcePosition());
|
||||
project, debuggerEditorsProvider, DefaultLogExpressionComboBoxPanel.HISTORY_KEY, myBreakpoint.getSourcePosition());
|
||||
}
|
||||
else {
|
||||
logExpressionPanel =
|
||||
new DefaultLogExpressionComboBoxPanel<B>(project, debuggerEditorsProvider, "breakpointCondition", myBreakpoint.getSourcePosition());
|
||||
new DefaultLogExpressionComboBoxPanel<B>(project, debuggerEditorsProvider, myBreakpoint.getSourcePosition());
|
||||
}
|
||||
|
||||
JComponent logExpressionComponent = logExpressionPanel.getComponent();
|
||||
|
||||
+2
-2
@@ -107,11 +107,11 @@ public class XLightBreakpointPropertiesPanel<B extends XBreakpoint<?>> implement
|
||||
final XBreakpointCustomPropertiesPanel<B> conditionPanel;
|
||||
if (debuggerEditorsProvider instanceof XDebuggerComboBoxProvider) {
|
||||
conditionPanel = ((XDebuggerComboBoxProvider<B>)debuggerEditorsProvider).createConditionComboBoxPanel(
|
||||
project, debuggerEditorsProvider, "breakpointCondition", myBreakpoint.getSourcePosition());
|
||||
project, debuggerEditorsProvider, DefaultConditionComboBoxPanel.HISTORY_KEY, myBreakpoint.getSourcePosition());
|
||||
}
|
||||
else {
|
||||
conditionPanel =
|
||||
new DefaultConditionComboBoxPanel<B>(project, debuggerEditorsProvider, "breakpointCondition", myBreakpoint.getSourcePosition());
|
||||
new DefaultConditionComboBoxPanel<B>(project, debuggerEditorsProvider, myBreakpoint.getSourcePosition());
|
||||
}
|
||||
myConditionExpressionPanel.add(conditionPanel.getComponent(), BorderLayout.CENTER);
|
||||
myCustomPanels.add(conditionPanel);
|
||||
|
||||
Reference in New Issue
Block a user