Every com.nomagic.magicdraw.uml.symbols.PresentationElement can access selected elements or change their own selection status.
Project project = ; DiagramPresentationElement diagram = project.getActiveDiagram(); List<PresentationElement> selected = diagram.getSelected(); |
presentationElement.setSelected(true); |
Presentation element selection events page describes selection change events