Annotation View: Combo Box to to select previously entered values works only if "show only selected model element type" filter is active
Steps to reproduce:
- Create a new project
- Create a new platform architecture
- Add two generic busses (Bus1 and Bus1)
- Go to the annotations view
- Set the Bandwidth [MBit /s] annotation of Bus1 to 100
- Click into the annotation of Bus2 and observe that the ComboBox is empty
- Now Enable the annotation views “show only selected model element type” filter, and select either of the busses
- Observe that the ComboBox of Bus2 contains the value 100
Expected behavior
- ComboBox should be populated even without the “show only selected model element type”
Analysis:
- The filter seems to trigger an
update()
of theGenericAnnotationView
, in which the ComboBox is correctly populated. - Note that the bug will eliminate a previously entered value in case
the user clicks into the respective cell. In the example, clicking
again into Bus1 makes the previously entered value disappear
(because the ComboBox is empty and therefore
null
is set as new value when the ComoBox loses the focus again).
(from redmine: issue id 3247, created on 2018-01-19, closed on 2018-04-04)