|
1 /* |
|
2 * Copyright (c) 2009 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.memspy.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 |
|
29 /** |
|
30 * @return Returns the Console window name. |
|
31 */ |
|
32 public static String getConsoleWindowName() { |
|
33 return getProductName() + " " + Product.getString("ProductInfoRegistry.Console_Window_Name_Postfix"); //$NON-NLS-1$ //$NON-NLS-2$ |
|
34 } |
|
35 /** |
|
36 * @return Returns the Product name. |
|
37 */ |
|
38 public static String getProductName() { |
|
39 return Product.getString("ProductInfoRegistry.Product_Name"); //$NON-NLS-1$ |
|
40 } |
|
41 |
|
42 /** |
|
43 * @return Returns the images directory. |
|
44 */ |
|
45 public static String getImagesDirectoryName() { |
|
46 return Product.getString("ProductInfoRegistry.Images_Directory"); //$NON-NLS-1$ |
|
47 } |
|
48 |
|
49 /** |
|
50 * @return Returns the required MemSpy Launcher data version. |
|
51 */ |
|
52 public static int getRequiredMemSpyLauncherDataVersion() { |
|
53 String versionStr = Product.getString("ProductInfoRegistry.Required_MemSpyLauncherS60DataVersion"); //$NON-NLS-1$ |
|
54 int version = Integer.parseInt(versionStr); |
|
55 return version; |
|
56 } |
|
57 |
|
58 |
|
59 } |