Changeset 32426 in osm
- Timestamp:
- 2016-06-28T23:24:50+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/terracer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/terracer/build.xml
r31923 r32426 2 2 <project name="terracer" default="dist" basedir="."> 3 3 <property name="commit.message" value="applied #j5760 (patch by robome) - Order of housenumbers not correct"/> 4 <property name="plugin.main.version" value=" 8919"/>4 <property name="plugin.main.version" value="10279"/> 5 5 <property name="plugin.author" value="Matt Amos"/> 6 6 <property name="plugin.class" value="terracer.TerracerPlugin"/> -
applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputDialog.java
r30872 r32426 315 315 316 316 if (buildingComboBox == null) { 317 final List<AutoCompletionListItem> values = Main. main.getCurrentDataSet().getAutoCompletionManager().getValues("building");317 final List<AutoCompletionListItem> values = Main.getLayerManager().getEditDataSet().getAutoCompletionManager().getValues("building"); 318 318 319 319 buildingComboBox = new AutoCompletingComboBox(); … … 367 367 TreeSet<String> createAutoCompletionInfo() { 368 368 final TreeSet<String> names = new TreeSet<>(); 369 for (OsmPrimitive osm : Main. main.getCurrentDataSet()369 for (OsmPrimitive osm : Main.getLayerManager().getEditDataSet() 370 370 .allNonDeletedPrimitives()) { 371 371 if (osm.getKeys() != null && osm.keySet().contains("highway") -
applications/editors/josm/plugins/terracer/src/terracer/ReverseTerraceAction.java
r30737 r32426 51 51 */ 52 52 public void actionPerformed(ActionEvent e) { 53 Collection<Way> selectedWays = Main. main.getCurrentDataSet().getSelectedWays();53 Collection<Way> selectedWays = Main.getLayerManager().getEditDataSet().getSelectedWays(); 54 54 55 55 // Set to keep track of all the nodes that have been visited - that is: if … … 123 123 124 124 Main.main.undoRedo.add(new SequenceCommand(tr("Reverse Terrace"), commands)); 125 Main. main.getCurrentDataSet().setSelected(orderedWays);125 Main.getLayerManager().getEditDataSet().setSelected(orderedWays); 126 126 } 127 127 128 128 @Override 129 129 protected void updateEnabledState() { 130 setEnabled(get CurrentDataSet() != null);130 setEnabled(getLayerManager().getEditDataSet() != null); 131 131 } 132 132 } -
applications/editors/josm/plugins/terracer/src/terracer/TerracerAction.java
r31655 r32426 109 109 @Override 110 110 public void actionPerformed(ActionEvent e) { 111 Collection<OsmPrimitive> sel = get CurrentDataSet().getSelected();111 Collection<OsmPrimitive> sel = getLayerManager().getEditDataSet().getSelected(); 112 112 Way outline = null; 113 113 Way street = null; … … 404 404 nodesToDelete.add(n); 405 405 if (!nodesToDelete.isEmpty()) 406 this.commands.add(DeleteCommand.delete(Main. main.getEditLayer(), nodesToDelete));406 this.commands.add(DeleteCommand.delete(Main.getLayerManager().getEditLayer(), nodesToDelete)); 407 407 } 408 408 } else { … … 414 414 // Or should removing them also be an option? 415 415 if (!housenumbers.isEmpty()) { 416 commands.add(DeleteCommand.delete(Main. main.getEditLayer(),416 commands.add(DeleteCommand.delete(Main.getLayerManager().getEditLayer(), 417 417 housenumbers, true, true)); 418 418 } … … 429 429 if (nb <= 1 && street != null) { 430 430 // Select the way (for quick selection of a new house (with the same way)) 431 Main. main.getCurrentDataSet().setSelected(street);431 Main.getLayerManager().getEditDataSet().setSelected(street); 432 432 } else { 433 433 // Select the new building outlines (for quick reversing) 434 Main. main.getCurrentDataSet().setSelected(ways);434 Main.getLayerManager().getEditDataSet().setSelected(ways); 435 435 } 436 436 } … … 777 777 @Override 778 778 protected void updateEnabledState() { 779 setEnabled(get CurrentDataSet() != null);779 setEnabled(getLayerManager().getEditDataSet() != null); 780 780 } 781 781 }
Note:
See TracChangeset
for help on using the changeset viewer.