Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorKen Ryall2007-01-31 20:38:04 +0000
committerKen Ryall2007-01-31 20:38:04 +0000
commit5128fa2cb3a6fc1a94e2dc69e968401770a650ba (patch)
tree56cc636fd0f5ef922eedac7b1fa74d3b641145c9 /debug
parentf3e2d73cd294b203a4464499144e21872dfa0618 (diff)
downloadorg.eclipse.cdt-5128fa2cb3a6fc1a94e2dc69e968401770a650ba.tar.gz
org.eclipse.cdt-5128fa2cb3a6fc1a94e2dc69e968401770a650ba.tar.xz
org.eclipse.cdt-5128fa2cb3a6fc1a94e2dc69e968401770a650ba.zip
Forgot to externalize strings.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointMessages.properties2
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointProblems.java12
2 files changed, 8 insertions, 6 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointMessages.properties b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointMessages.properties
index bbb9c911128..4dc9b94fd1f 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointMessages.properties
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointMessages.properties
@@ -32,3 +32,5 @@ CWatchpoint.2=Access watchpoint: {0}
# The marker message of a watchpoint.
CWatchpoint.3=Watchpoint: {0}
+BreakpointProblems_Moved=Breakpoint could not be set at line {0}, moved to line {1}
+BreakpointProblems_Unresolved=Unresolved breakpoint
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointProblems.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointProblems.java
index e7fb955e727..3a502d0fe59 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointProblems.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/breakpoints/BreakpointProblems.java
@@ -38,13 +38,13 @@ public class BreakpointProblems {
public static final String BREAKPOINT_CONTEXT_ID = "bp_context_id"; //$NON-NLS-1$
public static IMarker reportBreakpointMoved(ICBreakpoint breakpoint, int oldLineNumber, int newLineNumber, String contextName, String contextID) throws CoreException {
- String message = MessageFormat.format("Breakpoint could not be set at line {0}, moved to line {1}", new Object[] { new Integer(oldLineNumber), new Integer(newLineNumber) });
+ String message = MessageFormat.format(BreakpointMessages.getString("BreakpointProblems_Moved"), new Object[] { new Integer(oldLineNumber), new Integer(newLineNumber) }); //$NON-NLS-1$
IMarker marker = BreakpointProblems.reportBreakpointProblem(breakpoint, message, IMarker.SEVERITY_INFO, MOVED, true, false, contextName, contextID);
return marker;
}
public static IMarker reportUnresolvedBreakpoint(ICBreakpoint breakpoint, String contextName, String contextID) throws CoreException {
- IMarker marker = BreakpointProblems.reportBreakpointProblem(breakpoint, "Unresolved breakpoint", IMarker.SEVERITY_WARNING, UNRESOLVED, true, false, contextName, contextID);
+ IMarker marker = BreakpointProblems.reportBreakpointProblem(breakpoint, BreakpointMessages.getString("BreakpointProblems_Unresolved"), IMarker.SEVERITY_WARNING, UNRESOLVED, true, false, contextName, contextID); //$NON-NLS-1$
return marker;
}
@@ -78,9 +78,9 @@ public class BreakpointProblems {
{
IMarker[] bpProblems = bpResource.findMarkers(BREAKPOINT_PROBLEM_MARKER_ID, true, IResource.DEPTH_INFINITE);
for (int i = 0; i < bpProblems.length; i++) {
- if (bpProblems[i].getAttribute(BREAKPOINT_PROBLEM_TYPE, "").equalsIgnoreCase(UNRESOLVED) &&
+ if (bpProblems[i].getAttribute(BREAKPOINT_PROBLEM_TYPE, "").equalsIgnoreCase(UNRESOLVED) && //$NON-NLS-1$
bpProblems[i].getAttribute(IMarker.LINE_NUMBER, 0) == lineNumber &&
- bpProblems[i].getAttribute(BREAKPOINT_CONTEXT_ID, "").equals(contextID))
+ bpProblems[i].getAttribute(BREAKPOINT_CONTEXT_ID, "").equals(contextID)) //$NON-NLS-1$
{
bpProblems[i].delete();
}
@@ -108,7 +108,7 @@ public class BreakpointProblems {
int lineNumber = existingMarker.getAttribute(IMarker.LINE_NUMBER, 0);
IMarker[] bpProblems = bpResource.findMarkers(BREAKPOINT_PROBLEM_MARKER_ID, true, IResource.DEPTH_INFINITE);
for (int i = 0; i < bpProblems.length; i++) {
- if (bpProblems[i].getAttribute(BREAKPOINT_PROBLEM_TYPE, "").equalsIgnoreCase(problemType) &&
+ if (bpProblems[i].getAttribute(BREAKPOINT_PROBLEM_TYPE, "").equalsIgnoreCase(problemType) && //$NON-NLS-1$
bpProblems[i].getAttribute(IMarker.LINE_NUMBER, 0) == lineNumber)
{
bpProblems[i].delete();
@@ -123,7 +123,7 @@ public class BreakpointProblems {
marker = reportBreakpointProblem(new ProblemMarkerInfo(
lineBreakpoint.getMarker().getResource(),
lineBreakpoint.getLineNumber(), description, severity,
- ""));
+ "")); //$NON-NLS-1$
marker.setAttribute(BREAKPOINT_PROBLEM_TYPE, problemType);
marker.setAttribute(BREAKPOINT_CONTEXT_NAME, contextName);
marker.setAttribute(BREAKPOINT_CONTEXT_ID, contextID);

Back to the top