Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EEF] Using JMerge in the EEF Editor class
[EEF] Using JMerge in the EEF Editor class [message #674352] Thu, 26 May 2011 15:28 Go to next message
Nathalie  is currently offline Nathalie
Messages: 22
Registered: July 2009
Junior Member
Hello,

I have an editor generated for my EMF model and I am using EEF to make it an EEF editor.

I specify in the "-editor.eefgen" model that I want JMerge to be used during generation, and as I added some custom code in my editor class I added some @generated NOT in the code.

The problem is it doesn't change nothing as every time I regenerate the editor it is overwritten completely and all my custom code is gone. I really don't know what I am missing here.

One of my customization is to contribute a custom Tree Master Page as the editor main page. I didn't find any way to do it in the .eefgen model itself which will have been great.

Any help is welcome. Thanks.

Re: [EEF] Using JMerge in the EEF Editor class [message #675095 is a reply to message #674352] Mon, 30 May 2011 09:43 Go to previous message
urs zeidler is currently offline urs zeidler
Messages: 91
Registered: July 2009
Member
Am 26.05.2011 17:28, schrieb Nathalie:
> Hello,
> I have an editor generated for my EMF model and I am using EEF to make
> it an EEF editor.
> I specify in the "-editor.eefgen" model that I want JMerge to be used
> during generation, and as I added some custom code in my editor class I
> added some @generated NOT in the code.
>
> The problem is it doesn't change nothing as every time I regenerate the
> editor it is overwritten completely and all my custom code is gone. I
> really don't know what I am missing here.
>
> One of my customization is to contribute a custom Tree Master Page as
> the editor main page. I didn't find any way to do it in the .eefgen
> model itself which will have been great.
>
> Any help is welcome. Thanks.
>
>

I also observe this behavior, i think jmerge is not called, even the
flag is set.
I moved the customized files in the src folder, to prevent the override.

greetings, Urs.
Previous Topic:[EMF Compare] opening editor programmatically results in unexpected/wrong view
Next Topic:[EMF Compare] Exception while merge(): "The feature XY does not exist in Project"
Goto Forum:
  


Current Time: Sat Sep 20 06:05:08 GMT 2014

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

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