Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355452 - ModelElementList should be read only if the related property is read-only
Summary: ModelElementList should be read only if the related property is read-only
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-22 21:46 EDT by Marcelo Paternostro CLA
Modified: 2021-11-19 09:22 EST (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 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.