Ignore:
Timestamp:
2013-09-05T03:11:22+02:00 (11 years ago)
Author:
donvip
Message:

[josm_surveyor] fix/cleanup plugin

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  
    11<?xml version="1.0" encoding="UTF-8"?>
    22<projectDescription>
    3         <name>JOSM-plugin-surveyor</name>
     3        <name>JOSM-surveyor</name>
    44        <comment></comment>
    55        <projects>
  • applications/editors/josm/plugins/surveyor/README

    r29860 r29916  
    1 Plugin surveyo 
     1Plugin surveyor
    22
    33This plugin is copyrighted 2008-2009
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorComponent.java

    r27366 r29916  
    122122
    123123        // 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"));
    125125        XmlObjectParser parser = new XmlObjectParser();
    126126        parser.mapOnStart("surveyor", SurveyorComponent.class);
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/SurveyorShowAction.java

    r27852 r29916  
    3939public class SurveyorShowAction extends JosmAction {
    4040    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";
    4242    private JFrame surveyorFrame;
    4343    private LiveGpsPlugin gpsPlugin;
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetNodeAction.java

    r19681 r29916  
    88import java.util.Collection;
    99import java.util.List;
    10 import java.util.Map.Entry;
    1110
    12 import org.dinopolis.util.collection.Tuple;
    1311import org.openstreetmap.josm.Main;
    1412import org.openstreetmap.josm.data.coor.LatLon;
    1513import org.openstreetmap.josm.data.osm.DataSet;
    1614import org.openstreetmap.josm.data.osm.Node;
     15import org.openstreetmap.josm.tools.Pair;
    1716
    1817import at.dallermassl.josm.plugin.surveyor.GpsActionEvent;
     
    2827 */
    2928public class SetNodeAction implements SurveyorAction {
    30     private Collection<Tuple<String, String>> keyValues;
     29    private Collection<Pair<String, String>> keyValues;
    3130
    3231    /**
     
    4241    //@Override
    4342    public void setParameters(List<String> parameters) {
    44         keyValues = new ArrayList<Tuple<String, String>>();
     43        keyValues = new ArrayList<Pair<String, String>>();
    4544        int pos;
    4645        String key;
     
    5150                key = keyValuePair.substring(0, pos);
    5251                value = keyValuePair.substring(pos + 1);
    53                 keyValues.add(new Tuple<String, String>(key, value));
     52                keyValues.add(new Pair<String, String>(key, value));
    5453            } else {
    5554                System.err.println("SetNodeAction: ignoring invalid key value pair: " + keyValuePair);
     
    6564        //System.out.println(getClass().getSimpleName() + " KOORD: " + coordinates.lat() + ", " + coordinates.lon() + " params: " + keyValues);
    6665        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);
    6968        }
    7069        synchronized(SurveyorLock.class) {
     
    7877        Main.map.repaint();
    7978    }
    80 
    81 
    8279}
Note: See TracChangeset for help on using the changeset viewer.