Remove deprecated icons in AllIcons.Json

GitOrigin-RevId: 64dd7a261edd06809b110cb8742ae8e51443d6ea
This commit is contained in:
Sergey Malenkov
2020-01-21 21:57:39 +03:00
committed by intellij-monorepo-bot
parent bc7416ea14
commit 3b7f349cc5
13 changed files with 5 additions and 19 deletions

View File

@@ -1,3 +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.
package com.intellij.json.psi.impl; package com.intellij.json.psi.impl;
import com.intellij.icons.AllIcons; import com.intellij.icons.AllIcons;
@@ -76,10 +77,10 @@ public class JsonPsiImplUtils {
@Override @Override
public Icon getIcon(boolean unused) { public Icon getIcon(boolean unused) {
if (property.getValue() instanceof JsonArray) { if (property.getValue() instanceof JsonArray) {
return AllIcons.Json.Property_brackets; return AllIcons.Json.Array;
} }
if (property.getValue() instanceof JsonObject) { if (property.getValue() instanceof JsonObject) {
return AllIcons.Json.Property_braces; return AllIcons.Json.Object;
} }
return PlatformIcons.PROPERTY_ICON; return PlatformIcons.PROPERTY_ICON;
} }

View File

@@ -1,3 +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.
package com.intellij.json; package com.intellij.json;
import com.intellij.icons.AllIcons; import com.intellij.icons.AllIcons;
@@ -148,7 +149,7 @@ public class JsonStructureViewTest extends JsonTestCase {
assertEquals("aaa", children[0].getPresentation().getPresentableText()); assertEquals("aaa", children[0].getPresentation().getPresentableText());
assertEquals(PlatformIcons.PROPERTY_ICON, children[0].getPresentation().getIcon(false)); assertEquals(PlatformIcons.PROPERTY_ICON, children[0].getPresentation().getIcon(false));
assertEquals("bbb", children[1].getPresentation().getPresentableText()); assertEquals("bbb", children[1].getPresentation().getPresentableText());
assertEquals(AllIcons.Json.Property_braces, children[1].getPresentation().getIcon(false)); assertEquals(AllIcons.Json.Object, children[1].getPresentation().getIcon(false));
children = children[1].getChildren(); children = children[1].getChildren();
assertEquals(1, children.length); assertEquals(1, children.length);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

View File

@@ -1,2 +0,0 @@
deprecated: property_braces.png -> /json/object.svg; to be removed in IDEA 2020 - use AllIcons.Json.Object
deprecated: property_brackets.png -> /json/array.svg; to be removed in IDEA 2020 - use AllIcons.Json.Array

View File

@@ -594,8 +594,6 @@ public class PlatformIconsAPITest extends TestCase {
"/javaee/WebServiceClient2.png", "/javaee/WebServiceClient2.png",
"/json/array.png", "/json/array.png",
"/json/object.png", "/json/object.png",
"/json/property_braces.png",
"/json/property_brackets.png",
"/Logo_welcomeScreen.png", "/Logo_welcomeScreen.png",
"/mac/appIconOk512.png", "/mac/appIconOk512.png",
"/mac/text.png", "/mac/text.png",

View File

@@ -584,18 +584,6 @@ public class AllIcons {
/** 16x16 */ public static final Icon Array = load("/json/array.svg"); /** 16x16 */ public static final Icon Array = load("/json/array.svg");
/** 16x16 */ public static final Icon Object = load("/json/object.svg"); /** 16x16 */ public static final Icon Object = load("/json/object.svg");
/** @deprecated to be removed in IDEA 2020 - use AllIcons.Json.Object */
@SuppressWarnings("unused")
@Deprecated
@ScheduledForRemoval(inVersion = "2020.1")
/** 16x16 */ public static final Icon Property_braces = load("/json/object.svg");
/** @deprecated to be removed in IDEA 2020 - use AllIcons.Json.Array */
@SuppressWarnings("unused")
@Deprecated
@ScheduledForRemoval(inVersion = "2020.1")
/** 16x16 */ public static final Icon Property_brackets = load("/json/array.svg");
} }
/** 80x80 */ public static final Icon Logo_welcomeScreen = load("/Logo_welcomeScreen.png"); /** 80x80 */ public static final Icon Logo_welcomeScreen = load("/Logo_welcomeScreen.png");
/** 80x80 */ public static final Icon Logo_welcomeScreen_CE = load("/Logo_welcomeScreen_CE.png"); /** 80x80 */ public static final Icon Logo_welcomeScreen_CE = load("/Logo_welcomeScreen_CE.png");