Skip to main content



      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 14:38 Go to next message
Eclipse UserFriend
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 14:40] by Moderator

Re: Propagation of errors to Problems view [message #1739943 is a reply to message #1739940] Fri, 05 August 2016 14:54 Go to previous message
Eclipse UserFriend
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)
Previous Topic:First xtext project
Next Topic:Referencing an element increase its internal indentation
Goto Forum:
  


Current Time: Mon Mar 24 05:49:18 EDT 2025

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

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

Back to the top