Skip to main content



      Home
Home » Modeling » EMF » [XCore] @generated NOT being overridden
[XCore] @generated NOT being overridden [message #1712478] Sun, 25 October 2015 15:26 Go to next message
Eclipse UserFriend
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 02:20 Go to previous message
Eclipse UserFriend
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?
Previous Topic:[XCore] bitwise operators in an operation not working
Next Topic:[XCore] how to specify constants?
Goto Forum:
  


Current Time: Fri Nov 07 15:30:54 EST 2025

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

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

Back to the top