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
	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) {


[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: 13667
Registered: July 2009
Senior Member
You have to change the grammar


Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @chrdietrich
Blog :
Previous Topic:Implementing dynamic keywords
Next Topic:EMF Model Update Strategy
Goto Forum:

Current Time: Fri Dec 04 03:41:07 GMT 2020

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

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

Back to the top