Changeset 9264 in josm
- Timestamp:
- 2016-01-02T18:04:19+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r9078 r9264 60 60 import org.openstreetmap.josm.gui.MapView; 61 61 import org.openstreetmap.josm.gui.MapView.LayerChangeListener; 62 import org.openstreetmap.josm.gui.NavigatableComponent; 62 63 import org.openstreetmap.josm.gui.OsmPrimitivRenderer; 63 64 import org.openstreetmap.josm.gui.PopupMenuHandler; … … 85 86 * objects are visible on the map and can be selected there. Relations are not. 86 87 */ 87 public class RelationListDialog extends ToggleDialog implements DataSetListener {88 public class RelationListDialog extends ToggleDialog implements DataSetListener, NavigatableComponent.ZoomChangeListener { 88 89 /** The display list. */ 89 90 private final JList<Relation> displaylist; … … 206 207 public void showNotify() { 207 208 MapView.addLayerChangeListener(newAction); 209 MapView.addZoomChangeListener(this); 208 210 newAction.updateEnabledState(); 209 211 DatasetEventManager.getInstance().addDatasetListener(this, FireMode.IN_EDT); … … 215 217 public void hideNotify() { 216 218 MapView.removeLayerChangeListener(newAction); 219 MapView.removeZoomChangeListener(this); 217 220 DatasetEventManager.getInstance().removeDatasetListener(this); 218 221 DataSet.removeSelectionListener(addSelectionToRelations); … … 671 674 /* ignore */ 672 675 } 676 677 @Override 678 public void zoomChanged() { 679 // re-filter relations 680 if (model.filter != null) { 681 model.setFilter(model.filter); 682 } 683 } 673 684 }
Note:
See TracChangeset
for help on using the changeset viewer.