1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 386878 - Non-externalized String - Multicore Visualizer

This commit is contained in:
Vivian Kong 2012-08-13 14:43:19 -04:00
parent 0f8978c785
commit 39c4e6a8e2
3 changed files with 44 additions and 4 deletions

View file

@ -0,0 +1,29 @@
/*******************************************************************************
* Copyright (c) 2012 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.view;
import org.eclipse.osgi.util.NLS;
/**
* @since 1.0
*/
public class Messages extends NLS {
private static final String BUNDLE_NAME = "org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.view.messages"; //$NON-NLS-1$
public static String MulticoreVisualizer_name;
public static String MulticoreVisualizer_tooltip;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, Messages.class);
}
private Messages() {
}
}

View file

@ -7,6 +7,7 @@
*
* Contributors:
* William R. Swanson (Tilera Corporation) - initial API and implementation
* IBM Corporation
*******************************************************************************/
package org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.view;
@ -187,15 +188,13 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer
/** Returns localized name to display for this visualizer. */
@Override
public String getDisplayName() {
// TODO: use a string resource here.
return "Multicore Visualizer"; //$NON-NLS-1$
return Messages.MulticoreVisualizer_name;
}
/** Returns localized tooltip text to display for this visualizer. */
@Override
public String getDescription() {
// TODO: use a string resource here.
return "Displays current state of selected debug target."; //$NON-NLS-1$
return Messages.MulticoreVisualizer_tooltip;
}

View file

@ -0,0 +1,12 @@
###############################################################################
# Copyright (c) 2012 IBM Corporation and others.
# 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:
# IBM Corporation - initial API and implementation
###############################################################################
MulticoreVisualizer_name=Multicore Visualizer
MulticoreVisualizer_tooltip=Displays current state of selected debug target.