diff options
author | wisberg <wisberg> | 2003-04-30 02:26:50 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-04-30 02:26:50 +0000 |
commit | 9e9421b22b34bc08c5086e975825ff2406db7535 (patch) | |
tree | 52de12a4311aed0d12c11cf518a7c7c138bc06d5 /ajde | |
parent | 4172b282a73f694e7cfad4d27c8407995423ec1f (diff) | |
download | aspectj-9e9421b22b34bc08c5086e975825ff2406db7535.tar.gz aspectj-9e9421b22b34bc08c5086e975825ff2406db7535.zip |
using new IMessage-based API for sourceline tasks
Diffstat (limited to 'ajde')
-rw-r--r-- | ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java b/ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java index 6e337a161..8dacef516 100644 --- a/ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java +++ b/ajde/src/org/aspectj/ajde/internal/LstBuildConfigManager.java @@ -30,6 +30,8 @@ import org.aspectj.ajde.ui.BuildConfigModel; import org.aspectj.ajde.ui.BuildConfigNode; import org.aspectj.asm.StructureNode; import org.aspectj.bridge.IMessage; +import org.aspectj.bridge.Message; +import org.aspectj.bridge.MessageUtil; import org.aspectj.bridge.SourceLocation; import org.aspectj.util.ConfigParser; @@ -74,10 +76,12 @@ public class LstBuildConfigManager implements BuildConfigManager { } catch (ConfigParser.ParseException pe) { // String filePath = "<unknown>"; // if (pe.getFile() != null) filePath = pe.getFile().getAbsolutePath(); - Ajde.getDefault().getTaskListManager().addSourcelineTask( - pe.getMessage(), - new SourceLocation(pe.getFile(), pe.getLine(), 1), - IMessage.ERROR); + IMessage message = new Message( + pe.getMessage(), + IMessage.ERROR, + pe, + new SourceLocation(pe.getFile(), pe.getLine(), 1)); + Ajde.getDefault().getTaskListManager().addSourcelineTask(message); } List relativePaths = relativizeFilePaths(configFiles, rootPath); |