| /******************************************************************************* |
| * Copyright (c) 2015, 2018 École Polytechnique de Montréal |
| * |
| * All rights reserved. This program and the accompanying materials are |
| * made available under the terms of the Eclipse Public License 2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| *******************************************************************************/ |
| |
| package org.eclipse.tracecompass.internal.analysis.graph.ui.criticalpath.view; |
| |
| import org.eclipse.jdt.annotation.Nullable; |
| import org.eclipse.osgi.util.NLS; |
| import org.eclipse.tracecompass.common.core.NonNullUtils; |
| |
| /** |
| * Externalized strings for the critical path view |
| * |
| * @author Geneviève Bastien |
| */ |
| @SuppressWarnings("javadoc") |
| public class Messages { |
| private static final String BUNDLE_NAME = "org.eclipse.tracecompass.internal.analysis.graph.ui.criticalpath.view.messages"; //$NON-NLS-1$ |
| |
| public static @Nullable String CriticalFlowView_multipleStates; |
| |
| public static @Nullable String CriticalFlowView_stateTypeName; |
| |
| public static @Nullable String CriticalFlowView_columnProcess; |
| |
| public static @Nullable String CriticalFlowView_columnElapsed; |
| |
| public static @Nullable String CriticalFlowView_columnPercent; |
| |
| public static @Nullable String CriticalPathModule_waitingForGraph; |
| |
| public static @Nullable String CriticalPathView_selectAlgorithm; |
| public static @Nullable String CriticalPathView_followArrowFwdText; |
| public static @Nullable String CriticalPathView_followArrowBwdText; |
| public static @Nullable String CriticalPathLegend_running; |
| public static @Nullable String CriticalPathLegend_blocked; |
| |
| static { |
| // initialize resource bundle |
| NLS.initializeMessages(BUNDLE_NAME, Messages.class); |
| } |
| |
| private Messages() { |
| } |
| |
| /** |
| * Helper method to expose externalized strings as non-null objects. |
| */ |
| static String getMessage(@Nullable String msg) { |
| return NonNullUtils.nullToEmptyString(msg); |
| } |
| |
| } |