Home » Modeling » Modeling (top-level project) » Properties not displayed after adding an ecore to genmodel
Properties not displayed after adding an ecore to genmodel [message #384418] |
Mon, 11 May 2009 12:13 |
|
Hi,
The properties relative to EObject which are all in the same .ecore are
not displayed in the properties view.
How did I arrived to that?
1. I'd already a project with multiple .ecore and one .genmodel which mix
up them alltogether. There is a diagram which display what I want
(generated with a beautiful gmfmap, gmftool, ...)
2. I created a new .ecore with some EClass
3. reloaded .genmodel with adding the new .ecore and regenerated the code
4. modify the gmfmap and gmftool to include a graphical part of the EObject
5. regenerated gmfgen and regenerated code from it
Now I have my new type of element displayed at the right place in my
diagram but when I'm selecting one of them, nothing appears in the
properties view it is only changing the title name.
Thanks for your help,
Aurélien Pupier
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
| |
Re: Properties not displayed after adding an ecore to genmodel [message #384422 is a reply to message #384418] |
Mon, 11 May 2009 16:11 |
|
arrived to make it work but I don't know exactly what was the solution.
I have added extension point by hand because they were not generated but I
don't know why. :
- for the edit : org.eclipse.emf.edit.itemProviderAdapterFactories
- for the model : org.eclipse.emf.ecore.generated_package
I made a lot of others thing but don't know what are the right one.
The corresponding class were generated
So if someone can tell me why it were not generated, thank him ^^
Aurelien Pupier wrote:
> Hi,
> The properties relative to EObject which are all in the same .ecore are
> not displayed in the properties view.
> How did I arrived to that?
> 1. I'd already a project with multiple .ecore and one .genmodel which mix
> up them alltogether. There is a diagram which display what I want
> (generated with a beautiful gmfmap, gmftool, ...)
> 2. I created a new .ecore with some EClass
> 3. reloaded .genmodel with adding the new .ecore and regenerated the code
> 4. modify the gmfmap and gmftool to include a graphical part of the EObject
> 5. regenerated gmfgen and regenerated code from it
> Now I have my new type of element displayed at the right place in my
> diagram but when I'm selecting one of them, nothing appears in the
> properties view it is only changing the title name.
> Thanks for your help,
> Aurélien Pupier
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
Re: Properties not displayed after adding an ecore to genmodel [message #384423 is a reply to message #384422] |
Mon, 11 May 2009 22:34 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Aurelien,
Unfortunately EMF's generator does not update a plugin.xml once it
exists. There's a bugzilla for that, but we've not had time. You'd
need to delete the plugin.xml and then regenerated it, or do what you
did and add stuff by hand.
Aurelien Pupier wrote:
> arrived to make it work but I don't know exactly what was the solution.
> I have added extension point by hand because they were not generated
> but I don't know why. :
> - for the edit : org.eclipse.emf.edit.itemProviderAdapterFactories
> - for the model : org.eclipse.emf.ecore.generated_package
>
> I made a lot of others thing but don't know what are the right one.
> The corresponding class were generated
>
> So if someone can tell me why it were not generated, thank him ^^
>
> Aurelien Pupier wrote:
>
>> Hi,
>
>> The properties relative to EObject which are all in the same .ecore
>> are not displayed in the properties view.
>
>> How did I arrived to that?
>
>> 1. I'd already a project with multiple .ecore and one .genmodel which
>> mix up them alltogether. There is a diagram which display what I want
>> (generated with a beautiful gmfmap, gmftool, ...)
>
>> 2. I created a new .ecore with some EClass
>
>> 3. reloaded .genmodel with adding the new .ecore and regenerated the
>> code
>
>> 4. modify the gmfmap and gmftool to include a graphical part of the
>> EObject
>
>> 5. regenerated gmfgen and regenerated code from it
>
>> Now I have my new type of element displayed at the right place in my
>> diagram but when I'm selecting one of them, nothing appears in the
>> properties view it is only changing the title name.
>
>> Thanks for your help,
>
>> Aurélien Pupier
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: Properties not displayed after adding an ecore to genmodel [message #444582 is a reply to message #384424] |
Fri, 31 July 2009 17:29 |
Hauke Fuhrmann Messages: 333 Registered: July 2009 |
Senior Member |
|
|
Dear Alex, dear Ed,
I have the same problem: I just updated some attributes in my ecore and
genmodel. Then I updated also my mapping model and the gmfgen model.
Then I regenerated everything (model code, edit code, editor code,
diagram code).
All code is compile error free, but in the diagram I don't see any
properties of selected elements.
If I open a model with the generated EMF editor, all properties are
visible there.
What could be wrong?
Cheers,
Hauke
Alex Shatalin schrieb:
> Hello Aurelien,
>
> Are you sure you've regenerated EMF edit/editor code (not only EMF model
> code) using updated genmodel? Can you see proper properties if you
> select this new element instance in EMF-generated tree editor?
>
> -----------------
> Alex Shatalin
>
>
|
|
| | |
Re: Properties not displayed after adding an ecore to genmodel [message #615727 is a reply to message #384418] |
Mon, 11 May 2009 16:09 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Aurelien,
It's best to ask on the GMF newsgroup, which I've added to the "to" list
of the reply, so no need to repost.
Aurelien Pupier wrote:
> Hi,
>
> The properties relative to EObject which are all in the same .ecore
> are not displayed in the properties view.
>
> How did I arrived to that?
>
> 1. I'd already a project with multiple .ecore and one .genmodel which
> mix up them alltogether. There is a diagram which display what I want
> (generated with a beautiful gmfmap, gmftool, ...)
>
> 2. I created a new .ecore with some EClass
>
> 3. reloaded .genmodel with adding the new .ecore and regenerated the code
>
> 4. modify the gmfmap and gmftool to include a graphical part of the
> EObject
>
> 5. regenerated gmfgen and regenerated code from it
>
> Now I have my new type of element displayed at the right place in my
> diagram but when I'm selecting one of them, nothing appears in the
> properties view it is only changing the title name.
>
> Thanks for your help,
>
> Aurélien Pupier
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Properties not displayed after adding an ecore to genmodel [message #615730 is a reply to message #384418] |
Mon, 11 May 2009 16:11 |
|
arrived to make it work but I don't know exactly what was the solution.
I have added extension point by hand because they were not generated but I
don't know why. :
- for the edit : org.eclipse.emf.edit.itemProviderAdapterFactories
- for the model : org.eclipse.emf.ecore.generated_package
I made a lot of others thing but don't know what are the right one.
The corresponding class were generated
So if someone can tell me why it were not generated, thank him ^^
Aurelien Pupier wrote:
> Hi,
> The properties relative to EObject which are all in the same .ecore are
> not displayed in the properties view.
> How did I arrived to that?
> 1. I'd already a project with multiple .ecore and one .genmodel which mix
> up them alltogether. There is a diagram which display what I want
> (generated with a beautiful gmfmap, gmftool, ...)
> 2. I created a new .ecore with some EClass
> 3. reloaded .genmodel with adding the new .ecore and regenerated the code
> 4. modify the gmfmap and gmftool to include a graphical part of the EObject
> 5. regenerated gmfgen and regenerated code from it
> Now I have my new type of element displayed at the right place in my
> diagram but when I'm selecting one of them, nothing appears in the
> properties view it is only changing the title name.
> Thanks for your help,
> Aurélien Pupier
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
Re: Properties not displayed after adding an ecore to genmodel [message #615731 is a reply to message #384422] |
Mon, 11 May 2009 22:34 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
Aurelien,
Unfortunately EMF's generator does not update a plugin.xml once it
exists. There's a bugzilla for that, but we've not had time. You'd
need to delete the plugin.xml and then regenerated it, or do what you
did and add stuff by hand.
Aurelien Pupier wrote:
> arrived to make it work but I don't know exactly what was the solution.
> I have added extension point by hand because they were not generated
> but I don't know why. :
> - for the edit : org.eclipse.emf.edit.itemProviderAdapterFactories
> - for the model : org.eclipse.emf.ecore.generated_package
>
> I made a lot of others thing but don't know what are the right one.
> The corresponding class were generated
>
> So if someone can tell me why it were not generated, thank him ^^
>
> Aurelien Pupier wrote:
>
>> Hi,
>
>> The properties relative to EObject which are all in the same .ecore
>> are not displayed in the properties view.
>
>> How did I arrived to that?
>
>> 1. I'd already a project with multiple .ecore and one .genmodel which
>> mix up them alltogether. There is a diagram which display what I want
>> (generated with a beautiful gmfmap, gmftool, ...)
>
>> 2. I created a new .ecore with some EClass
>
>> 3. reloaded .genmodel with adding the new .ecore and regenerated the
>> code
>
>> 4. modify the gmfmap and gmftool to include a graphical part of the
>> EObject
>
>> 5. regenerated gmfgen and regenerated code from it
>
>> Now I have my new type of element displayed at the right place in my
>> diagram but when I'm selecting one of them, nothing appears in the
>> properties view it is only changing the title name.
>
>> Thanks for your help,
>
>> Aurélien Pupier
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| |
Re: Properties not displayed after adding an ecore to genmodel [message #617544 is a reply to message #384424] |
Fri, 31 July 2009 17:29 |
Hauke Fuhrmann Messages: 333 Registered: July 2009 |
Senior Member |
|
|
Dear Alex, dear Ed,
I have the same problem: I just updated some attributes in my ecore and
genmodel. Then I updated also my mapping model and the gmfgen model.
Then I regenerated everything (model code, edit code, editor code,
diagram code).
All code is compile error free, but in the diagram I don't see any
properties of selected elements.
If I open a model with the generated EMF editor, all properties are
visible there.
What could be wrong?
Cheers,
Hauke
Alex Shatalin schrieb:
> Hello Aurelien,
>
> Are you sure you've regenerated EMF edit/editor code (not only EMF model
> code) using updated genmodel? Can you see proper properties if you
> select this new element instance in EMF-generated tree editor?
>
> -----------------
> Alex Shatalin
>
>
|
|
| | |
Goto Forum:
Current Time: Thu Sep 26 20:02:57 GMT 2024
Powered by FUDForum. Page generated in 0.09823 seconds
|