Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Accessing to errors in a model file
Accessing to errors in a model file [message #1222147] Thu, 19 December 2013 14:24 Go to next message
Eclipse UserFriend
Hi,

I'm trying to access to the errors in my model at the JvmModelGenerator level, when internalDoGenerate is called: I, on purpose, made my BuilderParticipant shouldGenerate method always return true.

The way I thought was correct was using ErrorSafeExtensions.hasErrors method, but strangely, it seems that IElementIssueProvider returned by the IElementIssueProvider.Factory always contains a Data field which is null, even when there is errors in the file!

So, first, I'm wondering if it is not a bug, and second, if there is an alternative way of checking for errors for a given element (and recursively in its eContent).

Thank you!

Victor
Re: Accessing to errors in a model file [message #1222885 is a reply to message #1222147] Sat, 21 December 2013 13:35 Go to previous message
Eclipse UserFriend
FYI,

In order to have the IElementIssueProvider work, one has to populate it as it is shown in XtendBuilderParticipant.

That did the trick for me Smile
Previous Topic:Nested annotations using XbaseWithAnnotations
Next Topic:Problem Referring to Existing EPackage
Goto Forum:
  


Current Time: Wed Jul 16 03:28:13 EDT 2025

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

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

Back to the top