001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.data.osm;
003
004/**
005 * This is a listener that listens to selection change events in the data set.
006 *
007 * @author Taylor Smock
008 * @since 15609
009 */
010@FunctionalInterface
011public interface DataSourceListener {
012    /**
013     * Called whenever the data source list is changed.
014     *
015     * You get notified about the new data source list, the sources that were added
016     * and removed and the dataset that triggered the event.
017     *
018     * @param event The data source change event.
019     * @see DataSourceChangeEvent
020     */
021    void dataSourceChange(DataSourceChangeEvent event);
022}