Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ProductInfo.java')
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ProductInfo.java141
1 files changed, 71 insertions, 70 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ProductInfo.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ProductInfo.java
index 8ea39486752..29f42e814ab 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ProductInfo.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ProductInfo.java
@@ -17,100 +17,101 @@ import org.eclipse.core.runtime.IProduct;
import org.eclipse.jface.resource.ImageDescriptor;
/**
- * Stores information about the product. This class replaces the old AboutInfo.
+ * Stores information about the product. This class replaces the old AboutInfo.
* The product information is available as strings, but is needed as URLs, etc.
* This class manages that translation.
+ *
* @since 3.0
*/
public class ProductInfo {
- private IProduct product;
+ private IProduct product;
- private String productName;
+ private String productName;
- private String appName;
+ private String appName;
- private ImageDescriptor[] windowImages;
+ private ImageDescriptor[] windowImages;
- private ImageDescriptor aboutImage;
+ private ImageDescriptor aboutImage;
- private String aboutText;
+ private String aboutText;
- public ProductInfo(IProduct product) {
- this.product = product;
- }
+ public ProductInfo(IProduct product) {
+ this.product = product;
+ }
- /**
- * Returns the product name or <code>null</code>.
- * This is shown in the window title and the About action.
- *
- * @return the product name, or <code>null</code>
- */
- public String getProductName() {
- if (productName == null && product != null) {
+ /**
+ * Returns the product name or <code>null</code>. This is shown in the window
+ * title and the About action.
+ *
+ * @return the product name, or <code>null</code>
+ */
+ public String getProductName() {
+ if (productName == null && product != null) {
productName = product.getName();
}
- return productName;
- }
+ return productName;
+ }
- /**
- * Returns the application name or <code>null</code>. Note this is never
- * shown to the user. It is used to initialize the SWT Display.
- * <p>
- * On Motif, for example, this can be used to set the name used
- * for resource lookup.
- * </p>
- *
- * @return the application name, or <code>null</code>
- *
- * @see org.eclipse.swt.widgets.Display#setAppName
- */
- public String getAppName() {
- if (appName == null && product != null) {
+ /**
+ * Returns the application name or <code>null</code>. Note this is never shown
+ * to the user. It is used to initialize the SWT Display.
+ * <p>
+ * On Motif, for example, this can be used to set the name used for resource
+ * lookup.
+ * </p>
+ *
+ * @return the application name, or <code>null</code>
+ *
+ * @see org.eclipse.swt.widgets.Display#setAppName
+ */
+ public String getAppName() {
+ if (appName == null && product != null) {
appName = ProductProperties.getAppName(product);
}
- return appName;
- }
+ return appName;
+ }
- /**
- * Returns the descriptor for an image which can be shown in an "about" dialog
- * for this product. Products designed to run "headless" typically would not
- * have such an image.
- *
- * @return the descriptor for an about image, or <code>null</code> if none
- */
- public ImageDescriptor getAboutImage() {
- if (aboutImage == null && product != null) {
+ /**
+ * Returns the descriptor for an image which can be shown in an "about" dialog
+ * for this product. Products designed to run "headless" typically would not
+ * have such an image.
+ *
+ * @return the descriptor for an about image, or <code>null</code> if none
+ */
+ public ImageDescriptor getAboutImage() {
+ if (aboutImage == null && product != null) {
aboutImage = ProductProperties.getAboutImage(product);
}
- return aboutImage;
- }
+ return aboutImage;
+ }
- /**
- * Return an array of image descriptors for the window images to use for
- * this product. The expectations is that the elements will be the same
- * image rendered at different sizes. Products designed to run "headless"
- * typically would not have such images.
- *
- * @return an array of the image descriptors for the window images, or
- * <code>null</code> if none
- */
- public ImageDescriptor[] getWindowImages() {
- if (windowImages == null && product != null) {
+ /**
+ * Return an array of image descriptors for the window images to use for this
+ * product. The expectations is that the elements will be the same image
+ * rendered at different sizes. Products designed to run "headless" typically
+ * would not have such images.
+ *
+ * @return an array of the image descriptors for the window images, or
+ * <code>null</code> if none
+ */
+ public ImageDescriptor[] getWindowImages() {
+ if (windowImages == null && product != null) {
windowImages = ProductProperties.getWindowImages(product);
}
- return windowImages;
- }
+ return windowImages;
+ }
- /**
- * Returns the text to show in an "about" dialog for this product.
- * Products designed to run "headless" typically would not have such text.
- *
- * @return the about text, or <code>null</code> if none
- */
- public String getAboutText() {
- if (aboutText == null && product != null) {
+ /**
+ * Returns the text to show in an "about" dialog for this product. Products
+ * designed to run "headless" typically would not have such text.
+ *
+ * @return the about text, or <code>null</code> if none
+ */
+ public String getAboutText() {
+ if (aboutText == null && product != null) {
aboutText = ProductProperties.getAboutText(product);
}
- return aboutText;
- }
+ return aboutText;
+ }
}

Back to the top