*/
private void addPreSelectedFeatures() {
// Use the currEventTriggeringLayer to store the layer that
// pseudo-triggered (no actual
// listener, just) this
MergeContext mergeContextSingleton = MergeContext.getInstance();
List<SimpleFeature> selectedFeatures = mergeContextSingleton
.getPreselectedFeatures();
this.currEventTriggeringLayer = mergeContextSingleton
.getPreSelectedLayer();
if (selectedFeatures != null) {
this.addSourceFeatures(selectedFeatures);
// Clear preselected features to prevent repeated additions
mergeContextSingleton.clearPreselectedFeatures();
this.display();
}
}