- Timestamp:
- 2016-06-24T10:10:18+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/MemberTable.java
r10454 r10478 85 85 JPopupMenu menu = super.buildPopupMenu(); 86 86 zoomToGap = new ZoomToGapAction(); 87 Main.getLayerManager().addLayerChangeListener(zoomToGap); 88 Main.getLayerManager().addActiveLayerChangeListener(zoomToGap); 87 registerListeners(); 89 88 getSelectionModel().addListSelectionListener(zoomToGap); 90 89 menu.add(zoomToGap); … … 139 138 140 139 @Override 140 public void registerListeners() { 141 Main.getLayerManager().addLayerChangeListener(zoomToGap); 142 Main.getLayerManager().addActiveLayerChangeListener(zoomToGap); 143 super.registerListeners(); 144 } 145 146 @Override 141 147 public void unregisterListeners() { 142 148 super.unregisterListeners();
Note:
See TracChangeset
for help on using the changeset viewer.