btf: Move the plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.pcap.core / src / org / eclipse / tracecompass / internal / tmf / pcap / core / event / aspect / Messages.java
1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
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 * Vincent Perot - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.tracecompass.internal.tmf.pcap.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 =
22 "org.eclipse.tracecompass.internal.tmf.pcap.core.event.aspect.messages"; //$NON-NLS-1$
23
24 public static @Nullable String PcapAspectName_Destination;
25 public static @Nullable String PcapAspectName_Protocol;
26 public static @Nullable String PcapAspectName_Reference;
27 public static @Nullable String PcapAspectName_Source;
28
29 static {
30 NLS.initializeMessages(BUNDLE_NAME, Messages.class);
31 }
32
33 private Messages() {
34 }
35
36 /**
37 * Helper method to expose externalized strings as non-null objects.
38 */
39 static String getMessage(@Nullable String msg) {
40 if (msg == null) {
41 return ""; //$NON-NLS-1$
42 }
43 return msg;
44 }
45 }
This page took 0.040505 seconds and 5 git commands to generate.