Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext validation package
xtext validation package [message #727122] Tue, 20 September 2011 13:13 Go to next message
sbl Missing name is currently offline sbl Missing nameFriend
Messages: 32
Registered: March 2011
Member
Hi,
Is there any way to learn how to use Xtext Validation package efficiently?
I have some examples and i can use sample functions. I could not find detail in Xtext user guide also?

thank you very much
Re: xtext validation package [message #727131 is a reply to message #727122] Tue, 20 September 2011 13:26 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

can you elaborate a bit on what you are missing in the docs?

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext validation package [message #727412 is a reply to message #727131] Wed, 21 September 2011 08:40 Go to previous messageGo to next message
sbl Missing name is currently offline sbl Missing nameFriend
Messages: 32
Registered: March 2011
Member
Hi,

with regard to my ecore, i make a DSL by using EBNF rules in Xtext tool. Now i want to make more constraints on it. I want to use the capabilities of validation package. I mean the Java Validator class's capabilities. How can i use this class efficiently? I could not find any docs or examples about that.
Thank you very much for your interest.
Re: xtext validation package [message #727413 is a reply to message #727412] Wed, 21 September 2011 08:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

did you see http://www.eclipse.org/Xtext/documentation/2_0_0/060-validation.php#custom_validation
there the basic principle is show,
the rest is just playing arround with the checktype e.g. @Check(CheckType.FAST)
and the parameters of the error warning etc methods

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext validation package [message #727440 is a reply to message #727413] Wed, 21 September 2011 10:10 Go to previous message
sbl Missing name is currently offline sbl Missing nameFriend
Messages: 32
Registered: March 2011
Member

Thank you very much
Previous Topic:xtext editor for GMF node features
Next Topic:[xtext2]Problem with JvmArgumentTypeReference when referring to declared JvmTypeParameter
Goto Forum:
  


Current Time: Fri Apr 26 15:50:08 GMT 2024

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

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

Back to the top