diff -r 000000000000 -r a02c979e8dfd srcanaapps/apiquerytool/com.nokia.s60tools.apiquery.cache/src/com/nokia/s60tools/apiquery/cache/common/ProductInfoRegistry.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/srcanaapps/apiquerytool/com.nokia.s60tools.apiquery.cache/src/com/nokia/s60tools/apiquery/cache/common/ProductInfoRegistry.java Sat Jan 09 10:04:11 2010 +0530 @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +package com.nokia.s60tools.apiquery.cache.common; + +/** + * This class stores product information such as product name, + * version, console view name etc. + * The idea is to have the product information defined + * in one place and used via single access point. + */ +public class ProductInfoRegistry { + + private static final String PRODUCT_NAME = Product.getString("ProductInfoRegistry.Product_Name"); //$NON-NLS-1$ + private static final String CONSOLE_WINDOW_NAME = PRODUCT_NAME + " " + Product.getString("ProductInfoRegistry.Console_Window_Name"); //$NON-NLS-1$ //$NON-NLS-2$ + private static final String IMAGES_DIRECTORY = Product.getString("ProductInfoRegistry.Images_Directory"); //$NON-NLS-1$ + + /** + * @return Returns the CONSOLE_WINDOW_NAME. + */ + public static String getConsoleWindowName() { + return CONSOLE_WINDOW_NAME; + } + /** + * @return Returns the PRODUCT_NAME. + */ + public static String getProductName() { + return PRODUCT_NAME; + } + + /** + * @return Returns the IMAGES_DIRECTORY. + */ + public static String getImagesDirectoryName() { + return IMAGES_DIRECTORY; + } + + + + +}