Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » is it support to implement one cross-reference link validation without project build action( cross-reference validation without one build )
is it support to implement one cross-reference link validation without project build action [message #1803400] Thu, 28 February 2019 07:00 Go to next message
Devin Xin is currently offline Devin XinFriend
Messages: 15
Registered: March 2017
Junior Member

Hi Experts,

I have one cross-reference element from another DSL file, now I would like to implement the feature like below:
once I change the referenced element in the DSL file, yes, it will give one error in my referenceing DSL file on the fly, this is cool.
But after I save the file, the promoted error will be disappeared. I know this is because I don't select "automatically build" in my workspace. after I rebuild the project, the featue works well.
But In my project, we have particular scenarios, so must de-select the auto-buld operation. and in my purpose, I also would like to the validation can work as expected after doing "Save" without any buid action performed.
Should Xtext support this? how do I should do?

Thanks for u time and kinkdly help in advance.
Best Regards,
Devin
Re: is it support to implement one cross-reference link validation without project build action [message #1803405 is a reply to message #1803400] Thu, 28 February 2019 07:52 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 705
Registered: July 2009
Location: Dortmund, Germany
Senior Member

No, we rely on the Eclipse builder infrastructure to work properly. Trying to work around this might cause serious headaches. But if you want to have headaches, start investigating the XtextBuilder and get some Aspirin.

I'd rather question why you need to disable auto-build in your scenario. I know very rare cases where this might make sense, but most times where I saw that was just inproper project structuring where projects got far too large and which got solved by modularization.
Re: is it support to implement one cross-reference link validation without project build action [message #1803406 is a reply to message #1803405] Thu, 28 February 2019 08:20 Go to previous message
Devin Xin is currently offline Devin XinFriend
Messages: 15
Registered: March 2017
Junior Member

Hi Karsten,
In our workspace, there are other project existed beside ours, so the auto-build is disabled, we let user do the build after his modification(like modify on C++ code, then build by manually).
But on my side, if we enable the build, then will cause other project build also, this is what we don't want to happen.

Anyway, Thanks for your reply.

Best Regards,
Devin
Previous Topic:XText 2.16.0 Hello World example.Maven build failed
Next Topic:Ecore to UML
Goto Forum:
  


Current Time: Thu Oct 17 22:45:19 GMT 2019

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

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

Back to the top