Changes between Version 63 and Version 64 of DevelopersGuide/DevelopingPlugins
- Timestamp:
- 2012-07-30T10:19:04+02:00 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/DevelopingPlugins
v63 v64 132 132 * '''layer change events''' 133 133 134 Implement a [source:/trunk/src/org/openstreetmap/josm/gui/MapView.java org.openstreetmap.josm.gui.MapView.LayerChangedListener] and register is using [source:/trunk/src/org/openstreetmap/josm/gui/MapView.java addLayerChangedListener(LayerChangedListener listener)]. JOSM will then notify you about added, removed, and renamed layers. You may only or also register an [source:/trunk/src/org/openstreetmap/josm/gui/MapView.java org.openstreetmap.josm.gui.MapView.EditLayerChangedListener] in which case JOSM will notify the plugin about changes in the current edit layer, in particular whether there is or there isn't a current edit layer. 134 Implement a [source:/trunk/src/org/openstreetmap/josm/gui/MapView.java org.openstreetmap.josm.gui.MapView.LayerChangedListener] (or [org.openstreetmap.josm.gui.MapView.LayerChangeListener] ) and register is using [source:/trunk/src/org/openstreetmap/josm/gui/MapView.java addLayerChangedListener(LayerChangedListener listener)]. JOSM will then notify you about added, removed, and renamed layers. You may only or also register an [source:/trunk/src/org/openstreetmap/josm/gui/MapView.java org.openstreetmap.josm.gui.MapView.EditLayerChangedListener] in which case JOSM will notify the plugin about changes in the current edit layer, in particular whether there is or there isn't a current edit layer. 135 135 136 136 * '''selection change listener'''