comparison dwtx/jface/resource/JFaceResources.d @ 90:7ffeace6c47f

Update 3.4M7 to 3.4
author Frank Benoit <benoit@tionex.de>
date Sun, 06 Jul 2008 23:30:07 +0200
parents e28b067ce8c5
children 04b47443bb01
comparison
equal deleted inserted replaced
89:040da1cb0d76 90:7ffeace6c47f
50 * <li>a color registry</li> 50 * <li>a color registry</li>
51 * <li>an image registry</li> 51 * <li>an image registry</li>
52 * <li>a resource bundle</li> 52 * <li>a resource bundle</li>
53 * </ul> 53 * </ul>
54 * </p> 54 * </p>
55 * @noinstantiate This class is not intended to be instantiated by clients.
56 * @noextend This class is not intended to be subclassed by clients.
55 */ 57 */
56 public class JFaceResources { 58 public class JFaceResources {
57 59
58 /** 60 /**
59 * The path to the icons in the resources. 61 * The path to the icons in the resources.
491 String path, ImportData importdata/+ClassInfo fallback, String fallbackPath+/) { 493 String path, ImportData importdata/+ClassInfo fallback, String fallbackPath+/) {
492 494
493 ImageDescriptor descriptor = null; 495 ImageDescriptor descriptor = null;
494 496
495 if (bundle !is null) { 497 if (bundle !is null) {
496 /* 498 // URL url = FileLocator.find((Bundle) bundle, new Path(path), null);
497 URL url = FileLocator.find((Bundle) bundle, new Path(path), null); 499 // if (url !is null)
498 if (url !is null) 500 // descriptor = ImageDescriptor.createFromURL(url);
499 descriptor = ImageDescriptor.createFromURL(url);
500 */
501 } 501 }
502 502
503 // If we failed then load from the backup file 503 // If we failed then load from the backup file
504 if (descriptor is null) 504 if (descriptor is null)
505 descriptor = ImageDescriptor.createFromFile( importdata /+fallback, fallbackPath+/); 505 descriptor = ImageDescriptor.createFromFile( importdata /+fallback, fallbackPath+/);