mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 312467: Improperly externalized string
This commit is contained in:
parent
a16a16e0b4
commit
25fb53e9dc
3 changed files with 47 additions and 1 deletions
|
@ -87,6 +87,8 @@ import org.eclipse.debug.core.IBreakpointManagerListener;
|
|||
import org.eclipse.debug.core.model.IBreakpoint;
|
||||
import org.osgi.framework.BundleContext;
|
||||
|
||||
import com.ibm.icu.text.MessageFormat;
|
||||
|
||||
/**
|
||||
* Breakpoint service interface. The breakpoint service tracks CDT breakpoint
|
||||
* objects, and based on those, it manages breakpoints in the debugger back end.
|
||||
|
@ -596,7 +598,8 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
|
|||
|
||||
@Override
|
||||
protected void handleError() {
|
||||
addBreakpointProblemMarker(breakpoint, "Breakpoint attribute problem: installation failed", IMarker.SEVERITY_WARNING); //$NON-NLS-1$
|
||||
String description = MessageFormat.format(Messages.Breakpoint_attribute_problem, new Object[] { Messages.Breakpoint_installation_failed });
|
||||
addBreakpointProblemMarker(breakpoint, description, IMarker.SEVERITY_WARNING);
|
||||
installRM.done();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2010 Ericsson 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:
|
||||
* Ericsson - initial API and implementation
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.dsf.mi.service;
|
||||
|
||||
import org.eclipse.osgi.util.NLS;
|
||||
|
||||
/**
|
||||
* Preference strings.
|
||||
* @since 3.0
|
||||
*/
|
||||
class Messages extends NLS {
|
||||
public static String Breakpoint_attribute_problem;
|
||||
public static String Breakpoint_installation_failed;
|
||||
|
||||
static {
|
||||
// initialize resource bundle
|
||||
NLS.initializeMessages(Messages.class.getName(), Messages.class);
|
||||
}
|
||||
|
||||
private Messages() {
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
###############################################################################
|
||||
# Copyright (c) 2010 Ericsson 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:
|
||||
# Ericsson - initial API and implementation
|
||||
###############################################################################
|
||||
|
||||
Breakpoint_attribute_problem=Breakpoint attribute problem: {0}
|
||||
Breakpoint_installation_failed=installation failed
|
Loading…
Add table
Reference in a new issue