code: public boolean execute(Canvas target, Menu menu, MenuItem item) {
  		int count = mapWidget.getMapModel().getNrSelectedFeatures();
  		if (count == 1) {
  			for (VectorLayer layer : mapWidget.getMapModel().getVectorLayers()) {
  				if (layer.getSelectedFeatures().size() == 1) {
  					// It's already selected, so we assume the feature is fully loaded:
  					feature = layer.getFeatureStore().getPartialFeature(layer.getSelectedFeatures().iterator().next());
  					return true;
  				}
  			}
  			return true;
  		}
  		return false;
  	}
docs: Implementation of the <code>MenuItemIfFunction</code> interface. This will determine if the menu action should be
  enabled or not. In essence, this action will be enabled if a vector-layer is selected that allows the updating of
  existing features.