|
|
Re: Adding new fields in code generator [message #965639 is a reply to message #964814] |
Wed, 31 October 2012 11:52 |
Dana Klein Messages: 63 Registered: October 2012 |
Member |
|
|
great. Thank you very much!
can you please give me an example to do so.
attached is my current xtend file
which generate the following code in "ObjectValue" object:
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getFullName()
{
return null;
}
I want to add a new attribute to the class.
[Updated on: Wed, 31 October 2012 11:52] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: Adding new fields in code generator [message #971140 is a reply to message #971015] |
Sun, 04 November 2012 16:25 |
|
I am not quite sure if you are on the right track. Why do you want to
do such things? Why do you need to customize your metamodel that
much? Sounds like it is time to switch to a manually maintained one.
PS guess it gets a list automatically if you set the upper bounds
property.
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
Powered by
FUDForum. Page generated in 0.02993 seconds