Changeset 30440 in osm for applications
- Timestamp:
- 2014-05-11T01:03:31+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/surveyor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/build.xml
r30416 r30440 7 7 <property name="commit.message" value="Changed the constructor signature of the plugin main class"/> 8 8 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 9 <property name="plugin.main.version" value="7 001"/>9 <property name="plugin.main.version" value="7100"/> 10 10 <property name="livegpsplugin.jar" value="${plugin.dist.dir}/livegps.jar"/> 11 11 -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/TaggingPresetAction.java
r27885 r30440 10 10 11 11 import org.openstreetmap.josm.data.coor.LatLon; 12 import org.openstreetmap.josm.gui.preferences.map.TaggingPresetPreference;13 12 import org.openstreetmap.josm.gui.tagging.TaggingPreset; 13 import org.openstreetmap.josm.gui.tagging.TaggingPresets; 14 14 15 15 import at.dallermassl.josm.plugin.surveyor.GpsActionEvent; … … 24 24 private TaggingPreset preset; 25 25 26 27 /* (non-Javadoc) 28 * @see at.dallermassl.josm.plugin.surveyor.SurveyorAction#actionPerformed(at.dallermassl.josm.plugin.surveyor.GpsActionEvent) 29 */ 30 //@Override 26 @Override 31 27 public void actionPerformed(GpsActionEvent event) { 32 28 if(preset == null) { … … 49 45 } 50 46 51 52 /* (non-Javadoc) 53 * @see at.dallermassl.josm.plugin.surveyor.SurveyorAction#setParameters(java.util.List) 54 */ 55 //@Override 47 @Override 56 48 public void setParameters(List<String> parameters) { 57 49 if(parameters.size() == 0) { … … 60 52 presetName = parameters.get(0); 61 53 preset = getAnnotationPreset(presetName); 62 if (preset == null) {54 if (preset == null) { 63 55 System.err.println("No valid preset '" + parameters.get(0) + "' found - disable action!"); 64 56 return; … … 72 64 */ 73 65 protected TaggingPreset getAnnotationPreset(String name) { 74 for (TaggingPreset preset : TaggingPresetPreference.taggingPresets) {75 if (name.equals(preset.getValue(Action.NAME))) {66 for (TaggingPreset preset : TaggingPresets.getTaggingPresets()) { 67 if (name.equals(preset.getValue(Action.NAME))) { 76 68 return preset; 77 69 } … … 79 71 return null; 80 72 } 81 82 83 73 }
Note:
See TracChangeset
for help on using the changeset viewer.