Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Upper Bound of containment reference ignored in diagram editor
Upper Bound of containment reference ignored in diagram editor [message #136506] Fri, 15 June 2007 15:04 Go to next message
Eclipse UserFriend
Originally posted by: richard.skriwanek.thalesgroup.com

Hi,

I have a node that is designed to have child nodes. The containment
reference within the parent class to the child class is configured with an
upper bound of 3. The child node may also exit on the canvas.

In the diagram editor, when using the tool for the child node I can add
max. 3 nodes to the parent.

When I now move existing child nodes from one parent or the canvas to a
parent node I can add more than the specified 3 childs.

Is this normal behaviour or do I miss some setting?

-- Richard
Re: Upper Bound of containment reference ignored in diagram editor [message #136565 is a reply to message #136506] Fri, 15 June 2007 16:02 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

GMF generates custom creation command that performs this check but uses
generic move command that has not this check. There is a request to
generate custom move commands that will respect cardinality. As for now
I could suggest to create a custom move command by hand that will check
cardinality.

Richard wrote:
> Hi,
>
> I have a node that is designed to have child nodes. The containment
> reference within the parent class to the child class is configured with
> an upper bound of 3. The child node may also exit on the canvas.
>
> In the diagram editor, when using the tool for the child node I can add
> max. 3 nodes to the parent.
>
> When I now move existing child nodes from one parent or the canvas to a
> parent node I can add more than the specified 3 childs.
>
> Is this normal behaviour or do I miss some setting?
>
> -- Richard
>
>
Previous Topic:Colored and underlined label didn't work
Next Topic:Mind Mapping Tutorial TopicSubtopics
Goto Forum:
  


Current Time: Sat Oct 19 15:42:33 GMT 2024

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

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

Back to the top