From 148ada8bb52e4b30fd377b16073aab979723c6f1 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Mon, 22 Jan 2024 11:40:56 +0100 Subject: [PATCH] ui: suppress warning about missing Toolbar target component The actions in the BackgroundImageDialog are not using DataContext. GitOrigin-RevId: 7d31e1dff57ffe1c6bda7017917edffd5a15deb2 --- .../intellij/images/editor/actions/BackgroundImageDialog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java b/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java index 9306e42478e5..e9cb1260b67d 100644 --- a/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java +++ b/images/src/org/intellij/images/editor/actions/BackgroundImageDialog.java @@ -206,6 +206,7 @@ public class BackgroundImageDialog extends DialogWrapper { actionGroup.add(createToggleAction(EDITOR, IdeBundle.message("toggle.editor.and.tools"))); actionGroup.add(createToggleAction(FRAME, IdeBundle.message("toggle.empty.frame"))); myToolbar = ActionManager.getInstance().createActionToolbar(getTitle(), actionGroup, true); + myToolbar.setTargetComponent(myToolbar.getComponent()); JComponent toolbarComponent = myToolbar.getComponent(); toolbarComponent.setBorder(JBUI.Borders.empty()); myTargetPanel.add(toolbarComponent);