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

Bug 355452

Summary: ModelElementList should be read only if the related property is read-only
Product: z_Archived Reporter: Marcelo Paternostro <marcelo.paternostro>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: konstantin
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Marcelo Paternostro CLA 2011-08-22 21:46:28 EDT
Way to reproduce:

- Define a property as a ModelElementList of another modeled element
- Mark this property as read-only
- Via code, add an element to the list (list.addNewElement())

Note1: The UI is rendering a read-only list property correctly: for example, a table would not be followed by an add and delete button.

Note2: A simple, non-list property marked as read-only is read-only both to the UI and programmatically. I'd assume that there should be a single behavior here for both types of properties.
Comment 1 Konstantin Komissarchik CLA 2011-08-23 14:24:46 EDT
Fixed in 0.3.1 and 0.4 streams. Unit test coverage in TestModelingMisc0008. Please verify.
Comment 2 Konstantin Komissarchik CLA 2011-08-24 11:33:17 EDT
Thanks. Closing.