Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » [GMF] Containment Bug
[GMF] Containment Bug [message #759722] Tue, 29 November 2011 18:39 Go to next message
Patricia Espada is currently offline Patricia EspadaFriend
Messages: 47
Registered: November 2011
Member
Hello

I have a GMF/EMF project that is working just fine, with exception of one layout aspect. I have a containment element that accept a kind of nodes, and when a pick one of that nodes and put inside that containment in the containment appears two nodes. But theres only one there.

Probably these doesn't make sense without an example.
I've uploaded three images, the first one is my project without the containment. In the second image a add the containment, and in the third image I put the node inside the containment (and it duplicate the node).

Does anyone know what is causing this?

Another problem I'm having, is in the gmftool I define the nodes description, and it doesn't appear in project new instance.
Re: [GMF] Containment Bug [message #759770 is a reply to message #759722] Tue, 29 November 2011 21:55 Go to previous messageGo to next message
Hoang  is currently offline Hoang Friend
Messages: 45
Registered: September 2011
Location: Milan
Member
How about the data model before and after you put the Goal into the compartment? Are there two nodes or only one?
Re: [GMF] Containment Bug [message #759772 is a reply to message #759770] Tue, 29 November 2011 22:59 Go to previous messageGo to next message
Patricia Espada is currently offline Patricia EspadaFriend
Messages: 47
Registered: November 2011
Member
Only one. And if I open the xml file generated, even with the compartment specified there is only one goal inside that same compartment. It seams to be a visual problem.
Re: [GMF] Containment Bug [message #759774 is a reply to message #759772] Tue, 29 November 2011 23:04 Go to previous messageGo to next message
Hoang  is currently offline Hoang Friend
Messages: 45
Registered: September 2011
Location: Milan
Member
Then you must wait for some experts to answer, I am new to GMF but I asked so that you could give more details to the question. Sorry about that.
Re: [GMF] Containment Bug [message #759776 is a reply to message #759774] Tue, 29 November 2011 23:18 Go to previous messageGo to next message
Patricia Espada is currently offline Patricia EspadaFriend
Messages: 47
Registered: November 2011
Member
Thank you anyway.

This problem is kind of weird, because like I said, the xml is correct, only the visual editor is multiplying the number of nodes in a containment.

[Updated on: Tue, 29 November 2011 23:22]

Report message to a moderator

Re: [GMF] Containment Bug [message #759830 is a reply to message #759776] Wed, 30 November 2011 09:04 Go to previous messageGo to next message
Thomas Buchmann is currently offline Thomas BuchmannFriend
Messages: 53
Registered: November 2010
Member
Hi Patricia,

i'm having the same problems. Imho this is a Bug in GMF. I created a sample project to demonstrate the problem.

The domain model is a simplified version of UML2 Package Diagrams as shown in the figure below

index.php/fa/6284/0/

The diagram canvas is mapped to "Model", nodes representing packages and classifiers are mapped to the respective domain model elements.

The bug can be reproduced as follows: Create a new package diagram. Insert a package and a class as top level nodes. Save the diagram. Then drag and drop the class into the package. The resulting domain model is correct. Unfortunately the notational model contains two nodes referencing the same domain model element.

Is there something wrong with my gmfmap file? Or is this really a bug in GMF itself?

EDIT: Is it related to this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=237059 ?


[Updated on: Wed, 30 November 2011 10:05]

Report message to a moderator

Re: [GMF] Containment Bug [message #759917 is a reply to message #759830] Wed, 30 November 2011 15:00 Go to previous messageGo to next message
Patricia Espada is currently offline Patricia EspadaFriend
Messages: 47
Registered: November 2011
Member
Thank you bkunlimited. Let's see if someone help us in this metter.
Re: [GMF] Containment Bug [message #760662 is a reply to message #759917] Sat, 03 December 2011 23:37 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Hi,

I've reproduced this with the simplePackage example above. All intermediate models seem to be fine so this appears to be a GMF bug as previously suggested.

Cheers,
Dimitris
Re: [GMF] Containment Bug [message #760665 is a reply to message #760662] Sun, 04 December 2011 00:27 Go to previous messageGo to next message
Patricia Espada is currently offline Patricia EspadaFriend
Messages: 47
Registered: November 2011
Member
Thanks Dimitris
Re: [GMF] Containment Bug [message #762089 is a reply to message #760665] Wed, 07 December 2011 14:28 Go to previous messageGo to next message
Thomas Buchmann is currently offline Thomas BuchmannFriend
Messages: 53
Registered: November 2010
Member
should i open a bug in bugzilla for this issue?
Re: [GMF] Containment Bug [message #762091 is a reply to message #762089] Wed, 07 December 2011 14:30 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

On 07/12/2011 15:28, bkunlimited wrote:
> should i open a bug in bugzilla for this issue?

I did not follow your issue, but in general, in the GMF project, it is
better opening a bug in doubt rather than not opening one.
I don't think any GMF contributor will blame you for opening a bug that
is not one. Just be precise in your report.

Regards,
--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: [GMF] Containment Bug [message #762303 is a reply to message #762091] Wed, 07 December 2011 21:05 Go to previous messageGo to next message
Thomas Buchmann is currently offline Thomas BuchmannFriend
Messages: 53
Registered: November 2010
Member
Thanks Mickael,

i filed a new bug in bugzilla for this issue.
Re: [GMF] Containment Bug [message #762664 is a reply to message #762303] Thu, 08 December 2011 13:17 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

On 07/12/2011 22:05, bkunlimited wrote:
> Thanks Mickael,
>
> i filed a new bug in bugzilla for this issue.

Can you please share the link to it?

Regards,
--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: [GMF] Containment Bug [message #762686 is a reply to message #762664] Thu, 08 December 2011 14:07 Go to previous messageGo to next message
Thomas Buchmann is currently offline Thomas BuchmannFriend
Messages: 53
Registered: November 2010
Member
sure, here it is:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=365955
Re: [GMF] Containment Bug [message #825136 is a reply to message #762686] Tue, 20 March 2012 14:05 Go to previous message
Thomas Buchmann is currently offline Thomas BuchmannFriend
Messages: 53
Registered: November 2010
Member
Unfortunately, it seems that no one cares about this bug... 3 months after filing it, it is still assigned to the project inbox Sad
Previous Topic:Disable tool palette when opening an editor
Next Topic:Constraint ocl
Goto Forum:
  


Current Time: Fri Mar 29 15:07:38 GMT 2024

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

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

Back to the top