[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.tmf] Re: [xtext] adding EOperations to the inferred ECore model

Hi Moritz,

thanks for the hint.

Can you please give me a short example of how I can add an EOperation to
an inferred model element using the post processing hook?

Thanks,
Henrik

Moritz Eysholdt wrote:
> Hi Henrik,
> 
> yes, there is a post processing hook which allows to customize the
> inferred Ecore  model.
> 
> see:
> http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.xtext.doc/help/metamodelInference.html
> 
> 
> regard,
>   Moritz
> 
>> Hi,
>>
>> as discussed e.g. in
>> http://www.eclipse.org/newsportal/article.php?id=434&group=eclipse.modeling.tmf#434
>>
>>
>> there may be circumstances where it is desirable to extend the inferred
>> ECore model.
>>
>> One of the things one might wish to add are EOperations in EClasses.
>>
>> Is there a way to do this without being overwritten by re-generation?
>>
>> Thanks,
>> Henrik
> 
>