Bug 216102 - [EcoreTools] Cardinality edition could be more intuitive
Summary: [EcoreTools] Cardinality edition could be more intuitive
Status: RESOLVED FIXED
Alias: None
Product: Ecoretools
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 enhancement
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: Ergonomy
Keywords: plan
: 270193 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-22 04:53 EST by Simon Bernard CLA
Modified: 2009-06-02 11:59 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Bernard CLA 2008-01-22 04:53:08 EST
when you edit cardinility in the diagram, you must type min..max .
It could have some exception for typing and display
 1 for 1..1
 2 for 2..2
 3 for 3..3
 ...
and    
 * for 0..*
Comment 1 David Sciamma CLA 2008-01-22 05:55:20 EST
Simon, can you propose a patch ?
But we need to only accept valid cardinalities for Ecore :
0..1
0..*
1..*
and perhaps some others
Comment 2 Jacques LESCOT CLA 2009-03-28 07:06:12 EDT
*** Bug 270193 has been marked as a duplicate of this bug. ***
Comment 3 Jacques LESCOT CLA 2009-04-20 09:39:58 EDT
Fixed.

Now, we provide some "shortcuts" when editing cardinalities through the Editable cell editor in the diagram :
- 0..* instead of 0..-1
- 1..? instead of 1..-2
- 1 instead of 1..1
- 3 instead of 3..3
- ...

Note that I did not use * instead of 0..*, so that it reflects icon used for an EAttribute with the same cardinality.