Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 11 package org.eclipse.ui.internal; 12 13 import org.eclipse.core.runtime.IProduct; 14 import org.eclipse.jface.resource.ImageDescriptor; 15 16 22 public class ProductInfo { 23 private IProduct product; 24 25 private String productName; 26 27 private String appName; 28 29 private ImageDescriptor[] windowImages; 30 31 private ImageDescriptor aboutImage; 32 33 private String aboutText; 34 35 public ProductInfo(IProduct product) { 36 this.product = product; 37 } 38 39 45 public String getProductName() { 46 if (productName == null && product != null) { 47 productName = product.getName(); 48 } 49 return productName; 50 } 51 52 64 public String getAppName() { 65 if (appName == null && product != null) { 66 appName = ProductProperties.getAppName(product); 67 } 68 return appName; 69 } 70 71 78 public ImageDescriptor getAboutImage() { 79 if (aboutImage == null && product != null) { 80 aboutImage = ProductProperties.getAboutImage(product); 81 } 82 return aboutImage; 83 } 84 85 94 public ImageDescriptor[] getWindowImages() { 95 if (windowImages == null && product != null) { 96 windowImages = ProductProperties.getWindowImages(product); 97 } 98 return windowImages; 99 } 100 101 107 public String getAboutText() { 108 if (aboutText == null && product != null) { 109 aboutText = ProductProperties.getAboutText(product); 110 } 111 return aboutText; 112 } 113 } 114
| Popular Tags
|