1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.lttng
.ui
.views
.resources
;
14 import java
.util
.MissingResourceException
;
15 import java
.util
.ResourceBundle
;
17 public class Messages
{
18 private static final String BUNDLE_NAME
= "org.eclipse.linuxtools.lttng.ui.views.resources.messages"; //$NON-NLS-1$
20 private static final ResourceBundle RESOURCE_BUNDLE
= ResourceBundle
21 .getBundle(BUNDLE_NAME
);
26 public static String
getString(String key
) {
28 return RESOURCE_BUNDLE
.getString(key
);
29 } catch (MissingResourceException e
) {
30 return '!' + key
+ '!';