Adding Property to EMF Objects Dynamically [message #1385051] |
Wed, 04 June 2014 02:13 |
|
Hi,
I want to add a property to EMF Object Dynamically for eg, if we have a grammar below :
Model:
greetings+=Greeting*;
Greeting:
'Hello' name=ID '!';
After EMF classes is generated, I want to add another property lets say greetingID to
Greeting Class at runtime. Is there any way to do achieve this ?
Cheers
Kunal
|
|
|
|
|
Re: Adding Property to EMF Objects Dynamically [message #1385055 is a reply to message #1385054] |
Wed, 04 June 2014 05:02 |
|
Hi Christian,
Thanks for the reply. My Actual/Real Use Case is I want to assign a property Id to each of my EMF Classes and that property should not be part of grammar ie it should not be displayed in Xtext editor . In other sense, I want a variable in Xtext Grammar and it should not be accessible in Xtext Editor but it can be accessed via generated EMF Classes.
Cheers
Kunal
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03565 seconds