Changeset 12097 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2017-05-10T22:37:07+02:00 (3 years ago)
Author:
michael2402
Message:

Improve documentation of data selection listener.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataSelectionListener.java

    r12069 r12097  
    2121    /**
    2222     * Called whenever the selection is changed.
    23      * @param e The selection change event.
    24      */
    25     void selectionChanged(SelectionChangeEvent e);
     23     *
     24     * You get notified about the new selection, the elements that were added and removed and the layer that triggered the event.
     25     * @param event The selection change event.
     26     * @see SelectionChangeEvent
     27     */
     28    void selectionChanged(SelectionChangeEvent event);
    2629
    2730    /**
     
    5356         * <p>
    5457         * This collection cannot be modified and will not change.
    55          * @return The primitives
     58         * @return The primitives that were removed
    5659         */
    5760        Set<OsmPrimitive> getRemoved();
     
    6366         * <p>
    6467         * This collection cannot be modified and will not change.
    65          * @return The primitives
     68         * @return The primitives that were added
    6669         */
    6770        Set<OsmPrimitive> getAdded();
     
    7679         * Test if this event did not change anything.
    7780         * <p>
    78          * Should return true for all events that are fired.
     81         * This will return <code>false</code> for all events that are sent to listeners, so you don't need to test it.
    7982         * @return <code>true</code> if this did not change the selection.
    8083         */
Note: See TracChangeset for help on using the changeset viewer.