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 | |
parent | 9dc3f0fefe1784d02b1f3641ebc7104a2c2ec5a4 (diff) | |
download | aspectj-8e1a6c6abcd12073c8f29825235040c2a564a251.tar.gz aspectj-8e1a6c6abcd12073c8f29825235040c2a564a251.zip |
Fix for 44155: TODO tasks miscategorized as warnings (fixed by Andrew Huff)
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/EclipseAdapterUtils.java | 11 | ||||
-rw-r--r-- | testing/src/org/aspectj/testing/xml/SoftMessage.java | 4 |
2 files changed, 14 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, diff --git a/testing/src/org/aspectj/testing/xml/SoftMessage.java b/testing/src/org/aspectj/testing/xml/SoftMessage.java index cec8baf71..d75f9d838 100644 --- a/testing/src/org/aspectj/testing/xml/SoftMessage.java +++ b/testing/src/org/aspectj/testing/xml/SoftMessage.java @@ -212,6 +212,10 @@ public class SoftMessage implements IMessage { public boolean isInfo() { return kind == IMessage.INFO; } + + public boolean isTaskTag() { + return kind == IMessage.TASKTAG; + } /** @return true if kind == IMessage.ABORT */ public boolean isAbort() { |