a7c8bc99b3a872c3dfe2ead658e51b07a673d73a
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / controlflow / Messages.java
1 /*******************************************************************************
2 * Copyright (c) 2009 Ericsson
3 *
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
8 *
9 * Contributors:
10 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12 package org.eclipse.linuxtools.lttng.ui.views.controlflow;
13
14 import java.util.MissingResourceException;
15 import java.util.ResourceBundle;
16
17 public class Messages {
18 private static final String BUNDLE_NAME = "org.eclipse.linuxtools.lttng.ui.views.controlflow.messages"; //$NON-NLS-1$
19
20 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
21 .getBundle(BUNDLE_NAME);
22
23 private Messages() {
24 }
25
26 public static String getString(String key) {
27 try {
28 return RESOURCE_BUNDLE.getString(key);
29 } catch (MissingResourceException e) {
30 return '!' + key + '!';
31 }
32 }
33 }
This page took 0.031027 seconds and 4 git commands to generate.