Ignore:
Timestamp:
2009-07-21T20:29:20+02:00 (15 years ago)
Author:
jttt
Message:

Make it work without Main.ds

Location:
applications/editors/josm/plugins/Create_grid_of_ways
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/Create_grid_of_ways

    • Property svn:ignore
      •  

        old new  
        11build
         2
         3bin
  • applications/editors/josm/plugins/Create_grid_of_ways/src/CreateGridOfWaysPlugin/CreateGridOfWaysAction.java

    r16290 r16620  
    77import java.util.Collection;
    88import java.util.LinkedList;
     9
    910import javax.swing.JOptionPane;
    1011
     
    1415import org.openstreetmap.josm.command.Command;
    1516import org.openstreetmap.josm.command.SequenceCommand;
     17import org.openstreetmap.josm.data.coor.LatLon;
    1618import org.openstreetmap.josm.data.osm.Node;
    1719import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1820import org.openstreetmap.josm.data.osm.Way;
    1921import org.openstreetmap.josm.tools.Shortcut;
    20 import org.openstreetmap.josm.data.coor.LatLon;
    2122
    2223/**
     
    4647     */
    4748    public void actionPerformed(ActionEvent e) {
    48         Collection<OsmPrimitive> sel = Main.ds.getSelected();
     49        Collection<OsmPrimitive> sel = Main.main.getCurrentDataSet().getSelected();
    4950        Collection<Node> nodesWay1 = new LinkedList<Node>();
    5051        Collection<Node> nodesWay2 = new LinkedList<Node>();
Note: See TracChangeset for help on using the changeset viewer.