From 7c98cdd864a63cd09f709b72ba1eac3245062582 Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Tue, 26 Jan 2016 21:41:50 +0300 Subject: [PATCH] IDEA-149395 Fix tree border in the Breakpoints dialog --- .../xdebugger/impl/breakpoints/ui/BreakpointsDialog.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/BreakpointsDialog.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/BreakpointsDialog.java index 89c19a95c56f..02b114dd6e27 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/BreakpointsDialog.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/ui/BreakpointsDialog.java @@ -36,6 +36,7 @@ import com.intellij.util.Function; import com.intellij.util.SingleAlarm; import com.intellij.util.containers.ContainerUtil; import com.intellij.util.containers.HashSet; +import com.intellij.util.ui.UIUtil; import com.intellij.util.ui.tree.TreeUtil; import com.intellij.xdebugger.XDebuggerBundle; import com.intellij.xdebugger.XDebuggerManager; @@ -344,8 +345,6 @@ public class BreakpointsDialog extends DialogWrapper { setToolbarPosition(ActionToolbarPosition.TOP). setToolbarBorder(IdeBorderFactory.createEmptyBorder()); - tree.setBorder(IdeBorderFactory.createBorder()); - for (ToggleActionButton action : myToggleRuleActions) { decorator.addExtraAction(action); } @@ -353,6 +352,9 @@ public class BreakpointsDialog extends DialogWrapper { JPanel decoratedTree = decorator.createPanel(); decoratedTree.setBorder(IdeBorderFactory.createEmptyBorder()); + JScrollPane pane = UIUtil.findParentByClass(tree, JScrollPane.class); + if (pane != null) pane.setBorder(IdeBorderFactory.createBorder()); + myTreeController.setTreeView(tree); myTreeController.buildTree(myBreakpointItems);