Changeset 16750 in osm for applications/editors/josm/plugins/czechaddress/src
- Timestamp:
- 2009-07-31T17:24:51+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/CzechAddressPlugin.java
r16744 r16750 147 147 reasoner.update(street); 148 148 149 for (OsmPrimitive prim : Main. ds.allPrimitives()) {149 for (OsmPrimitive prim : Main.main.getCurrentDataSet().allPrimitives()) { 150 150 if (House.isMatchable(prim) || Street.isMatchable(prim)) 151 151 reasoner.update(prim); -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/MapUtils.java
r16744 r16750 22 22 */ 23 23 public static void zoomToMany(Collection<OsmPrimitive> primitives) { 24 Main. ds.setSelected(primitives);24 Main.main.getCurrentDataSet().setSelected(primitives); 25 25 (new AutoScaleAction("selection")).actionPerformed(null); 26 26 } … … 30 30 */ 31 31 public static void zoomTo(OsmPrimitive primitive) { 32 Main. ds.setSelected(primitive);32 Main.main.getCurrentDataSet().setSelected(primitive); 33 33 (new AutoScaleAction("selection")).actionPerformed(null); 34 34 } -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/FactoryAction.java
r16744 r16750 107 107 FactoryDialog.getInstance().selectionListenerActivated = false; 108 108 FactoryDialog.getInstance().selectNextUnmatchedHouseByCheckBox(); 109 Main. ds.addPrimitive(newNode);110 Main. ds.setSelected(newNode);109 Main.main.getCurrentDataSet().addPrimitive(newNode); 110 Main.main.getCurrentDataSet().setSelected(newNode); 111 111 FactoryDialog.getInstance().selectionListenerActivated = true; 112 112 } -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/PointManipulatorAction.java
r16744 r16750 43 43 */ 44 44 public void actionPerformed(ActionEvent e) { 45 Collection<OsmPrimitive> data = Main. ds.getSelected();45 Collection<OsmPrimitive> data = Main.main.getCurrentDataSet().getSelected(); 46 46 47 47 if (data.size() != 1) return; -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/SplitAreaByEmptyWayAction.java
r16744 r16750 51 51 public void actionPerformed(ActionEvent e) { 52 52 53 Collection<OsmPrimitive> selectedWays = Main. ds.getSelectedWays();54 Collection<OsmPrimitive> newSelection = Main. ds.getSelected();53 Collection<OsmPrimitive> selectedWays = Main.main.getCurrentDataSet().getSelectedWays(); 54 Collection<OsmPrimitive> newSelection = Main.main.getCurrentDataSet().getSelected(); 55 55 56 56 for (OsmPrimitive prim : selectedWays) { … … 58 58 Way area = (Way) prim; 59 59 60 for (OsmPrimitive prim2 : Main. ds.allNonDeletedPrimitives()) {60 for (OsmPrimitive prim2 : Main.main.getCurrentDataSet().allNonDeletedPrimitives()) { 61 61 if (!(prim2 instanceof Way)) continue; 62 62 if (prim2.equals(prim)) continue; … … 80 80 81 81 if (errorCode == 0) { 82 Main. ds.addPrimitive(newArea1);83 Main. ds.addPrimitive(newArea2);82 Main.main.getCurrentDataSet().addPrimitive(newArea1); 83 Main.main.getCurrentDataSet().addPrimitive(newArea2); 84 84 85 85 area.delete(true); … … 96 96 } 97 97 98 Main. ds.setSelected(newSelection);98 Main.main.getCurrentDataSet().setSelected(newSelection); 99 99 } 100 100 … … 124 124 } 125 125 126 for (Relation relation : Main. ds.relations)126 for (Relation relation : Main.main.getCurrentDataSet().relations) 127 127 for (RelationMember areaMember : relation.members) 128 128 if (area.equals(areaMember.member)) -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/LocationSelector.java
r16744 r16750 83 83 84 84 BoundingXYVisitor visitor = new BoundingXYVisitor(); 85 for (OsmPrimitive op : Main. ds.allPrimitives()) {85 for (OsmPrimitive op : Main.main.getCurrentDataSet().allPrimitives()) { 86 86 if (op instanceof Node) { 87 87 ((Node) op).visit(visitor); … … 103 103 System.out.println("AUTO: Center is " + center); 104 104 105 for (OsmPrimitive op : Main. ds.allPrimitives()) {105 for (OsmPrimitive op : Main.main.getCurrentDataSet().allPrimitives()) { 106 106 107 107 if (!(op instanceof Node)) { -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/ManagerDialog.java
r16744 r16750 47 47 48 48 Capitalizator cap = new Capitalizator( 49 Main. ds.allPrimitives(),49 Main.main.getCurrentDataSet().allPrimitives(), 50 50 CzechAddressPlugin.getLocation().getStreets()); 51 51 -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/PointManipulatorDialog.java
r16744 r16750 99 99 proposalContainer.applyAll(); 100 100 101 Main. ds.setSelected((Node) null); // TODO: This is an ugly hack.102 Main. ds.setSelected(proposalContainer.getTarget());101 Main.main.getCurrentDataSet().setSelected((Node) null); // TODO: This is an ugly hack. 102 Main.main.getCurrentDataSet().setSelected(proposalContainer.getTarget()); 103 103 104 104 AddressElement elem = (AddressElement) matchesComboBox.getSelectedItem(); -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/proposal/ExtractAddressIntoNodeProposal.java
r16744 r16750 66 66 way.remove(key); 67 67 68 Main. ds.addPrimitive(addrNode);68 Main.main.getCurrentDataSet().addPrimitive(addrNode); 69 69 } 70 70
Note:
See TracChangeset
for help on using the changeset viewer.