dabf9ea34b38c64af2df9463572340afc4cb892d
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / analysis / os / linux / core / latency / Messages.java
1 /*******************************************************************************
2 * Copyright (c) 2015 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
10 package org.eclipse.tracecompass.analysis.os.linux.core.latency;
11
12 import org.eclipse.jdt.annotation.Nullable;
13 import org.eclipse.osgi.util.NLS;
14
15 /**
16 * Messages for Syscall latency analysis.
17 * @since 2.0
18 */
19 public class Messages extends NLS {
20
21 private static final String BUNDLE_NAME = "org.eclipse.tracecompass.analysis.os.linux.core.latency.messages"; //$NON-NLS-1$
22
23 /** System Call latency analysis aspect name */
24 public static @Nullable String SegmentAspectName_SystemCall;
25
26 /** System Call latency analysis aspect help text */
27 public static @Nullable String SegmentAspectHelpText_SystemCall;
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.034893 seconds and 4 git commands to generate.