Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359631

Summary: DynamicContainmentCommands does not support multiplicity one relationships
Product: [Modeling] ECP Reporter: Michael <michael.kagel>
Component: NavigatorAssignee: Project Inbox <emfcp.navigator-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, franziska.haunolder, jhelming
Version: unspecified   
Target Milestone: 0.8.9   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
fixes #359631 eclipse: iplog+

Description Michael CLA 2011-10-01 02:32:09 EDT
Build Identifier: 0.8.9M3

The createCommand method in the class DynamicContainmentCommands filters objects which have a one multiplicity to contained objects. So the right-click menue of the container object in the navigator doesn't have a create entry for the containing object.
Is there a reason for this or is this a bug? 
In my case I need this functionality and have overwritten the class but I think it should be supported by the class itself.

Reproducible: Always

Steps to Reproduce:
1. Object A contains object B
2. Right-click on object A in the navigator
3. No create entry in the context menue for object B
Comment 1 Jonas Helming CLA 2011-10-28 06:00:33 EDT
can you provide a patch against 0.9.x? (Git master) Hypp to apply it :-)
Comment 2 Max Hohenegger CLA 2011-11-15 08:48:05 EST
Created attachment 207023 [details]
fixes #359631

It looks like this used to be the intended behavior. Since it's obsolete now, the patch attached simply removes the multiplicity-check for containments when creating the command.