debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/newwizard/Messages.java
author dadubrow
Mon, 15 Feb 2010 13:49:01 -0600
changeset 956 d1e221a2875f
permissions -rw-r--r--
new launch wizard implementation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
956
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     1
/*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     3
* All rights reserved.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     4
* This component and the accompanying materials are made available
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     6
* which accompanies this distribution, and is available
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     8
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
     9
* Initial Contributors:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    11
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    12
* Contributors:
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    13
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    14
* Description: 
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    15
*
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    16
*/
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    17
package com.nokia.cdt.internal.debug.launch.newwizard;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    18
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    19
import java.util.MissingResourceException;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    20
import java.util.ResourceBundle;
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    21
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    22
public class Messages {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    23
	private static final String BUNDLE_NAME = "com.nokia.cdt.internal.debug.launch.newwizard.messages"; //$NON-NLS-1$
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    24
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    25
	private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    26
			.getBundle(BUNDLE_NAME);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    27
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    28
	private Messages() {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    29
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    30
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    31
	public static String getString(String key) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    32
		try {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    33
			return RESOURCE_BUNDLE.getString(key);
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    34
		} catch (MissingResourceException e) {
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    35
			return '!' + key + '!';
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    36
		}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    37
	}
d1e221a2875f new launch wizard implementation
dadubrow
parents:
diff changeset
    38
}