Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to heck if token is present
How to heck if token is present [message #904605] Tue, 28 August 2012 20:01 Go to next message
Roger Gilliar is currently offline Roger GilliarFriend
Messages: 40
Registered: March 2010
Member
Property:
	name=ValidID ':' type=JvmTypeReference ('NotNull')? (columnName=ValidID)?
;


Getting name and columnName is trivial. But how do I check if Property contains a NotNull token. I tried to access the eContents and eContainer.eContents. But I can only find name and columnName there:

val p = f as Property

for (c : p.eContainer.eContents) {
println(c)
}


Regards
Roger

[Updated on: Tue, 28 August 2012 20:01]

Report message to a moderator

Re: How to heck if token is present [message #904608 is a reply to message #904605] Tue, 28 August 2012 20:13 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
You have to change the grammar

(notNull?='NotNull')?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Implementing dynamic keywords
Next Topic:EMF Model Update Strategy
Goto Forum:
  


Current Time: Tue Apr 23 15:54:03 GMT 2024

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

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

Back to the top