Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext validation (warning method) information needed
xtext validation (warning method) information needed [message #1602536] Thu, 05 February 2015 16:30 Go to next message
Alex Gor is currently offline Alex GorFriend
Messages: 159
Registered: November 2014
Location: Russia
Senior Member
Hello

I try to find out detail definition of warning method from AbstractXXXValidator
this method contains undocumented parameters index and EStructuralFeature. This data shall be passed to warning method for example

how can I calculated index value and create EStructuralFeature object?

Thanks
Alexander
Re: xtext validation (warning method) information needed [message #1602644 is a reply to message #1602536] Thu, 05 February 2015 18:05 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14677
Registered: July 2009
Senior Member
Hi the EStructural Features are the attributes and references in your class. EMF generates constants for them e.g. MyDslPackage.Literals.GREETING_NAME.
The index marks the position if the feature in n-valued
(if not pass -1)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Thu, 05 February 2015 19:30]

Report message to a moderator

Previous Topic:Problem with customized scoping
Next Topic:Linking/Scoping/Shadowing issues in augmented SmallJava
Goto Forum:
  


Current Time: Wed May 08 17:47:24 GMT 2024

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

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

Back to the top