Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

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 #384420 is a reply to message #384418] Mon, 11 May 2009 16:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 #384422 is a reply to message #384418] Mon, 11 May 2009 16:11 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 #384424 is a reply to message #384420] Tue, 12 May 2009 15:21 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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 #444582 is a reply to message #384424] Fri, 31 July 2009 17:29 Go to previous messageGo to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
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 #467957 is a reply to message #444582] Mon, 03 August 2009 12:58 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Hauke,

Are you sure you selecting exactly the same element on a diagram and in EMF
model tree? Is it a link or a node?

-----------------
Alex Shatalin
Re: Properties not displayed after adding an ecore to genmodel [message #521088 is a reply to message #444582] Tue, 16 March 2010 12:53 Go to previous message
Eclipse UserFriend
Originally posted by: mail.hamburg.googlemail.com

Hello Hauke,
had that issue since GMF 2.2. A workaround you can try (which helped me
out at least) is here:
http://sdqweb.ipd.kit.edu/wiki/Property_Sheet_remains_empty_ with_GMF_2.2
(I needed to apply only the first part of the workaround).

Hope that helps, good luck!

> 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
Re: Properties not displayed after adding an ecore to genmodel [message #615727 is a reply to message #384418] Mon, 11 May 2009 16:09 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33107
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 #615733 is a reply to message #384420] Tue, 12 May 2009 15:21 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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 #617544 is a reply to message #384424] Fri, 31 July 2009 17:29 Go to previous message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
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 #617547 is a reply to message #444582] Mon, 03 August 2009 12:58 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Hauke,

Are you sure you selecting exactly the same element on a diagram and in EMF
model tree? Is it a link or a node?

-----------------
Alex Shatalin
Re: Properties not displayed after adding an ecore to genmodel [message #619488 is a reply to message #444582] Tue, 16 March 2010 12:53 Go to previous message
Eclipse UserFriend
Originally posted by: mail.hamburg.googlemail.com

Hello Hauke,
had that issue since GMF 2.2. A workaround you can try (which helped me
out at least) is here:
http://sdqweb.ipd.kit.edu/wiki/Property_Sheet_remains_empty_ with_GMF_2.2
(I needed to apply only the first part of the workaround).

Hope that helps, good luck!

> 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
Previous Topic:[Graphiti Project] - Any news about??
Next Topic:[Graphiti Project] - Any news about??
Goto Forum:
  


Current Time: Tue Mar 19 08:05:36 GMT 2024

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

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

Back to the top