|
1 /* |
|
2 * Copyright (c) 2008 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.apiquery.cache.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 defined |
|
25 * in one place and used via single access point. |
|
26 */ |
|
27 public class ProductInfoRegistry { |
|
28 |
|
29 private static final String PRODUCT_NAME = Product.getString("ProductInfoRegistry.Product_Name"); //$NON-NLS-1$ |
|
30 private static final String CONSOLE_WINDOW_NAME = PRODUCT_NAME + " " + Product.getString("ProductInfoRegistry.Console_Window_Name"); //$NON-NLS-1$ //$NON-NLS-2$ |
|
31 private static final String IMAGES_DIRECTORY = Product.getString("ProductInfoRegistry.Images_Directory"); //$NON-NLS-1$ |
|
32 |
|
33 /** |
|
34 * @return Returns the CONSOLE_WINDOW_NAME. |
|
35 */ |
|
36 public static String getConsoleWindowName() { |
|
37 return CONSOLE_WINDOW_NAME; |
|
38 } |
|
39 /** |
|
40 * @return Returns the PRODUCT_NAME. |
|
41 */ |
|
42 public static String getProductName() { |
|
43 return PRODUCT_NAME; |
|
44 } |
|
45 |
|
46 /** |
|
47 * @return Returns the IMAGES_DIRECTORY. |
|
48 */ |
|
49 public static String getImagesDirectoryName() { |
|
50 return IMAGES_DIRECTORY; |
|
51 } |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 } |