diff options
author | Andrew Gvozdev | 2010-07-15 14:35:58 +0000 |
---|---|---|
committer | Andrew Gvozdev | 2010-07-15 14:35:58 +0000 |
commit | 0d1338e5027c8327c383baa60dbbe5676a598eee (patch) | |
tree | 8c7d61d86adf3e8bb0bcf166fdaeee83e4ebd415 /debug/org.eclipse.cdt.debug.mi.core | |
parent | 874bc5564a7e8951021d4c154f43f13992c11cda (diff) | |
download | org.eclipse.cdt-0d1338e5027c8327c383baa60dbbe5676a598eee.tar.gz org.eclipse.cdt-0d1338e5027c8327c383baa60dbbe5676a598eee.tar.xz org.eclipse.cdt-0d1338e5027c8327c383baa60dbbe5676a598eee.zip |
bug 319748: Missing/unnecessary $NON-NLS$ tags
patch from Petri Tuononen
Diffstat (limited to 'debug/org.eclipse.cdt.debug.mi.core')
8 files changed, 17 insertions, 17 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Value.java b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Value.java index 5bbda236ec0..a59775a7549 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Value.java +++ b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Value.java @@ -79,7 +79,7 @@ public class Value extends CObject implements ICDIValue { // format is, by example (for a float&): "@0x22cc98: 3.19616001e-39" // We need to dig out the latter. if (fIsReference) { - if (result.startsWith("@0x")) { + if (result.startsWith("@0x")) { //$NON-NLS-1$ int index = result.indexOf(':'); if (index > 0 && ((index + 1) < result.length())) { result = result.substring(index+1).trim(); diff --git a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Watchpoint.java b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Watchpoint.java index da23fa2b2bf..3f7a5801a9c 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Watchpoint.java +++ b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Watchpoint.java @@ -30,7 +30,7 @@ public class Watchpoint extends Breakpoint implements ICDIWatchpoint2 { public Watchpoint(Target target, String expression, int type, int watchType, ICDICondition condition, boolean enabled) { - this(target, expression, "", BigInteger.ZERO, type, watchType, condition, enabled); + this(target, expression, "", BigInteger.ZERO, type, watchType, condition, enabled); //$NON-NLS-1$ } public Watchpoint(Target target, String expression, String memorySpace, @@ -44,22 +44,22 @@ public class Watchpoint extends Breakpoint implements ICDIWatchpoint2 { // If the range and/or memory space are specified, cast the expression, e.g., // (@data char[4])(*0x402000) - derivedExpression = ""; + derivedExpression = ""; //$NON-NLS-1$ boolean doSpecifyMemorySpace = memorySpace.length() > 0; boolean doSpecifyRange = range.compareTo(BigInteger.ZERO) > 0; boolean doSpecify = doSpecifyMemorySpace || doSpecifyRange; if ( doSpecify ) { - derivedExpression += "("; + derivedExpression += "("; //$NON-NLS-1$ if ( doSpecifyMemorySpace ) { - derivedExpression += "@" + memorySpace; + derivedExpression += "@" + memorySpace; //$NON-NLS-1$ if ( doSpecifyRange ) { - derivedExpression += " "; + derivedExpression += " "; //$NON-NLS-1$ } } if ( doSpecifyRange ) { - derivedExpression += "char[" + range.toString() + "]"; + derivedExpression += "char[" + range.toString() + "]"; //$NON-NLS-1$ //$NON-NLS-2$ } - derivedExpression += ")("; + derivedExpression += ")("; //$NON-NLS-1$ } try { @@ -70,7 +70,7 @@ public class Watchpoint extends Breakpoint implements ICDIWatchpoint2 { } derivedExpression += expression; if ( doSpecify ) { - derivedExpression += ")"; + derivedExpression += ")"; //$NON-NLS-1$ } } diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/CLIProcessor.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/CLIProcessor.java index ea79cd32dc3..b97373aa513 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/CLIProcessor.java +++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/CLIProcessor.java @@ -223,7 +223,7 @@ public class CLIProcessor { // only function breakpoints can be set using rbreak return MIBreakpointChangedEvent.HINT_NEW_FUNCTION_BREAKPOINT; } - if (op.equals("catch")) { + if (op.equals("catch")) { //$NON-NLS-1$ return MIBreakpointChangedEvent.HINT_NEW_EVENTBREAKPOINT; } if ( !st.hasMoreTokens() ) { diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MIGDBSetNewConsole.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MIGDBSetNewConsole.java index 895a4baff60..6bcb3cce8ef 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MIGDBSetNewConsole.java +++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MIGDBSetNewConsole.java @@ -13,7 +13,7 @@ package org.eclipse.cdt.debug.mi.core.command; public class MIGDBSetNewConsole extends MIGDBSet { public MIGDBSetNewConsole(String miVersion) { - this(miVersion, "on"); + this(miVersion, "on"); //$NON-NLS-1$ } public MIGDBSetNewConsole(String miVersion, String param) { diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/CygwinMIEnvironmentCD.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/CygwinMIEnvironmentCD.java index 1948e510d13..8b121ccec9f 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/CygwinMIEnvironmentCD.java +++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/CygwinMIEnvironmentCD.java @@ -33,12 +33,12 @@ public class CygwinMIEnvironmentCD extends WinMIEnvironmentCD { try { launcher.execute( new Path( "cygpath" ), //$NON-NLS-1$ new String[]{ "-u", path }, //$NON-NLS-1$ - new String[0], new Path( "." ), + new String[0], new Path( "." ), //$NON-NLS-1$ null); } catch (CoreException e1) { // TODO Auto-generated catch block e1.printStackTrace(); - } //$NON-NLS-1$ + } if ( launcher.waitAndRead( out, err ) == ICommandLauncher.OK ) { newPath = out.toString(); if ( newPath != null ) { diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/CygwinMIEnvironmentDirectory.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/CygwinMIEnvironmentDirectory.java index ecc80be1388..bb87cf8c342 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/CygwinMIEnvironmentDirectory.java +++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/factories/win32/CygwinMIEnvironmentDirectory.java @@ -94,11 +94,11 @@ public class CygwinMIEnvironmentDirectory extends MIEnvironmentDirectory { new Path("cygpath"), //$NON-NLS-1$ new String[] { "-p", "-u", path }, //$NON-NLS-1$ //$NON-NLS-2$ new String[0], - new Path("."), null); + new Path("."), null); //$NON-NLS-1$ } catch (CoreException e) { // TODO Auto-generated catch block e.printStackTrace(); - } //$NON-NLS-1$ + } if (launcher.waitAndRead(out, out) == ICommandLauncher.OK) result = out.toString().trim(); return result; diff --git a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/CLIInfoLineInfo.java b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/CLIInfoLineInfo.java index 428604858a2..68e9c691798 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/CLIInfoLineInfo.java +++ b/debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/CLIInfoLineInfo.java @@ -71,7 +71,7 @@ public class CLIInfoLineInfo extends MIInfo { } protected void parseLineInfo(String str, List aList) { - if (str.endsWith(".")) + if (str.endsWith(".")) //$NON-NLS-1$ str = str.substring(0, str.length()-1); String[] strbits = str.split("\\s"); //$NON-NLS-1$ for (int i = 0; i < strbits.length; i++) { diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger.java index 6bd705b2d18..cdebd9caeef 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBCDIDebugger.java @@ -263,7 +263,7 @@ public class GDBCDIDebugger implements ICDIDebugger { } catch( CoreException e ) { } - return MessageFormat.format(format, new String[]{label, timestamp}); //$NON-NLS-1$ + return MessageFormat.format(format, new String[]{label, timestamp}); } /** |