analysis: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / analysis / os / linux / core / event / aspect / Messages.java
1 /*******************************************************************************
2 * Copyright (c) 2015 École Polytechnique de Montréal
3 *
4 * All rights reserved. This program and the accompanying materials are made
5 * 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.analysis.os.linux.core.event.aspect;
14
15 import org.eclipse.jdt.annotation.Nullable;
16 import org.eclipse.osgi.util.NLS;
17
18 /**
19 * @since 1.0
20 */
21 @SuppressWarnings("javadoc")
22 public class Messages extends NLS {
23
24 private static final String BUNDLE_NAME = "org.eclipse.tracecompass.analysis.os.linux.core.event.aspect.messages"; //$NON-NLS-1$
25
26 public static @Nullable String AspectName_Tid;
27
28 public static @Nullable String AspectHelpText_Tid;
29
30 static {
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 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.042106 seconds and 5 git commands to generate.