Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:24 Go to next message
Victor Noël is currently offline Victor NoëlFriend
Messages: 112
Registered: June 2010
Senior Member
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 18:35 Go to previous message
Victor Noël is currently offline Victor NoëlFriend
Messages: 112
Registered: June 2010
Senior Member
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: Thu Apr 25 04:19:04 GMT 2024

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

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

Back to the top