|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 package com.nokia.s60tools.creator.common; |
|
20 |
|
21 /** |
|
22 * This class stores product information such as product name, |
|
23 * version, console view name etc. |
|
24 * The idea is to have the product information in one place. |
|
25 */ |
|
26 public class ProductInfoRegistry { |
|
27 |
|
28 private static final String PRODUCT_NAME = Product.getString("ProductInfoRegistry.Product_Name"); //$NON-NLS-1$ |
|
29 private static final String CONSOLE_WINDOW_NAME = PRODUCT_NAME + " " + Product.getString("ProductInfoRegistry.Console_Window_Name_Postfix"); //$NON-NLS-1$ //$NON-NLS-2$ |
|
30 private static final String IMAGES_DIRECTORY = Product.getString("ProductInfoRegistry.Images_Directory"); //$NON-NLS-1$ |
|
31 private static final String RESOURCES_RELATIVE_PATH = Product.getString("ProductInfoRegistry.Resources_Relative_Path"); //$NON-NLS-1$ |
|
32 private static final String DATA_DIRECTORY = Product.getString("ProductInfoRegistry.Data_Directory"); //$NON-NLS-1$ |
|
33 private static final String PROPERTIES_FILE_NAME = Product.getString("ProductInfoRegistry.Properties_File_Name"); //$NON-NLS-1$ |
|
34 private static final String CREATOR_TEMPLATE_FILE_NAME = Product.getString("ProductInfoRegistry.Creator_Template_File_Name"); //$NON-NLS-1$ |
|
35 |
|
36 |
|
37 /** |
|
38 * @return Returns the CONSOLE_WINDOW_NAME. |
|
39 */ |
|
40 public static String getConsoleWindowName() { |
|
41 return CONSOLE_WINDOW_NAME; |
|
42 } |
|
43 /** |
|
44 * @return Returns the PRODUCT_NAME. |
|
45 */ |
|
46 public static String getProductName() { |
|
47 return PRODUCT_NAME; |
|
48 } |
|
49 |
|
50 /** |
|
51 * @return Returns the IMAGES_DIRECTORY. |
|
52 */ |
|
53 public static String getImagesDirectoryName() { |
|
54 return IMAGES_DIRECTORY; |
|
55 } |
|
56 /** |
|
57 * @return Returns the RESOURCES_RELATIVE_PATH. |
|
58 */ |
|
59 public static String getResourcesRelativePath() { |
|
60 return RESOURCES_RELATIVE_PATH; |
|
61 } |
|
62 |
|
63 /** |
|
64 * @return Returns the CREATOR_TEMPLATE_FILE_NAME. |
|
65 */ |
|
66 public static String getCreatorTemplateFileName() { |
|
67 return CREATOR_TEMPLATE_FILE_NAME; |
|
68 } |
|
69 |
|
70 /** |
|
71 * @return Returns the DATA_DIRECTORY. |
|
72 */ |
|
73 public static String getDataDirectoryName() { |
|
74 return DATA_DIRECTORY; |
|
75 } |
|
76 /** |
|
77 * @return Returns the PROPERTIES_FILE_NAME. |
|
78 */ |
|
79 public static String getPropertiesFileName() { |
|
80 return PROPERTIES_FILE_NAME; |
|
81 } |
|
82 /** |
|
83 * @return Returns the Creator Symbian executable name. |
|
84 */ |
|
85 public static String getCreatorSymbianExcecutableName() { |
|
86 return Product.getString("ProductInfoRegistry.CreatorSymbianExecutableName"); //$NON-NLS-1$; |
|
87 } |
|
88 |
|
89 |
|
90 } |