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

Bug 333733

Summary: Selection box of "Defining Feature" should be restricted to valid features
Product: [Modeling] Papyrus Reporter: Andreas Graf <graf>
Component: ViewsAssignee: Project Inbox <mdt-papyrus-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: charles, graf, johan, klaas.gadeyne, kristof.berx, papyrus-bugs, peter.cigehn
Version: 0.10.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Andreas Graf CLA 2011-01-07 06:18:31 EST
Build Identifier: 0.7.2

The dialogbox for slots (in defining features) is rather unusuable for large systems, because features are not filters nor are their defining classifiers shown in the list.

Reproducible: Always

Steps to Reproduce:
1. Create several classes with properties
2. Create an Instance specification for one of these classes.
3. Add a slot to the instance specification
4. Open the properties for that slot.
5. Press "+" for "Defining Feature".
6. The list shows all the features in the system, not only those that are from the InstanceSpecification's type or its supertype.
Comment 1 Camille Letavernier CLA 2013-03-25 08:37:30 EDT
Build id: I20130204-1400

In order to overcome this problem you can directly drag an drop a classifier (from the model explorer) on an instance specification (on the diagram). As a result a popup will show up allowing you to select the different properties for which you need to create slots.

Regards
Comment 2 Camille Letavernier CLA 2013-03-25 08:40:50 EDT
*** Bug 333734 has been marked as a duplicate of this bug. ***
Comment 3 Klaas Gadeyne CLA 2015-11-27 11:15:42 EST
(In reply to Camille Letavernier from comment #1)
> Build id: I20130204-1400
> 
> In order to overcome this problem you can directly drag an drop a classifier
> (from the model explorer) on an instance specification (on the diagram). As
> a result a popup will show up allowing you to select the different
> properties for which you need to create slots.

Now this is one *nifty undocumented* feature that could have saved me a couple of hours... [*]

Nevertheless, the original bug still stands for version 1.1.3

IMO, 
* this bug should also block Bug 358077 ([Property View - UML] The UML property view should be improved for usability concerns)
* Bug 367652 is definitely (also/yet another?)  a duplicate of this bug

[*] (being greedy now) It would be even better if this would work recursively, ie. if a new instance specification would be created for slots whose defining feature itself is a classifier :-)