Changeset 4086 in osm
- Timestamp:
- 2007-08-11T19:07:23+02:00 (17 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
r4023 r4086 17 17 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 18 18 import org.openstreetmap.josm.gui.MapView; 19 import org.openstreetmap.josm.gui.MapView.LayerChangeListener;20 19 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 21 20 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; 22 21 import org.openstreetmap.josm.gui.layer.Layer; 22 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener; 23 23 import org.openstreetmap.josm.plugins.validator.util.Bag; 24 24 import org.openstreetmap.josm.tools.ImageProvider; … … 38 38 { 39 39 super(name); 40 Main.map.mapView.addLayerChangeListener(this);40 Layer.listeners.add(this); 41 41 } 42 42 -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java
r4023 r4086 14 14 import org.openstreetmap.josm.actions.UploadAction.UploadHook; 15 15 import org.openstreetmap.josm.gui.MapFrame; 16 import org.openstreetmap.josm.gui.MapView.LayerChangeListener;17 16 import org.openstreetmap.josm.gui.layer.Layer; 18 17 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 18 import org.openstreetmap.josm.gui.layer.Layer.LayerChangeListener; 19 19 import org.openstreetmap.josm.gui.preferences.PreferenceSetting; 20 20 import org.openstreetmap.josm.plugins.Plugin; … … 82 82 newFrame.addToggleDialog(validationDialog); 83 83 Main.main.addLayer(new ErrorLayer(tr("Validation errors"))); 84 Main.map.mapView.addLayerChangeListener(this);84 Layer.listeners.add(this); 85 85 } 86 86 else 87 oldFrame.mapView.removeLayerChangeListener(this);87 Layer.listeners.remove(this); 88 88 89 89 // Add/Remove the upload hook
Note:
See TracChangeset
for help on using the changeset viewer.