Changeset 32455 in osm for applications/editors/josm/plugins/buildings_tools/src
- Timestamp:
- 2016-06-30T00:13:14+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/buildings_tools/src/buildings_tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/Building.java
r31361 r32455 207 207 208 208 private Node findNode(EastNorth pos) { 209 DataSet ds = Main. main.getCurrentDataSet();209 DataSet ds = Main.getLayerManager().getEditDataSet(); 210 210 LatLon l = eastNorth2latlon(pos); 211 211 List<Node> nodes = ds.searchNodes(new BBox(l.lon() - 0.0000001, l.lat() - 0.0000001, … … 234 234 List<Node> nodes = new LinkedList<>(); 235 235 nodesloop: 236 for (Node n : Main. main.getCurrentDataSet().searchNodes(bbox)) {236 for (Node n : Main.getLayerManager().getEditDataSet().searchNodes(bbox)) { 237 237 if (!n.isUsable()) 238 238 continue; -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/DrawBuildingAction.java
r31104 r32455 20 20 import java.util.Collection; 21 21 import java.util.LinkedList; 22 import java.util.Map;23 22 import java.util.Map.Entry; 24 23 … … 128 127 public void enterMode() { 129 128 super.enterMode(); 130 if (get CurrentDataSet() == null) {129 if (getLayerManager().getEditDataSet() == null) { 131 130 Main.map.selectSelectTool(false); 132 131 return; … … 140 139 Main.map.keyDetector.addModifierListener(this); 141 140 DataSet.addSelectionListener(this); 142 updateSnap(get CurrentDataSet().getSelected());141 updateSnap(getLayerManager().getEditDataSet().getSelected()); 143 142 } 144 143 … … 307 306 showAddrDialog(w); 308 307 if (ToolSettings.isAutoSelect() 309 && ( Main.main.getCurrentDataSet().getSelected().isEmpty() || shift)) {310 Main.main.getCurrentDataSet().setSelected(w);308 && (getLayerManager().getEditDataSet().getSelected().isEmpty() || shift)) { 309 getLayerManager().getEditDataSet().setSelected(w); 311 310 } 312 311 } -
applications/editors/josm/plugins/buildings_tools/src/buildings_tools/MergeAddrPointsAction.java
r31100 r32455 49 49 if (!isEnabled()) 50 50 return; 51 Collection<OsmPrimitive> selection = get CurrentDataSet().getSelected();51 Collection<OsmPrimitive> selection = getLayerManager().getEditDataSet().getSelected(); 52 52 if (selection.isEmpty()) { 53 53 new Notification(tr("Select both address nodes and building ways to merge")) … … 146 146 @Override 147 147 protected void updateEnabledState() { 148 setEnabled(get CurrentDataSet() != null);148 setEnabled(getLayerManager().getEditDataSet() != null); 149 149 } 150 150 }
Note:
See TracChangeset
for help on using the changeset viewer.