Changeset 2949 in osm for applications/editors/josm


Ignore:
Timestamp:
2007-05-19T23:51:19+02:00 (17 years ago)
Author:
christofd
Message:

do not set a node, annotation preset uses the selected object

File:
1 edited

Legend:

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

    r2938 r2949  
    55
    66import java.util.List;
    7 import java.util.Map.Entry;
    87
    98import javax.swing.Action;
     
    4039        System.out.println(getClass().getSimpleName() + " KOORD: " + coordinates.lat() + ", "
    4140            + coordinates.lon() + ", preset=" + presetName);
    42         Node node = new Node(coordinates);
    43         node.put("created_by", "JOSM-surveyor-plugin");
    44         synchronized(LiveGpsLock.class) {
    45             Main.main.editLayer().data.nodes.add(node);
    46             Main.ds.setSelected(node);
    47         }
    48         Main.map.repaint();
     41//        Node node = new Node(coordinates);
     42//        node.put("created_by", "JOSM-surveyor-plugin");
     43//        synchronized(LiveGpsLock.class) {
     44//            Main.main.editLayer().data.nodes.add(node);
     45//            Main.ds.setSelected(node);
     46//        }
     47//        Main.map.repaint();
    4948       
    5049        // call an annotationpreset to add additional properties...
Note: See TracChangeset for help on using the changeset viewer.