Changeset 3639 in osm for applications/editors/josm/plugins/surveyor
- Timestamp:
- 2007-07-20T17:22:15+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/AnnotationPresetAction.java
r3348 r3639 9 9 10 10 import org.openstreetmap.josm.data.coor.LatLon; 11 import org.openstreetmap.josm.gui. annotation.AnnotationPreset;12 import org.openstreetmap.josm.gui.preferences. AnnotationPresetPreference;11 import org.openstreetmap.josm.gui.tagging.TaggingPreset; 12 import org.openstreetmap.josm.gui.preferences.TaggingPresetPreference; 13 13 14 14 import at.dallermassl.josm.plugin.surveyor.GpsActionEvent; … … 21 21 public class AnnotationPresetAction implements SurveyorAction { 22 22 private String presetName; 23 private AnnotationPreset preset;23 private TaggingPreset preset; 24 24 25 25 … … 58 58 } 59 59 presetName = parameters.get(0); 60 preset = get AnnotationPreset(presetName);60 preset = getTaggingPreset(presetName); 61 61 if(preset == null) { 62 62 System.err.println("No valid preset '" + parameters.get(0) + "' found - disable action!"); … … 70 70 * @return the preset with the given name. 71 71 */ 72 protected AnnotationPreset getAnnotationPreset(String name) {73 for( AnnotationPreset preset : AnnotationPresetPreference.annotationPresets) {72 protected TaggingPreset getTaggingPreset(String name) { 73 for(TaggingPreset preset : TaggingPresetPreference.taggingPresets) { 74 74 if(name.equals(preset.getValue(Action.NAME))) { 75 75 return preset;
Note:
See TracChangeset
for help on using the changeset viewer.