Upper Bound of containment reference ignored in diagram editor [message #136506] |
Fri, 15 June 2007 15:04 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02504 seconds