Skip to main content



      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 04:28 Go to next message
Eclipse UserFriend
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 06:14 Go to previous messageGo to next message
Eclipse UserFriend
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

[Updated on: Fri, 31 March 2023 06:15] by Moderator

Re: The annotation CheckType.NORMAL does not work [message #1858386 is a reply to message #1858378] Fri, 31 March 2023 08:16 Go to previous messageGo to next message
Eclipse UserFriend
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 08:21 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: The annotation CheckType.NORMAL does not work [message #1858389 is a reply to message #1858387] Fri, 31 March 2023 09:08 Go to previous message
Eclipse UserFriend
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: Mon May 19 05:33:05 EDT 2025

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

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

Back to the top