com.intellij.openapi.util.IconLoadericons.XpathIcons



Project JetBrains/intellij-community in file ...ang.src.org.intellij.lang.xpath.XPathFileType.java (2012-08-30)
@@ -17,7 +17,7 @@ package org.intellij.lang.xpath;
 
 import com.intellij.lang.Language;
 import com.intellij.openapi.fileTypes.LanguageFileType;
-import com.intellij.openapi.util.IconLoader;
+import icons.XpathIcons;
 import org.jetbrains.annotations.NotNull;
 
 import javax.swing.*;
@@ -47,6 +47,6 @@ public final class XPathFileType extends LanguageFileType {
     }
 
     public Icon getIcon() {
-        return IconLoader.getIcon("/icons/xpath.png");
+        return XpathIcons.Xpath;
     }
 }
Project JetBrains/intellij-community in file ...intellij.lang.xpath.completion.FunctionLookup.java (2012-08-30)
@@ -16,8 +16,8 @@
 package org.intellij.lang.xpath.completion;
 
 import com.intellij.openapi.util.Comparing;
-import com.intellij.openapi.util.IconLoader;
 import com.intellij.openapi.util.Iconable;
+import icons.XpathIcons;
 import org.intellij.lang.xpath.context.functions.Function;
 
 import javax.swing.*;
@@ -53,7 +53,7 @@ public class FunctionLookup extends AbstractLookup implements Iconable {
     }
 
     public Icon getIcon(int flags) {
-        return IconLoader.getIcon("/icons/function.png");
+        return XpathIcons.Function;
     }
 
   @Override
Project JetBrains/intellij-community in file ...ntellij.lang.xpath.completion.NamespaceLookup.java (2012-08-30)
@@ -16,7 +16,7 @@
 package org.intellij.lang.xpath.completion;
 
 import com.intellij.openapi.util.Iconable;
-import com.intellij.openapi.util.IconLoader;
+import icons.XpathIcons;
 
 import javax.swing.*;
 
@@ -26,6 +26,6 @@ public class NamespaceLookup extends AbstractLookup implements Lookup, Iconable
     }
 
     public Icon getIcon(int flags) {
-        return IconLoader.getIcon("/icons/namespace.png");
+        return XpathIcons.Namespace;
     }
 }
Project JetBrains/intellij-community in file ...org.intellij.lang.xpath.completion.NodeLookup.java (2012-08-30)
@@ -15,9 +15,9 @@
  */
 package org.intellij.lang.xpath.completion;
 
-import com.intellij.openapi.util.IconLoader;
 import com.intellij.openapi.util.Iconable;
 import com.intellij.util.PlatformIcons;
+import icons.XpathIcons;
 import org.intellij.lang.xpath.psi.XPathNodeTest;
 
 import javax.swing.*;
@@ -31,6 +31,6 @@ public class NodeLookup extends AbstractLookup implements Lookup, Iconable {
     }
 
     public Icon getIcon(int flags) {
-        return principalType == XPathNodeTest.PrincipalType.ATTRIBUTE ? PlatformIcons.ANNOTATION_TYPE_ICON : IconLoader.getIcon("/icons/tag.png");
+        return principalType == XPathNodeTest.PrincipalType.ATTRIBUTE ? PlatformIcons.ANNOTATION_TYPE_ICON : XpathIcons.Tag;
     }
 }
Project JetBrains/intellij-community in file ...lij.lang.xpath.psi.impl.XPathFunctionCallImpl.java (2012-08-30)
@@ -18,13 +18,13 @@ package org.intellij.lang.xpath.psi.impl;
 import com.intellij.lang.ASTNode;
 import com.intellij.navigation.ItemPresentation;
 import com.intellij.navigation.NavigationItem;
-import com.intellij.openapi.util.IconLoader;
 import com.intellij.openapi.util.Pair;
 import com.intellij.psi.PsiElement;
 import com.intellij.psi.PsiElementVisitor;
 import com.intellij.psi.PsiReference;
 import com.intellij.psi.impl.light.LightElement;
 import com.intellij.util.IncorrectOperationException;
+import icons.XpathIcons;
 import org.intellij.lang.xpath.XPath2ElementTypes;
 import org.intellij.lang.xpath.XPathTokenTypes;
 import org.intellij.lang.xpath.context.ContextProvider;
@@ -217,7 +217,7 @@ public class XPathFunctionCallImpl extends XPathElementImpl implements XPathFunc
       }
 
       public Icon getIcon(int i) {
-        return IconLoader.getIcon("/icons/function.png");
+        return XpathIcons.Function;
       }
 
       public void accept(@NotNull PsiElementVisitor visitor) {