Changeset 35258 in osm for applications
- Timestamp:
- 2019-12-26T09:31:22+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/ui/TabularPresetSelector.java
r32959 r35258 34 34 35 35 import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset; 36 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresetListener; 36 37 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets; 37 38 public class TabularPresetSelector extends JPanel { 38 import org.openstreetmap.josm.tools.Destroyable; 39 40 public class TabularPresetSelector extends JPanel implements TaggingPresetListener, Destroyable { 39 41 40 42 private PresetsTable presetsTable = null; … … 188 190 // 189 191 bindTo(TaggingPresets.getTaggingPresets()); 192 TaggingPresets.addListener(this); 190 193 presetsTable.getSelectionModel().clearSelection(); 191 194 btnApply.setEnabled(false); … … 265 268 getActionMap().put(a.getValue(AbstractAction.NAME), a); 266 269 } 270 271 @Override 272 public void destroy() { 273 TaggingPresets.removeListener(this); 274 } 275 276 @Override 277 public void taggingPresetsModified() { 278 bindTo(TaggingPresets.getTaggingPresets()); 279 } 267 280 }
Note:
See TracChangeset
for help on using the changeset viewer.