Commit | Line | Data |
---|---|---|
b6eb4dce VP |
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 | ||
b04903a2 | 13 | package org.eclipse.tracecompass.internal.tmf.pcap.core.event.aspect; |
b6eb4dce VP |
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 { | |
93d1d135 | 20 | |
b04903a2 AM |
21 | private static final String BUNDLE_NAME = |
22 | "org.eclipse.tracecompass.internal.tmf.pcap.core.event.aspect.messages"; //$NON-NLS-1$ | |
93d1d135 | 23 | |
b04903a2 AM |
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; | |
93d1d135 | 28 | |
b6eb4dce | 29 | static { |
b6eb4dce VP |
30 | NLS.initializeMessages(BUNDLE_NAME, Messages.class); |
31 | } | |
32 | ||
33 | private Messages() { | |
34 | } | |
b04903a2 AM |
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 | } | |
b6eb4dce | 45 | } |