Ignore:
Timestamp:
2007-07-20T17:22:15+02:00 (17 years ago)
Author:
imi
Message:

renamed annotataion presets to tagging presets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/AnnotationPresetAction.java

    r3348 r3639  
    99
    1010import org.openstreetmap.josm.data.coor.LatLon;
    11 import org.openstreetmap.josm.gui.annotation.AnnotationPreset;
    12 import org.openstreetmap.josm.gui.preferences.AnnotationPresetPreference;
     11import org.openstreetmap.josm.gui.tagging.TaggingPreset;
     12import org.openstreetmap.josm.gui.preferences.TaggingPresetPreference;
    1313
    1414import at.dallermassl.josm.plugin.surveyor.GpsActionEvent;
     
    2121public class AnnotationPresetAction implements SurveyorAction {
    2222    private String presetName;
    23     private AnnotationPreset preset;
     23    private TaggingPreset preset;
    2424   
    2525
     
    5858        }
    5959        presetName = parameters.get(0);
    60         preset = getAnnotationPreset(presetName);
     60        preset = getTaggingPreset(presetName);
    6161        if(preset == null) {
    6262            System.err.println("No valid preset '" + parameters.get(0) + "' found - disable action!");
     
    7070     * @return  the preset with the given name.
    7171     */
    72     protected AnnotationPreset getAnnotationPreset(String name) {
    73         for(AnnotationPreset preset : AnnotationPresetPreference.annotationPresets) {
     72    protected TaggingPreset getTaggingPreset(String name) {
     73        for(TaggingPreset preset : TaggingPresetPreference.taggingPresets) {
    7474            if(name.equals(preset.getValue(Action.NAME))) {
    7575                return preset;
Note: See TracChangeset for help on using the changeset viewer.