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

Bug 491789

Summary: [Properties] ExtendedMultiplicityObservableValue does not implement doSetValue(T)
Product: [Modeling] Papyrus Reporter: Christian Damus <give.a.damus>
Component: ViewsAssignee: Christian Damus <give.a.damus>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0.0   
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X   
See Also: https://git.eclipse.org/r/71383
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=1d11408fde404b87115a0a51bf9cc71272c9608f
Whiteboard:

Description Christian Damus CLA 2016-04-15 09:25:19 EDT
The ExtendedMultiplicityObservableValue class used in the property sheet for association ends and other UML properties does not implement the doSetValue(T) method.  Therefore, it inherits the AbstractObservableValue method that just throws UnsupportedOperationException.

This exception you will find in the log any time a UML property is selected in the Properties view.  For example

1.  Create a Composite Structure Diagram in a class.
2.  Use the Property tool from the palette to create a part in the class.
3.  Activate the Properties view.
4.  See the exception logged.

The exception is logged again every time member end or other property is selected.  The ExtendedMultiplicityObservableValue represents mutable attributes of various UML elements; it should be settable.
Comment 1 Eclipse Genie CLA 2016-04-25 19:21:51 EDT
New Gerrit change created: https://git.eclipse.org/r/71383
Comment 3 Christian Damus CLA 2016-04-25 22:13:07 EDT
(In reply to Eclipse Genie from comment #2)
> Gerrit change https://git.eclipse.org/r/71383 was merged to [master].