private void deselectLayer ( Layer < ? > layer ) { if ( layer != null ) { layer . setSelected ( false ) ; handlerManager . fireEvent ( new LayerDeselectedEvent ( layer ) ) ; } }
Deselect the currently selected layer includes sending the deselect events .