1 /*******************************************************************************
2 * Copyright (c) 2015 École Polytechnique de Montréal
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.analysis
.graph
.ui
.criticalpath
.view
;
12 import org
.eclipse
.jdt
.annotation
.Nullable
;
13 import org
.eclipse
.osgi
.util
.NLS
;
14 import org
.eclipse
.tracecompass
.common
.core
.NonNullUtils
;
17 * Externalized strings for the critical path view
19 * @author Geneviève Bastien
21 @SuppressWarnings("javadoc")
22 public class Messages
{
23 private static final String BUNDLE_NAME
= "org.eclipse.tracecompass.internal.analysis.graph.ui.criticalpath.view.messages"; //$NON-NLS-1$
25 public static @Nullable String CriticalFlowView_multipleStates
;
27 public static @Nullable String CriticalFlowView_stateTypeName
;
29 public static @Nullable String CriticalFlowView_columnProcess
;
31 public static @Nullable String CriticalFlowView_columnElapsed
;
33 public static @Nullable String CriticalFlowView_columnPercent
;
35 public static @Nullable String CriticalPathModule_waitingForGraph
;
37 public static @Nullable String CriticalPathView_selectAlgorithm
;
40 // initialize resource bundle
41 NLS
.initializeMessages(BUNDLE_NAME
, Messages
.class);
48 * Helper method to expose externalized strings as non-null objects.
50 static String
getMessage(@Nullable String msg
) {
51 return NonNullUtils
.nullToEmptyString(msg
);