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 #573965] Fri, 07 November 2008 22:28
Robert M. Fuhrer is currently offline 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)
Previous Topic:Pros and cons with projects xtext and imp
Next Topic:Message severity and source editor annotations
Goto Forum:
  


Current Time: Fri Oct 24 21:35:53 GMT 2014

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

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