mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
- fixed some NON-NLS problems
This commit is contained in:
parent
c8dd92b392
commit
89f91481e8
2 changed files with 3 additions and 3 deletions
|
@ -65,10 +65,10 @@ public class QuickFixAssignmentInCondition implements IMarkerResolution {
|
||||||
int line = marker.getAttribute(IMarker.LINE_NUMBER, -1) - 1;
|
int line = marker.getAttribute(IMarker.LINE_NUMBER, -1) - 1;
|
||||||
FindReplaceDocumentAdapter dad = new FindReplaceDocumentAdapter(doc);
|
FindReplaceDocumentAdapter dad = new FindReplaceDocumentAdapter(doc);
|
||||||
try {
|
try {
|
||||||
dad.find(doc.getLineOffset(line), "=", /* forwardSearch */
|
dad.find(doc.getLineOffset(line), "=", /* forwardSearch */ //$NON-NLS-1$
|
||||||
true, /* caseSensitive */false,
|
true, /* caseSensitive */false,
|
||||||
/* wholeWord */false, /* regExSearch */false);
|
/* wholeWord */false, /* regExSearch */false);
|
||||||
dad.replace("==", /* regExReplace */false);
|
dad.replace("==", /* regExReplace */false); //$NON-NLS-1$
|
||||||
marker.delete();
|
marker.delete();
|
||||||
} catch (BadLocationException e) {
|
} catch (BadLocationException e) {
|
||||||
// TODO: log the error
|
// TODO: log the error
|
||||||
|
|
|
@ -95,7 +95,7 @@ public class CodanPreferencesLoader {
|
||||||
public String getProperty(String id) {
|
public String getProperty(String id) {
|
||||||
IProblem prob = baseModel.findProblem(id);
|
IProblem prob = baseModel.findProblem(id);
|
||||||
if (!(prob instanceof CodanProblem)) return null;
|
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 severity = prob.getSeverity().toString();
|
||||||
String res = enabled + severity;
|
String res = enabled + severity;
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Add table
Reference in a new issue