From 9e9421b22b34bc08c5086e975825ff2406db7535 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 30 Apr 2003 02:26:50 +0000 Subject: [PATCH] using new IMessage-based API for sourceline tasks --- .../aspectj/ajde/internal/LstBuildConfigManager.java | 12 ++++++++---- 1 file 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 = ""; // 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); -- 2.39.5