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 to select 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 various nodes with the same specialized 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, as the type tree only supports single selection.
Implementation
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.