public int getNrSelectedFeatures ( ) { int count = 0 ; for ( VectorLayer layer : getVectorLayers ( ) ) { count += layer . getSelectedFeatures ( ) . size ( ) ; } return count ; }
Return the total number of selected features in all vector layers .