Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » Message severity and source editor annotations
Message severity and source editor annotations [message #25216] Fri, 07 November 2008 22:28
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
Hi All,

We're considering an API change in the area of parser message
handling. In particular, the method handleSimpleMessage(...)
on org.eclipse.imp.parser.IMessageHandler doesn't provide a
way to specify the message severity. As a result, all of the
annotations in the editor come out looking the same, rather
than, say, errors being red, warnings being yellow, and so on.

We'd like to add a "int severity" argument to
handleSimpleMessage() so that it looks like this:

void handleSimpleMessage(String msg, int severity,
int startOffset, int endOffset,
int startCol, int endCol,
int startLine, int endLine);

This would be a breaking API change, so in theory we could
maintain backward compatibility by introducing an
IMessageHandlerExtension (similar to what's been done in
other parts of Eclipse), but given that this seems to be
basic, expected behavior, and given that we're an incubation
project where part of the point is to have a little more
freedom to change APIs before locking them down, we're
tempted to make a breaking change instead.

Comments? Objections?

-- Bob

Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center

IDE Meta-tooling Platform Project Lead (
X10: Productive High-Performance Parallel Programming (
Previous Topic:Message severity and source editor annotations
Next Topic:New annotation creation service?
Goto Forum:

Current Time: Thu Feb 22 19:09:23 GMT 2018

Powered by FUDForum. Page generated in 0.01448 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software