3a2af66679fab92b6e353be2a6d0e408ed6686e6
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ctf.core / src / org / eclipse / tracecompass / tmf / ctf / core / event / aspect / Messages.java
1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 Ericsson
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Patrick Tassé - Initial API and implementation
10 *******************************************************************************/
11
12 package org.eclipse.tracecompass.tmf.ctf.core.event.aspect;
13
14 import org.eclipse.jdt.annotation.NonNull;
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 =
22 "org.eclipse.tracecompass.tmf.ctf.core.event.aspect.messages"; //$NON-NLS-1$
23
24 public static String AspectName_Channel;
25 public static String AspectHelpText_Channel;
26
27 static {
28 NLS.initializeMessages(BUNDLE_NAME, Messages.class);
29 }
30
31 private Messages() {
32 }
33
34 /**
35 * Helper method to expose externalized strings as non-null objects.
36 */
37 static @NonNull String getMessage(@Nullable String msg) {
38 if (msg == null) {
39 return ""; //$NON-NLS-1$
40 }
41 return msg;
42 }
43 }
This page took 0.032364 seconds and 4 git commands to generate.