Skip to main content


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 20:02 Go to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
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 07:09 Go to previous messageGo to next message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
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 12:30 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
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 Mar 28 19:48:11 GMT 2024

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

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

Back to the top