/** Changes the count of features selected of the selected layer */
  @Override
  protected void changedFilterSelectionActions(final ILayer layer, final Filter newFilter) {

    if (layer.equals(this.currentFirstLayer)) {

      this.featuresInFirstLayer =
          presentSelectedFeaturesSum(
              this.currentFirstLayer, newFilter, this.cLabelFeaturesInFirstLayer);
    }
    if (layer.equals(this.currentSecondLayer)) {

      this.featuresInSecondLayer =
          presentSelectedFeaturesSum(
              this.currentSecondLayer, newFilter, this.cLabelFeaturesInSecondLayer);
    }
  }
  /** if the layer deleted is the current source layer, changes the units option to map units */
  @Override
  protected final void removedLayerActions(ILayer layer) {

    super.removedLayerActions(layer);

    ILayer sourceLayer = getSourceLayer();

    if (sourceLayer.equals(layer)) {

      this.currentUnits = null;
      setSelectionUnitOption(this.radioMapUnits);
    }

    populate();
  }