Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Propagation of errors to Problems view(Propagate and fill Problems view after each explicit generation)
Propagation of errors to Problems view [message #1739940] Fri, 05 August 2016 18:38 Go to next message
Serge Lamikhov is currently offline Serge LamikhovFriend
Messages: 26
Registered: May 2016
Junior Member
Great article from Christian's blog https://christiandietrich.wordpress.com/2011/10/15/xtext-calling-the-generator-from-a-context-menu/ describes how to invoke Generator explicitly through a context menu.

My DSL file participates in a project having no Xtext nature and is "compiled" (actually, it is a configuration file) through an explicit invocation. When the file is opened in Xtext editor, errors are presented by markers (but are not propagated to Problems view).

Would you please advise how it is possible to propagate and fill Problems view after each explicit generation and during edit session?

Thank you,
Serge

[Updated on: Fri, 05 August 2016 18:40]

Report message to a moderator

Re: Propagation of errors to Problems view [message #1739943 is a reply to message #1739940] Fri, 05 August 2016 18:54 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
since this is not xtext related:

http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2FresAdv_markers.htm
http://www.vogella.com/tutorials/EclipsePlugin/article.html#resources-and-marker

if the validations are created by xtext:
this gives an idea how validation can be done programmatically: https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation

to diff how the errors are transformed to marker:

have a look at org.eclipse.xtext.ui.editor.validation.MarkerCreator.createMarker(Issue, IResource, String)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:First xtext project
Next Topic:Referencing an element increase its internal indentation
Goto Forum:
  


Current Time: Thu Apr 25 21:24:56 GMT 2024

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

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

Back to the top