コード例 #1
0
 /**
  * @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();
 }
コード例 #2
0
 public NoDragImage getImage(ResourcePrototype uri, int width) {
   return new NoDragImage(GGWToolBar.safeURI(uri), width);
 }