From ebc166b362f90621c8eec6879d08247afa449a5d Mon Sep 17 00:00:00 2001 From: "andrey.zaytsev" Date: Mon, 19 Sep 2011 17:53:53 +0400 Subject: [PATCH] xdebugger: breakpoint editing balloon is closing after it was expanded. --- .../com/intellij/xdebugger/impl/ui/DebuggerUIUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/DebuggerUIUtil.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/DebuggerUIUtil.java index e7c1a85979e5..cc60068d677e 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/DebuggerUIUtil.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/DebuggerUIUtil.java @@ -165,12 +165,9 @@ public class DebuggerUIUtil { @Override public void breakpointChanged(@NotNull XBreakpoint breakpoint1) { - if (breakpoint1.equals(breakpoint)) { - balloon.hide(); - } } }; - breakpointManager.addBreakpointListener(breakpointListener); + balloon.addListener(new JBPopupListener() { @Override public void beforeShown(LightweightWindowEvent event) { @@ -186,6 +183,7 @@ public class DebuggerUIUtil { propertiesPanel.setDelegate(new XLightBreakpointPropertiesPanel.Delegate() { @Override public void showMoreOptions() { + propertiesPanel.saveProperties(); balloon.hide(); showBreakpointEditorBalloon(project, point, component, true, breakpoint); } @@ -198,6 +196,8 @@ public class DebuggerUIUtil { } else { balloon.show(new RelativePoint(component, point), Balloon.Position.atRight); } + + breakpointManager.addBreakpointListener(breakpointListener); ApplicationManager.getApplication().invokeLater(new Runnable() { @Override public void run() {