/** * @param fileName of user defined tool * @return {@link SafeUri} of Icon with fileName */ SafeUri getIconFile(String fileName) { if (!fileName.isEmpty()) { String imageURL = app.getImageManager().getExternalImageSrc(fileName); if (imageURL != null) { return UriUtils.fromString(imageURL); } } return ((ImageResource) GGWToolBar.getMyIconResourceBundle().mode_tool_32()).getSafeUri(); }
public NoDragImage getImage(ResourcePrototype uri, int width) { return new NoDragImage(GGWToolBar.safeURI(uri), width); }