From ad39ebc9a6a1f8639e00f867c63295501f74a5b3 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 22 Mar 2012 15:46:10 +0100 Subject: [PATCH] first controls column should occupy less space in breakpoint properties dialog --- .../intellij/debugger/ui/DebuggerExpressionComboBox.java | 2 +- .../debugger/ui/breakpoints/BreakpointPropertiesPanel.form | 6 +++--- .../debugger/ui/breakpoints/BreakpointPropertiesPanel.java | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/DebuggerExpressionComboBox.java b/java/debugger/impl/src/com/intellij/debugger/ui/DebuggerExpressionComboBox.java index c26f8533deda..9f9cf4a34075 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/DebuggerExpressionComboBox.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/DebuggerExpressionComboBox.java @@ -82,7 +82,7 @@ public class DebuggerExpressionComboBox extends DebuggerEditorImpl { super(project, context, recentsId, factory); setLayout(new BorderLayout(0, 0)); - myComboBox = new ComboBox(new MyComboboxModel(getRecents()), -1); + myComboBox = new ComboBox(new MyComboboxModel(getRecents()), 100); myComboBox.setSwingPopup(false); // Have to turn this off because when used in DebuggerTreeInplaceEditor, the combobox popup is hidden on every change of selection diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.form b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.form index 0fac0ddb9ab0..c0d9352e14b3 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.form +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.form @@ -34,7 +34,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -214,7 +214,7 @@ - + diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.java b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.java index bb0b21c68877..086dcfa40703 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/BreakpointPropertiesPanel.java @@ -33,7 +33,7 @@ import com.intellij.debugger.ui.DebuggerStatementEditor; import com.intellij.ide.ui.ListCellRendererWrapper; import com.intellij.ide.util.ClassFilter; import com.intellij.openapi.project.Project; -import com.intellij.openapi.ui.ComboBoxWithWidePopup; +import com.intellij.openapi.ui.ComboBox; import com.intellij.openapi.ui.DialogWrapper; import com.intellij.openapi.ui.FixedSizeButton; import com.intellij.openapi.util.Key; @@ -189,7 +189,8 @@ public abstract class BreakpointPropertiesPanel { myConditionCombo = new DebuggerExpressionComboBox(project, "LineBreakpoint condition"); myLogExpressionCombo = new DebuggerExpressionComboBox(project, "LineBreakpoint logMessage"); - final JComboBox baseBreakpointCombo = new ComboBoxWithWidePopup(); + final ComboBox baseBreakpointCombo = new ComboBox(100); + myBreakpointComboboxHandler = new BreakpointComboboxHandler(myProject, baseBreakpointCombo); baseBreakpointCombo.setRenderer(new BreakpointComboRenderer(baseBreakpointCombo.getRenderer())); baseBreakpointCombo.addItemListener(new ItemListener() {