Changeset 29916 in osm for applications/editors/josm/plugins/surveyor
- Timestamp:
- 2013-09-05T03:11:22+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/surveyor
- Files:
-
- 3 deleted
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/surveyor/.project
r29853 r29916 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <projectDescription> 3 <name>JOSM- plugin-surveyor</name>3 <name>JOSM-surveyor</name> 4 4 <comment></comment> 5 5 <projects> -
applications/editors/josm/plugins/surveyor/README
r29860 r29916 1 Plugin surveyo 1 Plugin surveyor 2 2 3 3 This plugin is copyrighted 2008-2009 -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorComponent.java
r27366 r29916 122 122 123 123 // parse xml file and create component from it: 124 Reader in = new InputStreamReader(SurveyorComponent.class.getClassLoader().getResourceAsStream(" surveyor.xml"));124 Reader in = new InputStreamReader(SurveyorComponent.class.getClassLoader().getResourceAsStream("resources/surveyor.xml")); 125 125 XmlObjectParser parser = new XmlObjectParser(); 126 126 parser.mapOnStart("surveyor", SurveyorComponent.class); -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java
r27852 r29916 39 39 public class SurveyorShowAction extends JosmAction { 40 40 private static final long serialVersionUID = 2184570223633094734L; 41 private static final String DEFAULT_SOURCE = "resource:// surveyor.xml";41 private static final String DEFAULT_SOURCE = "resource://resources/surveyor.xml"; 42 42 private JFrame surveyorFrame; 43 43 private LiveGpsPlugin gpsPlugin; -
applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetNodeAction.java
r19681 r29916 8 8 import java.util.Collection; 9 9 import java.util.List; 10 import java.util.Map.Entry;11 10 12 import org.dinopolis.util.collection.Tuple;13 11 import org.openstreetmap.josm.Main; 14 12 import org.openstreetmap.josm.data.coor.LatLon; 15 13 import org.openstreetmap.josm.data.osm.DataSet; 16 14 import org.openstreetmap.josm.data.osm.Node; 15 import org.openstreetmap.josm.tools.Pair; 17 16 18 17 import at.dallermassl.josm.plugin.surveyor.GpsActionEvent; … … 28 27 */ 29 28 public class SetNodeAction implements SurveyorAction { 30 private Collection< Tuple<String, String>> keyValues;29 private Collection<Pair<String, String>> keyValues; 31 30 32 31 /** … … 42 41 //@Override 43 42 public void setParameters(List<String> parameters) { 44 keyValues = new ArrayList< Tuple<String, String>>();43 keyValues = new ArrayList<Pair<String, String>>(); 45 44 int pos; 46 45 String key; … … 51 50 key = keyValuePair.substring(0, pos); 52 51 value = keyValuePair.substring(pos + 1); 53 keyValues.add(new Tuple<String, String>(key, value));52 keyValues.add(new Pair<String, String>(key, value)); 54 53 } else { 55 54 System.err.println("SetNodeAction: ignoring invalid key value pair: " + keyValuePair); … … 65 64 //System.out.println(getClass().getSimpleName() + " KOORD: " + coordinates.lat() + ", " + coordinates.lon() + " params: " + keyValues); 66 65 Node node = new Node(coordinates); 67 for( Entry<String, String> entry : keyValues) {68 node.put(entry. getKey(), entry.getValue());66 for(Pair<String, String> entry : keyValues) { 67 node.put(entry.a, entry.b); 69 68 } 70 69 synchronized(SurveyorLock.class) { … … 78 77 Main.map.repaint(); 79 78 } 80 81 82 79 }
Note:
See TracChangeset
for help on using the changeset viewer.