Changeset 19072 in osm for applications/editors/josm/plugins/validator/src/org
- Timestamp:
- 2009-12-12T18:46:54+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorLayer.java
r18593 r19072 18 18 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 19 19 import org.openstreetmap.josm.gui.MapView; 20 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 20 21 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 21 22 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; 22 23 import org.openstreetmap.josm.gui.layer.Layer; 23 24 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 24 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener;25 25 import org.openstreetmap.josm.plugins.validator.util.Bag; 26 26 import org.openstreetmap.josm.tools.ImageProvider; … … 37 37 super(tr("Validation errors")); 38 38 this.plugin = plugin; 39 Layer.listeners.add(this);39 MapView.addLayerChangeListener(this); 40 40 } 41 41 … … 138 138 Main.map.mapView.removeLayer(this); 139 139 } else if (oldLayer == this) { 140 MapView.removeLayerChangeListener(this); 140 141 OSMValidatorPlugin.errorLayer = null; 141 142 } -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java
r18152 r19072 30 30 import org.openstreetmap.josm.data.projection.Mercator; 31 31 import org.openstreetmap.josm.gui.MapFrame; 32 import org.openstreetmap.josm.gui.MapView; 33 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 32 34 import org.openstreetmap.josm.gui.layer.Layer; 33 35 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 34 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener;35 36 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 36 37 import org.openstreetmap.josm.plugins.Plugin; … … 167 168 if (Main.pref.hasKey(PreferenceEditor.PREF_DEBUG + ".grid")) 168 169 Main.main.addLayer(new GridLayer(tr("Grid"))); 169 Layer.listeners.add(this);170 MapView.addLayerChangeListener(this); 170 171 } else 171 Layer.listeners.remove(this); 172 172 MapView.removeLayerChangeListener(this); 173 173 if (newFrame != null) { 174 174 UploadAction.registerUploadHook(uploadHook = new ValidateUploadHook(this));
Note:
See TracChangeset
for help on using the changeset viewer.