ui: suppress warning about missing Toolbar target component

The actions in the BackgroundImageDialog are not using DataContext.

GitOrigin-RevId: 7d31e1dff57ffe1c6bda7017917edffd5a15deb2
This commit is contained in:
Aleksey Pivovarov
2024-01-22 11:40:56 +01:00
committed by intellij-monorepo-bot
parent 897bfa4e1c
commit 148ada8bb5

View File

@@ -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);