示例#1
0
  @NotNull
  public static Icon getIcon(@NonNls @NotNull final String path) {
    Class callerClass = ReflectionUtil.getGrandCallerClass();

    assert callerClass != null : path;
    return getIcon(path, callerClass);
  }
示例#2
0
 @Nullable
 /**
  * Might return null if icon was not found. Use only if you expected null return value, otherwise
  * see {@link IconLoader#getIcon(java.lang.String)}
  */
 public static Icon findIcon(@NonNls @NotNull String path) {
   Class callerClass = ReflectionUtil.getGrandCallerClass();
   if (callerClass == null) return null;
   return findIcon(path, callerClass);
 }
 @Nullable
 public static Image loadFromResource(@NonNls @NotNull String s) {
   Class callerClass = ReflectionUtil.getGrandCallerClass();
   if (callerClass == null) return null;
   return loadFromResource(s, callerClass);
 }