diff options
author | mkersten <mkersten> | 2003-07-09 07:47:32 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2003-07-09 07:47:32 +0000 |
commit | 49d7ef4d392a412e5dfe5375d18935c38e7a63d9 (patch) | |
tree | f9342bce82ac783b969d22c1bf4cd6e57ffb81f7 /ajde | |
parent | 8d5101c858324f957b8deed851742b2dc322a45a (diff) | |
download | aspectj-49d7ef4d392a412e5dfe5375d18935c38e7a63d9.tar.gz aspectj-49d7ef4d392a412e5dfe5375d18935c38e7a63d9.zip |
Fixed bugs introduced in 1.1rc2, where cast of message was incorrect.
Diffstat (limited to 'ajde')
-rw-r--r-- | ajde/src/org/aspectj/ajde/ui/swing/CompilerMessagesCellRenderer.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ajde/src/org/aspectj/ajde/ui/swing/CompilerMessagesCellRenderer.java b/ajde/src/org/aspectj/ajde/ui/swing/CompilerMessagesCellRenderer.java index 809c9cc82..650eaaae5 100644 --- a/ajde/src/org/aspectj/ajde/ui/swing/CompilerMessagesCellRenderer.java +++ b/ajde/src/org/aspectj/ajde/ui/swing/CompilerMessagesCellRenderer.java @@ -37,14 +37,14 @@ public class CompilerMessagesCellRenderer extends JLabel implements ListCellRend String label = "<no message>"; String detail = null; IMessage.Kind kind = IMessage.INFO; - if (value instanceof CompilerMessage) { - CompilerMessage cm = (CompilerMessage) value; - label = cm.message.getMessage(); + if (value instanceof IMessage) { + IMessage cm = (IMessage) value; + label = cm.getMessage(); if (LangUtil.isEmpty(label)) { - label = cm.message.toString(); + label = cm.getMessage().toString(); } - kind = cm.message.getKind(); - Throwable thrown = cm.message.getThrown(); + kind = cm.getKind(); + Throwable thrown = cm.getThrown(); if (null != thrown) { detail = LangUtil.renderException(thrown); } |