use correct toolbar component

This commit is contained in:
Egor.Ushakov
2016-08-11 11:27:14 +03:00
parent 4a70b0879f
commit 65a4471407
@@ -111,6 +111,7 @@ public class XWatchesViewImpl extends XVariablesView implements DnDNativeTarget,
toolbar.setBorder(new CustomLineBorder(CaptionPanel.CNT_ACTIVE_BORDER_COLOR, 0, 0,
myWatchesInVariables ? 0 : 1,
myWatchesInVariables ? 1 : 0));
toolbar.setTargetComponent(tree);
if (!myWatchesInVariables) {
getTree().getEmptyText().setText(XDebuggerBundle.message("debugger.no.watches"));