Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
Hi,

simply returning null in the message provider does the trick.

Alex
Re: Setting linking diagnostics to ignore? [message #1002340 is a reply to message #1001669] Fri, 18 January 2013 07:30 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 14:20:40 EDT 2025

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

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

Back to the top