From a996802cd96ed144874d9fd1087aa52f02fa693b Mon Sep 17 00:00:00 2001 From: Sergey Malenkov Date: Thu, 14 Feb 2019 16:55:29 +0300 Subject: [PATCH] UX-387: deprecate XsltDebuggerIcons.FilterWhitespace --- .../icons/filterWhitespace.png | Bin .../xslt-debugger/resources/icons/icon-robots.txt | 1 + .../xslt-debugger/src/icons/XsltDebuggerIcons.java | 13 +++++++++---- 3 files changed, 10 insertions(+), 4 deletions(-) rename plugins/xslt-debugger/{resources => compatibilityResources}/icons/filterWhitespace.png (100%) create mode 100644 plugins/xslt-debugger/resources/icons/icon-robots.txt diff --git a/plugins/xslt-debugger/resources/icons/filterWhitespace.png b/plugins/xslt-debugger/compatibilityResources/icons/filterWhitespace.png similarity index 100% rename from plugins/xslt-debugger/resources/icons/filterWhitespace.png rename to plugins/xslt-debugger/compatibilityResources/icons/filterWhitespace.png diff --git a/plugins/xslt-debugger/resources/icons/icon-robots.txt b/plugins/xslt-debugger/resources/icons/icon-robots.txt new file mode 100644 index 000000000000..cdfb74fb76ac --- /dev/null +++ b/plugins/xslt-debugger/resources/icons/icon-robots.txt @@ -0,0 +1 @@ +deprecated: filterWhitespace.png -> com.intellij.icons.AllIcons@/objectBrowser/flattenPackages.svg; to be removed in IDEA 2020 - use AllIcons.ObjectBrowser.FlattenPackages diff --git a/plugins/xslt-debugger/src/icons/XsltDebuggerIcons.java b/plugins/xslt-debugger/src/icons/XsltDebuggerIcons.java index 95b4351fa2d7..4c0d4b916215 100644 --- a/plugins/xslt-debugger/src/icons/XsltDebuggerIcons.java +++ b/plugins/xslt-debugger/src/icons/XsltDebuggerIcons.java @@ -14,12 +14,17 @@ public final class XsltDebuggerIcons { return IconLoader.getIcon(path, XsltDebuggerIcons.class); } - /** - * 16x16 - */ - public static final Icon FilterWhitespace = load("/icons/filterWhitespace.png"); + private static Icon load(String path, Class clazz) { + return IconLoader.getIcon(path, clazz); + } + /** * 16x16 */ public static final Icon XmlComment = load("/icons/xmlComment.svg"); + + /** @deprecated to be removed in IDEA 2020 - use AllIcons.ObjectBrowser.FlattenPackages */ + @SuppressWarnings("unused") + @Deprecated + public static final Icon FilterWhitespace = load("/objectBrowser/flattenPackages.svg", com.intellij.icons.AllIcons.class); }