Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Context Validation(Dynamic Contect Validation - not static validation)
Context Validation [message #1843650] Thu, 12 August 2021 05:37 Go to next message
Jeff Lowcock is currently offline Jeff LowcockFriend
Messages: 17
Registered: July 2009
Junior Member
Sorry if this is a duplicate as the previous was my first post and I forgot to make notifications and now I cannot find my original message.

I have two embedded editor instances running and have used the generated language validator as usual. Because this generated validator is a singleton this means the state between the two editors is shared. End result one editor using the most recent shared values is good the other is using the previous editors values result is bad.

So my question is how to provide instance specific values to the generated validator or how to add an instance specific validator to the model I guess.

I have tried IResourceValidator, EditorCallback, and a few other very dirty approaches nothing has worked.

Any pointers?
Re: Context Validation [message #1843651 is a reply to message #1843650] Thu, 12 August 2021 05:38 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14335
Registered: July 2009
Senior Member
https://www.eclipse.org/forums/index.php/t/1108657/

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
Previous Topic:Override SL_COMMENT
Next Topic:Validating against non EMF context
Goto Forum:
  


Current Time: Mon Aug 08 16:54:01 GMT 2022

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

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

Back to the top