1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

- fixed some NON-NLS problems

This commit is contained in:
Alena Laskavaia 2010-03-08 19:53:14 +00:00
parent c8dd92b392
commit 89f91481e8
2 changed files with 3 additions and 3 deletions

View file

@ -65,10 +65,10 @@ public class QuickFixAssignmentInCondition implements IMarkerResolution {
int line = marker.getAttribute(IMarker.LINE_NUMBER, -1) - 1;
FindReplaceDocumentAdapter dad = new FindReplaceDocumentAdapter(doc);
try {
dad.find(doc.getLineOffset(line), "=", /* forwardSearch */
dad.find(doc.getLineOffset(line), "=", /* forwardSearch */ //$NON-NLS-1$
true, /* caseSensitive */false,
/* wholeWord */false, /* regExSearch */false);
dad.replace("==", /* regExReplace */false);
dad.replace("==", /* regExReplace */false); //$NON-NLS-1$
marker.delete();
} catch (BadLocationException e) {
// TODO: log the error

View file

@ -95,7 +95,7 @@ public class CodanPreferencesLoader {
public String getProperty(String id) {
IProblem prob = baseModel.findProblem(id);
if (!(prob instanceof CodanProblem)) return null;
String enabled = prob.isEnabled() ? "" : "-";
String enabled = prob.isEnabled() ? "" : "-"; //$NON-NLS-1$ //$NON-NLS-2$
String severity = prob.getSeverity().toString();
String res = enabled + severity;
return res;