/** * Gets the URL of the specified (icon) file fileName. * @param fileName The file name. May be {@code null}. * @return The URL of the specified file name in the class path. May be {@code null}. */ private static URL getIconURLFromIconFileName(String fileName) { if(fileName == null) { return null; } Bundle b = PluginUtilities.getInstance().getApplicationBundle(); URL url = b.getResource(fileName); if(url != null) { return url; } if(!isNameAbsolute(fileName)) { return b.getResource(ALTERNATIVE_ICONS_PATH + fileName); } return null; }
/** * Gets the URL of the specified (icon) file fileName. * @param fileName The file name. May be {@code null}. * @return The URL of the specified file name in the class path. May be {@code null}. */ private static URL getIconURLFromIconFileName(String fileName) { if(fileName == null) { return null; } Bundle b = PluginUtilities.getInstance().getApplicationBundle(); URL url = b.getResource(fileName); if(url != null) { return url; } if(!isNameAbsolute(fileName)) { return b.getResource(ALTERNATIVE_ICONS_PATH + fileName); } return null; }