Skip to content

Commit b33f59b

Browse files
committed
Fixed more toolbar warnings
1 parent c350e73 commit b33f59b

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/main/com/intellij/lang/jsgraphql/endpoint/ide/editor/JSGraphQLEndpointEnterHandlerDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public Result preprocessEnter(@NotNull PsiFile file, @NotNull Editor editor, @No
6767
AnAction editorLineEnd = ActionManager.getInstance().getAction("EditorLineEnd");
6868
if (editorLineEnd != null) {
6969
final AnActionEvent actionEvent = AnActionEvent.createFromDataContext(
70-
ActionPlaces.UNKNOWN,
70+
"GraphQLEndpointEnterHandler",
7171
null,
7272
DataManager.getInstance().getDataContext(parentEditor.getComponent())
7373
);

src/main/com/intellij/lang/jsgraphql/endpoint/ide/intentions/JSGraphQLEndpointCreateDefinitionIntention.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void invoke(@NotNull Project project, Editor editor, @NotNull PsiElement
9292
AnAction editorLineEnd = ActionManager.getInstance().getAction("EditorLineEnd");
9393
if (editorLineEnd != null) {
9494
final AnActionEvent actionEvent = AnActionEvent.createFromDataContext(
95-
ActionPlaces.UNKNOWN,
95+
"GraphQLEndpointCreateDefinition",
9696
null,
9797
DataManager.getInstance().getDataContext(editor.getComponent())
9898
);

src/main/com/intellij/lang/jsgraphql/ide/notifications/GraphQLScopeEditorNotificationProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private EditorNotificationPanel createPanel() {
5757
panel.createActionLabel(GraphQLBundle.message("graphql.notification.file.out.of.scope.edit"), () -> {
5858
final GraphQLEditConfigAction action = new GraphQLEditConfigAction();
5959
final AnActionEvent actionEvent = AnActionEvent.createFromDataContext(
60-
ActionPlaces.UNKNOWN,
60+
"GraphQLConfigEditorNotification",
6161
null,
6262
DataManager.getInstance().getDataContext(panel)
6363
);

src/main/com/intellij/lang/jsgraphql/ide/project/schemastatus/GraphQLSchemasPanel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ public void actionPerformed(AnActionEvent e) {
293293
final JPanel panel = new JPanel(new BorderLayout());
294294
final ActionManager actionManager = ActionManager.getInstance();
295295
final ActionToolbar leftToolbar = actionManager.createActionToolbar(ActionPlaces.COMPILER_MESSAGES_TOOLBAR, leftActionGroup, false);
296+
leftToolbar.setTargetComponent(panel);
296297
panel.add(leftToolbar.getComponent(), BorderLayout.WEST);
297298
return panel;
298299
}

0 commit comments

Comments
 (0)