CMF-42: Added an ability to select a diagram element