code: private void checkMergeBtnEnabledState() {
  		FeaturesSupported layer = (FeaturesSupported) mapPresenter.getLayersModel().getLayer(1);
  		mergeBtn.setEnabled(layer.getSelectedFeatures() != null && layer.getSelectedFeatures().size() > 1);
  	}
docs: ------------------------------------------------------------------------