How to retrieve list of selected shapes?


Hi guys,
Consider i select some shapes of diagram by dragging them .
How can i retrieve list of these selected shapes when i run my plugin (only selected shapes not all shapes of diagram )?


They can be get from DiagramManager

DiagramManager lDiagramManager = ApplicationManager.instance().getDiagramManager();
IDiagramElement[] lHERE = lDiagramManager.getSelectedDiagramElements();


Thank you so much :ok_hand: