Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359631 - DynamicContainmentCommands does not support multiplicity one relationships
Summary: DynamicContainmentCommands does not support multiplicity one relationships
Status: CLOSED FIXED
Alias: None
Product: ECP
Classification: Modeling
Component: Navigator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.8.9   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-01 02:32 EDT by Michael CLA
Modified: 2012-05-07 10:41 EDT (History)
3 users (show)

See Also:


Attachments
fixes #359631 (945 bytes, patch)
2011-11-15 08:48 EST, Max Hohenegger CLA
eclipse: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.