tmf: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / event / aspect / Messages.java
1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
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 * Alexandre Montplaisir - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.tmf.core.event.aspect;
14
15 import org.eclipse.jdt.annotation.Nullable;
16 import org.eclipse.osgi.util.NLS;
17
18 @SuppressWarnings("javadoc")
19 public class Messages extends NLS {
20
21 private static final String BUNDLE_NAME = "org.eclipse.tracecompass.tmf.core.event.aspect.messages"; //$NON-NLS-1$
22
23 public static @Nullable String AspectName_Timestamp;
24 public static @Nullable String AspectName_EventType;
25 public static @Nullable String AspectName_Contents;
26 public static @Nullable String AspectName_TraceName;
27 public static @Nullable String AspectName_CPU;
28
29 public static @Nullable String AspectHelpText_EventType;
30 public static @Nullable String AspectHelpText_Contents;
31 public static @Nullable String AspectHelpText_TraceName;
32 public static @Nullable String AspectHelpText_CPU;
33 public static @Nullable String AspectHelpText_Statesystem;
34
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.037411 seconds and 5 git commands to generate.