Message severity and source editor annotations [message #25216] |
Fri, 07 November 2008 22:28 |
Robert M. Fuhrer 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?
--
Cheers,
-- Bob
--------------------------------
Robert M. Fuhrer
Research Staff Member
Programming Technologies Dept.
IBM T.J. Watson Research Center
IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
X10: Productive High-Performance Parallel Programming (http://x10.sf.net)
|
|
|
Powered by
FUDForum. Page generated in 0.03086 seconds