Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Setting linking diagnostics to ignore?
Setting linking diagnostics to ignore? [message #1001482] Wed, 16 January 2013 15:02 Go to next message
Stephan Herrmann is currently offline Stephan Herrmann
Messages: 995
Registered: July 2009
Senior Member
I'm following Sebastian's hints from http://zarnekow.blogspot.de/2010/06/customizing-error-messages-in-xtext-10.html which works nicely so far, but I'd like to do one more tweak: provide an option to entirely ignore linking errors (to support drafting a model with no further constraints).

I'm surprised to see that org.eclipse.xtext.diagnostics.Severity has no element IGNORE, is that on purpose? Would an RFE make sense? Is there another way to configure linking diagnostics to be ignored?

I saw mention of work on providing general configurability for diagnostics (forgot where), would ignoring linking errors be part of that work?

cheers,
Stephan
Re: Setting linking diagnostics to ignore? [message #1001669 is a reply to message #1001482] Thu, 17 January 2013 02:09 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander Nittka
Messages: 1151
Registered: July 2009
Senior Member
Hi,

simply returning null in the message provider does the trick.

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Re: Setting linking diagnostics to ignore? [message #1002340 is a reply to message #1001669] Fri, 18 January 2013 07:30 Go to previous message
Stephan Herrmann is currently offline Stephan Herrmann
Messages: 995
Registered: July 2009
Senior Member
Quote:

simply returning null in the message provider does the trick.

Cool, exactly what I need.
I guess I should have read the javadoc of that method.

thanks,
Stephan
Previous Topic: JvmTypesBuilder generate final parameters
Next Topic:Guice Exception when calling XTextGenerator in maven with fornax-tools
Goto Forum:
  


Current Time: Thu Aug 21 19:56:56 EDT 2014

Powered by FUDForum. Page generated in 0.01870 seconds