Skip to content

Commit 94c39ef

Browse files
committed
Fix #12: The ID of warnings are not shown
1 parent 0ef2a13 commit 94c39ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/marker/ProblemReporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void reportProblem(Problem problem) throws CoreException {
4747
}
4848
message.append(problem.getMessage());
4949
final String completeMessage = Messages.bind(
50-
Messages.ProblemReporter_Message, problem.getCategory(),
50+
Messages.ProblemReporter_Message, (problem.getCategory() + " [" + problem.getId() + "]"),
5151
message);
5252
for (IResource resource : problem.getResources()) {
5353
// for each resource

com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/messages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ BuildPropertyPage_RunOnBuild=Run on build
7676
Console_Title=cppcheck
7777

7878
ProblemReporter_ProblemInExternalFile=Problem in external file {0} line {1}:
79-
ProblemReporter_Message=(cppcheck {0}) {1}
79+
ProblemReporter_Message=cppcheck {0} {1}
8080
ProblemsPreferencePage_Description=Select which problems should be reported in which severity.
8181
ProblemsTreeEditor_Name=Name
8282
ProblemsTreeEditor_Problems=Problems

0 commit comments

Comments
 (0)