[inspections view] setComponent for action toolbar

GitOrigin-RevId: d1249e73c164cbddcf12e55d65535e32c7bbc47e
This commit is contained in:
Anna Kozlova
2021-06-23 13:19:46 +00:00
committed by intellij-monorepo-bot
parent 4966aa2d3c
commit c2b779dd51
@@ -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();
}