lttng: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.kernel.core / src / org / eclipse / tracecompass / internal / lttng2 / kernel / core / analysis / vm / module / Messages.java
1 /*******************************************************************************
2 * Copyright (c) 2014 École Polytechnique de Montréal
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 * Geneviève Bastien - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.module;
14
15 import org.eclipse.jdt.annotation.Nullable;
16 import org.eclipse.osgi.util.NLS;
17
18 /**
19 * Externalized message strings from the LTTng Kernel Analysis
20 *
21 * @author Geneviève Bastien
22 */
23 @SuppressWarnings("javadoc")
24 public class Messages extends NLS {
25 private static final String BUNDLE_NAME = "org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.module.messages"; //$NON-NLS-1$
26
27 public static @Nullable String VirtualMachineCPUAnalysis_Help;
28
29 static {
30 // initialize resource bundle
31 NLS.initializeMessages(BUNDLE_NAME, Messages.class);
32 }
33
34 private Messages() {
35 }
36
37 /**
38 * Helper method to expose externalized strings as non-null objects.
39 */
40 public static String getMessage(@Nullable String msg) {
41 if (msg == null) {
42 return ""; //$NON-NLS-1$
43 }
44 return msg;
45 }
46 }
This page took 0.039592 seconds and 5 git commands to generate.