Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » is there a batch validation hook in Xtext?
is there a batch validation hook in Xtext? [message #580845] Tue, 21 September 2010 17:27 Go to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
Registered: July 2009
Senior Member
Hi,

is there a batch validation hook in Xtext?

I need to do a more time consuming validation for an Xtext model (split
over several files in general). This includes sort of a model
transformation step and also gathering and evaluating lots of information.

I would like to invoke this only on explicit user request but generate
also markers in the model file(s).

Thanks,
Henrik
Re: is there a batch validation hook in Xtext? [message #580909 is a reply to message #580845] Tue, 21 September 2010 17:31 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Henrik,

Xtext provides an expensive validation type. Please refer to the docs
for details.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 21.09.10 19:27, schrieb Henrik Rentz-Reichert:
> Hi,
>
> is there a batch validation hook in Xtext?
>
> I need to do a more time consuming validation for an Xtext model (split
> over several files in general). This includes sort of a model
> transformation step and also gathering and evaluating lots of information.
>
> I would like to invoke this only on explicit user request but generate
> also markers in the model file(s).
>
> Thanks,
> Henrik
Re: is there a batch validation hook in Xtext? [message #626163 is a reply to message #580909] Wed, 22 September 2010 12:15 Go to previous message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
Registered: July 2009
Senior Member
Sebastian,

sorry, I couldn't find it in the documentation.

But using the debugger I found that e.g. in the JavaValidator I can ask
for the current org.eclipse.xtext.validation.CheckMode.

Obviously the org.eclipse.xtext.ui.editor.validation.ValidationJob is
created with CheckMode.ALL only if invoked from the Xtext editor 's
context menu. This is what I need.

Thanks,
Henrik


Am 21.09.2010 19:31, schrieb Sebastian Zarnekow:
> Hi Henrik,
>
> Xtext provides an expensive validation type. Please refer to the docs
> for details.
>
> Regards,
> Sebastian
Previous Topic:Scope - multiple return types - resolve Imports
Next Topic:need hint regarding 'parsability'
Goto Forum:
  


Current Time: Fri Mar 29 00:55:48 GMT 2024

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

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

Back to the top