Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » [GMF] Containment Bug
[GMF] Containment Bug [message #759722] Tue, 29 November 2011 13:39 Go to next message
Eclipse UserFriend
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 16:55 Go to previous messageGo to next message
Eclipse UserFriend
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 17:59 Go to previous messageGo to next message
Eclipse UserFriend
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 18:04 Go to previous messageGo to next message
Eclipse UserFriend
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 18:18 Go to previous messageGo to next message
Eclipse UserFriend
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 18:22] by Moderator

Re: [GMF] Containment Bug [message #759830 is a reply to message #759776] Wed, 30 November 2011 04:04 Go to previous messageGo to next message
Eclipse UserFriend
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 05:05] by Moderator

Re: [GMF] Containment Bug [message #759917 is a reply to message #759830] Wed, 30 November 2011 10:00 Go to previous messageGo to next message
Eclipse UserFriend
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 18:37 Go to previous messageGo to next message
Eclipse UserFriend
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] Sat, 03 December 2011 19:27 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Dimitris
Re: [GMF] Containment Bug [message #762089 is a reply to message #760665] Wed, 07 December 2011 09:28 Go to previous messageGo to next message
Eclipse UserFriend
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 09:30 Go to previous messageGo to next message
Eclipse UserFriend
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 16:05 Go to previous messageGo to next message
Eclipse UserFriend
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 08:17 Go to previous messageGo to next message
Eclipse UserFriend
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 09:07 Go to previous messageGo to next message
Eclipse UserFriend
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 10:05 Go to previous message
Eclipse UserFriend
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 Oct 24 15:47:07 EDT 2025

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

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

Back to the top