Changeset 32474 in osm
- Timestamp:
- 2016-06-30T23:46:16+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/tracer2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer2/build.xml
r31926 r32474 5 5 <property name="commit.message" value="see #josm11090"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value=" 7001"/>7 <property name="plugin.main.version" value="10353"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). 10 11 12 13 10 See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins 14 11 --> -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/ConnectWays.java
r30927 r32474 75 75 BBox bbox = new BBox(way); 76 76 bbox.addPrimitive(way,s_dMinDistance); 77 s_oWays = Main. main.getCurrentDataSet().searchWays(bbox);77 s_oWays = Main.getLayerManager().getEditDataSet().searchWays(bbox); 78 78 } 79 79 … … 87 87 BBox bbox = new BBox(way); 88 88 bbox.addPrimitive(way,s_dMinDistance); 89 s_oNodes = Main. main.getCurrentDataSet().searchNodes(bbox);89 s_oNodes = Main.getLayerManager().getEditDataSet().searchNodes(bbox); 90 90 } 91 91 -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/TagValues.java
r30737 r32474 54 54 // get values 55 55 List<String> tagValues = new ArrayList<>(); 56 List<AutoCompletionListItem> values = Main. main.getCurrentDataSet().getAutoCompletionManager().getValues(m_strTag);56 List<AutoCompletionListItem> values = Main.getLayerManager().getEditDataSet().getAutoCompletionManager().getValues(m_strTag); 57 57 for ( AutoCompletionListItem i : values ) { 58 58 tagValues.add(i.getValue()); -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/TracerAction.java
r30927 r32474 27 27 import java.awt.event.InputEvent; 28 28 import java.awt.event.KeyEvent; 29 import java.awt.event.KeyListener; 29 30 import java.awt.event.MouseEvent; 30 31 import java.awt.event.MouseListener; 31 import java.awt.event.KeyListener;32 32 import java.util.ArrayList; 33 33 import java.util.Collection; … … 38 38 import javax.swing.JOptionPane; 39 39 40 import org.xml.sax.SAXException;41 40 import org.openstreetmap.josm.Main; 42 41 import org.openstreetmap.josm.actions.mapmode.MapMode; 43 import org.openstreetmap.josm.command.AddCommand;44 42 import org.openstreetmap.josm.command.ChangePropertyCommand; 45 43 import org.openstreetmap.josm.command.Command; … … 47 45 import org.openstreetmap.josm.data.coor.LatLon; 48 46 import org.openstreetmap.josm.data.osm.Node; 47 import org.openstreetmap.josm.data.osm.OsmPrimitive; 49 48 import org.openstreetmap.josm.data.osm.Way; 49 import org.openstreetmap.josm.gui.MapFrame; 50 50 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 51 51 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 52 import org.openstreetmap.josm.gui.MapFrame;53 52 import org.openstreetmap.josm.plugins.tracer2.preferences.ServerParam; 54 53 import org.openstreetmap.josm.plugins.tracer2.preferences.ServerParamList; 55 54 import org.openstreetmap.josm.plugins.tracer2.preferences.ServerParamSelectDialog; 55 import org.openstreetmap.josm.plugins.tracer2.server.GetTrace; 56 56 import org.openstreetmap.josm.plugins.tracer2.server.GetVersion; 57 import org.openstreetmap.josm.plugins.tracer2.server.GetTrace;58 57 import org.openstreetmap.josm.tools.ImageProvider; 59 58 import org.openstreetmap.josm.tools.Shortcut; 60 import org. openstreetmap.josm.data.osm.OsmPrimitive;59 import org.xml.sax.SAXException; 61 60 62 61 class TracerAction extends MapMode implements MouseListener, KeyListener { … … 82 81 //System.out.println("keyPressed: key:" + e.getKeyChar() + " code" + e.getKeyCode() + " Loc" + e.getKeyLocation()+ " ID" + KeyEvent.getKeyText(e.getKeyCode())); 83 82 84 Collection<OsmPrimitive> selection = get CurrentDataSet().getSelected();83 Collection<OsmPrimitive> selection = getLayerManager().getEditDataSet().getSelected(); 85 84 List<Command> commands = new ArrayList<>(); 86 85 … … 340 339 341 340 if (m_bShift) { 342 Main.main.getCurrentDataSet().addSelected(ConnectWays.s_oWay);341 getLayerManager().getEditDataSet().addSelected(ConnectWays.s_oWay); 343 342 } else { 344 Main.main.getCurrentDataSet().setSelected(ConnectWays.s_oWay);343 getLayerManager().getEditDataSet().setSelected(ConnectWays.s_oWay); 345 344 } 346 345 } else {
Note:
See TracChangeset
for help on using the changeset viewer.