diff options
author | aclement <aclement> | 2005-05-05 10:36:18 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-05-05 10:36:18 +0000 |
commit | 8e1a6c6abcd12073c8f29825235040c2a564a251 (patch) | |
tree | fa64cdf39abb932501c9127a6ccf32eff5e4de0a /org.aspectj.ajdt.core | |
parent | 9dc3f0fefe1784d02b1f3641ebc7104a2c2ec5a4 (diff) | |
download | aspectj-8e1a6c6abcd12073c8f29825235040c2a564a251.tar.gz aspectj-8e1a6c6abcd12073c8f29825235040c2a564a251.zip |
Fix for 44155: TODO tasks miscategorized as warnings (fixed by Andrew Huff)
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java index 9a856fbd4..e2c296245 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java @@ -146,9 +146,18 @@ public class EclipseAdapterUtils { extraDetails = extraDetails.substring(0,extraDetails.length()-"[deow=true]".length()); } + // If the 'problem' represents a TO DO kind of thing then use the message kind that + // represents this so AJDT sees it correctly. + IMessage.Kind kind; + if (problem.getID()==IProblem.Task) { + kind=IMessage.TASKTAG; + } else { + if (problem.isError()) { kind = IMessage.ERROR; } + else { kind = IMessage.WARNING; } + } IMessage msg = new Message(problem.getMessage(), extraDetails, - problem.isError() ? IMessage.ERROR : IMessage.WARNING, + kind, sourceLocation, null, seeAlsoLocations, |