os.linux: Move ThreadPriorityAspect to the event.aspect package
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / analysis / os / linux / core / event / aspect / Messages.java
CommitLineData
312f397a
GB
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
13package org.eclipse.tracecompass.analysis.os.linux.core.event.aspect;
14
15import org.eclipse.jdt.annotation.Nullable;
16import org.eclipse.osgi.util.NLS;
17
dbc7991d
AM
18/**
19 * @since 1.0
6070a6bc 20 * @noreference Messages class
dbc7991d 21 */
312f397a
GB
22@SuppressWarnings("javadoc")
23public class Messages extends NLS {
24
25 private static final String BUNDLE_NAME = "org.eclipse.tracecompass.analysis.os.linux.core.event.aspect.messages"; //$NON-NLS-1$
26
27 public static @Nullable String AspectName_Tid;
28
29 public static @Nullable String AspectHelpText_Tid;
30
6070a6bc
AM
31 public static @Nullable String AspectName_Prio;
32
33 public static @Nullable String AspectHelpText_Prio;
34
312f397a
GB
35 static {
36 NLS.initializeMessages(BUNDLE_NAME, Messages.class);
37 }
38
39 private Messages() {
40 }
41
42 /**
43 * Helper method to expose externalized strings as non-null objects.
44 */
45 static String getMessage(@Nullable String msg) {
46 if (msg == null) {
47 return ""; //$NON-NLS-1$
48 }
49 return msg;
50 }
51}
This page took 0.043818 seconds and 5 git commands to generate.