Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » The annotation CheckType.NORMAL does not work(The annotation CheckType.NORMAL does not work)
The annotation CheckType.NORMAL does not work [message #1858375] Fri, 31 March 2023 08:28 Go to next message
David Sun is currently offline David SunFriend
Messages: 28
Registered: July 2020
Junior Member
As the comments of CheckType.NORMAL say,Check is executed on save/build and request only.
But the method of my validator class which was annoted with "@Check(CheckType.NORMAL)" was not invoked after I clicked the Save button of my xtexteditor.

Can any one give me some suggestion´╝č
Thanks!
Re: The annotation CheckType.NORMAL does not work [message #1858378 is a reply to message #1858375] Fri, 31 March 2023 10:14 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14496
Registered: July 2009
Senior Member
do you have build automatically turned off?
does the project have xtext nature (should have been asked when you created the project), rightclick, configure, xtext project

what is the signature of the method
is it in the default validator class or a separate one.
if separate how do you register it


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Fri, 31 March 2023 10:15]

Report message to a moderator

Re: The annotation CheckType.NORMAL does not work [message #1858386 is a reply to message #1858378] Fri, 31 March 2023 12:16 Go to previous messageGo to next message
David Sun is currently offline David SunFriend
Messages: 28
Registered: July 2020
Junior Member
do you have build automatically turned off?//YES
does the project have xtext nature (should have been asked when you created the project), rightclick, configure, xtext project//YES

what is the signature of the method
is it in the default validator class or a separate one.
if separate how do you register it
/////////////////////////////////////////////
My validator extended from AbstractPLCDslValidator and the method which was annotated with "@Check(CheckType.NORMAL)" is in my validator class.
I have other methods annotated with "@Check(CheckType.FAST)", they were invoked automatically when I was editing in xtexteditor.
Re: The annotation CheckType.NORMAL does not work [message #1858387 is a reply to message #1858386] Fri, 31 March 2023 12:21 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14496
Registered: July 2009
Senior Member
If you have turned build automatically off
Then no build will be triggered
If no build is tiggered (automatically or via menu)
No normal validation


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: The annotation CheckType.NORMAL does not work [message #1858389 is a reply to message #1858387] Fri, 31 March 2023 13:08 Go to previous message
David Sun is currently offline David SunFriend
Messages: 28
Registered: July 2020
Junior Member
Yes,you're right!
I turn the automatic build on ,my methods annoted with "@Check(CheckType.NORMAL)" were invoked after I clicked save button.
Thanks for your help!
Previous Topic:Generating edit/editor project
Next Topic:Create a jar/war file in xtext with websupport
Goto Forum:
  


Current Time: Sat Jun 03 22:42:21 GMT 2023

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

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

Back to the top