Skip to content

Commit 52d7d58

Browse files
committed
Fix: Incompatible API changes in the upcoming IntelliJ Platform 2020.1 (#303)
- Updated deprecated uses of AllIcons
1 parent 7a4d41c commit 52d7d58

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/main/com/intellij/lang/jsgraphql/ide/editor/GraphQLIntrospectEndpointUrlLineMarkerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public LineMarkerInfo getLineMarkerInfo(@NotNull PsiElement element) {
5555
final JsonProperty jsonProperty = (JsonProperty) element;
5656
final Ref<String> urlRef = Ref.create();
5757
if (isEndpointUrl(jsonProperty, urlRef) && !hasErrors(jsonProperty.getContainingFile())) {
58-
return new LineMarkerInfo<>(jsonProperty, jsonProperty.getTextRange(), AllIcons.General.Run, Pass.UPDATE_ALL, o -> "Run introspection query to generate GraphQL SDL schema file", (evt, jsonUrl) -> {
58+
return new LineMarkerInfo<>(jsonProperty, jsonProperty.getTextRange(), AllIcons.RunConfigurations.TestState.Run, Pass.UPDATE_ALL, o -> "Run introspection query to generate GraphQL SDL schema file", (evt, jsonUrl) -> {
5959

6060
String introspectionUtl;
6161
if (jsonUrl.getValue() instanceof JsonStringLiteral) {

src/main/com/intellij/lang/jsgraphql/ide/editor/GraphQLIntrospectionJsonToSDLLineMarkerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void actionPerformed(@NotNull AnActionEvent e, @NotNull Notification noti
9393
Notifications.Bus.notify(notification.setImportant(true));
9494
}
9595
});
96-
return new LineMarkerInfo<>(jsonProperty, jsonProperty.getTextRange(), AllIcons.General.Run, Pass.UPDATE_ALL, o -> "Generate GraphQL SDL schema file", (evt, elt) -> {
96+
return new LineMarkerInfo<>(jsonProperty, jsonProperty.getTextRange(), AllIcons.RunConfigurations.TestState.Run, Pass.UPDATE_ALL, o -> "Generate GraphQL SDL schema file", (evt, elt) -> {
9797
generateAction.get().run();
9898
}, GutterIconRenderer.Alignment.CENTER);
9999
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public GraphQLSchemaContentNode(SimpleNode parent, GraphQLSchemaWithErrors schem
6565

6666
getTemplatePresentation().setTooltip("Double click or press enter to search the schema registry");
6767

68-
setIcon(AllIcons.Modules.ModulesNode);
68+
setIcon(AllIcons.Nodes.ModuleGroup);
6969

7070
}
7171

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public GraphQLSchemaErrorNode(SimpleNode parent, GraphQLError error) {
3434
super(parent);
3535
this.error = error;
3636
myName = error.getMessage();
37-
setIcon(AllIcons.Ide.Error);
37+
setIcon(AllIcons.Ide.FatalError);
3838
SourceLocation location = getLocation();
3939
if (location != null) {
4040
getTemplatePresentation().setTooltip(location.getSourceName() + ":" + location.getLine() + ":" + location.getColumn());

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public GraphQLSchemaErrorsListNode(SimpleNode parent, GraphQLSchemaWithErrors sc
2727
super(parent);
2828
this.schemaWithErrors = schemaWithErrors;
2929
myName = "Schema errors";
30-
setIcon(AllIcons.Nodes.TreeClosed);
30+
setIcon(AllIcons.Nodes.Folder);
3131
}
3232

3333
@Override

0 commit comments

Comments
 (0)