Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCore] @generated NOT being overridden
[XCore] @generated NOT being overridden [message #1712478] Sun, 25 October 2015 19:26 Go to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
Given my problems with creating operations, I tried hand-coding the implementation and marking the operated @generated NOT just as the instructions in the generated code indicate. When I made a change to the model, the hand-coded operation is re-generated and all code was lost. How do we create custom operations?
Re: [XCore] @generated NOT being overridden [message #1712642 is a reply to message #1712478] Tue, 27 October 2015 06:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33147
Registered: July 2009
Senior Member
Bryan, if you generate into the src-gen folder (the configured output
folder for the Xcore compiler), that folder is cleaned fully. Using
@GenModel(modelDirectory="/<project-name>/src") you can redirect to
somewhere you can modify the source without it being cleaned.

On 25/10/2015 8:26 PM, Bryan Hunt wrote:
> Given my problems with creating operations, I tried hand-coding the
> implementation and marking the operated @generated NOT just as the
> instructions in the generated code indicate. When I made a change to
> the model, the hand-coded operation is re-generated and all code was
> lost. How do we create custom operations?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[XCore] bitwise operators in an operation not working
Next Topic:[XCore] how to specify constants?
Goto Forum:
  


Current Time: Wed May 15 01:56:39 GMT 2024

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

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

Back to the top