/*******************************************************************************
* Copyright (c) 2014 É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 v1.0 which
* accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Geneviève Bastien - Initial API and implementation
*******************************************************************************/
package org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.module;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.osgi.util.NLS;
/**
* Externalized message strings from the LTTng Kernel Analysis
*
* @author Geneviève Bastien
*/
@SuppressWarnings("javadoc")
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.tracecompass.internal.lttng2.kernel.core.analysis.vm.module.messages"; //$NON-NLS-1$
public static @Nullable String VirtualMachineCPUAnalysis_Help;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
private Messages() {
}
/**
* Helper method to expose externalized strings as non-null objects.
*/
public static String getMessage(@Nullable String msg) {
if (msg == null) {
return ""; //$NON-NLS-1$
}
return msg;
}
}