Exemplo n.º 1
0
  @NotNull
  public static Icon getIcon(@NonNls @NotNull final String path) {
    Class callerClass = ReflectionUtil.getGrandCallerClass();

    assert callerClass != null : path;
    return getIcon(path, callerClass);
  }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 @Nullable
 public static Image loadFromResource(@NonNls @NotNull String s) {
   Class callerClass = ReflectionUtil.getGrandCallerClass();
   if (callerClass == null) return null;
   return loadFromResource(s, callerClass);
 }