From c2b779dd515760c3f6faa472042cce0807cfda1e Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Wed, 23 Jun 2021 14:05:40 +0200 Subject: [PATCH] [inspections view] setComponent for action toolbar GitOrigin-RevId: d1249e73c164cbddcf12e55d65535e32c7bbc47e --- .../intellij/codeInspection/ui/InspectionResultsView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java index cd2039fcf298..acd29170991d 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java @@ -1,4 +1,4 @@ -// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.codeInspection.ui; @@ -264,9 +264,9 @@ public class InspectionResultsView extends JPanel implements Disposable, DataPro return myTree.getOccurenceNavigator().getPreviousOccurenceActionName(); } - private static JComponent createToolbar(final DefaultActionGroup specialGroup) { + private JComponent createToolbar(final DefaultActionGroup specialGroup) { final ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.CODE_INSPECTION, specialGroup, false); - //toolbar.setTargetComponent(this); + toolbar.setTargetComponent(this); return toolbar.getComponent(); }