Enhancement
Major
Detail
Major
Detail
Enhancement
(User-visible)
Most components in Top-Logic have a tl:SelectionModel to select a set of objects. The tl:SingleSelectionModel is a variant of the tl:SelectionModel for selecting exactly one single object. If at least two objects are selected, an error message appears in the tl:InfoService.
Example
In the type tree next to the Model Editor there are several nodes with the same subject object
- DemoTypes > Child of Demo A > Demo C
- DemoTypes > Child of Demo B > Demo C
The user receives an error message if he selects Demo C in the Model Editor, because the type tree supports only single selection.
Conversion
Use the first element of the new selection for the tl:SingleSelectionModel.
Test
Display the DemoTypes diagram in the Model Editor. Select Demo C in the diagram. No errors should be displayed by the tl:InfoService.