Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342009 - [Properties View] No possibility to set a default value of a property by an enumeration literal
Summary: [Properties View] No possibility to set a default value of a property by an e...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-06 08:26 EDT by saadia dhouib CLA
Modified: 2011-09-23 08:10 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description saadia dhouib CLA 2011-04-06 08:26:56 EDT
Steps to reproduce:
1. create an enumeration 
2. create two enumeration literals inside this enumeration: toto and titi
3. create a class
4. create a property inside this class and type it by the enumeration
5. go to the properties view and try to set the the default value of the property by toto
The enumeration literals toto and titi are not proposed in the list of possible default values
Comment 1 Camille Letavernier CLA 2011-09-23 08:10:14 EDT
This has been fixed with the new property view framework (0.8.0 or 0.8.1, I'm not sure).

However, because of Bug 294758, this might not be really intuitive (The property's type is never taken into account) :

Steps:

5. create a new "InstanceValue" for the default value
6. type it with your property type (The Enumeration)
7. choose your literal for the "Instance" attribute

(Typing the InstanceValue is not necessary, but it filters the values available in the "Instance" property)