org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/core/deploy/DeployMessages.java
changeset 458 5ff93668b08c
parent 457 f1087591ff71
child 459 c278f0c8917f
equal deleted inserted replaced
457:f1087591ff71 458:5ff93668b08c
     1 /**
       
     2  * Copyright (c) 2009 Symbian Foundation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the License "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  * Symbian Foundation - initial contribution.
       
    11  * Contributors:
       
    12  * Description:
       
    13  * Overview:
       
    14  * Details:
       
    15  * Platforms/Drives/Compatibility:
       
    16  * Assumptions/Requirement/Pre-requisites:
       
    17  * Failures and causes:
       
    18  */
       
    19 
       
    20 package org.symbian.tools.wrttools.core.deploy;
       
    21 
       
    22 import java.util.MissingResourceException;
       
    23 import java.util.ResourceBundle;
       
    24 
       
    25 public class DeployMessages {
       
    26 	private static final String BUNDLE_NAME = "org.symbian.tools.wrttools.core.deploy.deployMessages"; //$NON-NLS-1$
       
    27 
       
    28 	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
       
    29 			.getBundle(BUNDLE_NAME);
       
    30 
       
    31 	private DeployMessages() {
       
    32 	}
       
    33 
       
    34 	public static String getString(String key) {
       
    35 		try {
       
    36 			return RESOURCE_BUNDLE.getString(key);
       
    37 		} catch (MissingResourceException e) {
       
    38 			return '!' + key + '!';
       
    39 		}
       
    40 	}
       
    41 }