Ejemplo n.º 1
0
 public File getIconFile() {
   try {
     IconDesc id =
         getLaunchDesc()
             .getInformation()
             .getIconLocation(InformationDesc.ICON_SIZE_MEDIUM, IconDesc.ICON_KIND_DEFAULT);
     DiskCacheEntry iconEntry =
         DownloadProtocol.getCachedVersion(
             id.getLocation(), id.getVersion(), DownloadProtocol.IMAGE_DOWNLOAD);
     if (iconEntry != null) {
       return iconEntry.getFile();
     }
   } catch (Exception e) {
   }
   return null;
 }
Ejemplo n.º 2
0
 public LaunchDesc getLaunchDesc() {
   if (_ld == null) {
     try {
       _ld = LaunchDescFactory.buildDescriptor(_dce.getFile());
     } catch (Exception e) {
       Trace.ignoredException(e);
     }
   }
   return _ld;
 }
Ejemplo n.º 3
0
 public File getJnlpFile() {
   return _dce.getFile();
 }