Skip to main content



      Home
Home » Archived » IMP » Message severity and source editor annotations
Message severity and source editor annotations [message #25216] Fri, 07 November 2008 17:28
Eclipse UserFriend
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)
Previous Topic:Message severity and source editor annotations
Next Topic:New annotation creation service?
Goto Forum:
  


Current Time: Fri Jul 04 12:56:24 EDT 2025

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

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

Back to the top