Changeset 16744 in osm for applications/editors/josm/plugins
- Timestamp:
- 2009-07-31T12:35:34+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/czechaddress
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/build.xml
r16601 r16744 52 52 <attribute name="Plugin-Description" value="Creating and handling address nodes and buildings within Czech Republic."/> 53 53 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/Cz:JOSM/Plugins/CzechAddress"/> 54 <attribute name="Plugin-Mainversion" value="1815"/> 55 <!--<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>--> 54 <attribute name="Plugin-Mainversion" value="1788"/> 56 55 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 57 56 </manifest> -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/CzechAddressPlugin.java
r16601 r16744 147 147 reasoner.update(street); 148 148 149 for (OsmPrimitive prim : Main. main.getCurrentDataSet().allPrimitives()) {149 for (OsmPrimitive prim : Main.ds.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
r16601 r16744 22 22 */ 23 23 public static void zoomToMany(Collection<OsmPrimitive> primitives) { 24 Main. main.getCurrentDataSet().setSelected(primitives);24 Main.ds.setSelected(primitives); 25 25 (new AutoScaleAction("selection")).actionPerformed(null); 26 26 } … … 30 30 */ 31 31 public static void zoomTo(OsmPrimitive primitive) { 32 Main. main.getCurrentDataSet().setSelected(primitive);32 Main.ds.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
r16601 r16744 107 107 FactoryDialog.getInstance().selectionListenerActivated = false; 108 108 FactoryDialog.getInstance().selectNextUnmatchedHouseByCheckBox(); 109 Main. main.getCurrentDataSet().addPrimitive(newNode);110 Main. main.getCurrentDataSet().setSelected(newNode);109 Main.ds.addPrimitive(newNode); 110 Main.ds.setSelected(newNode); 111 111 FactoryDialog.getInstance().selectionListenerActivated = true; 112 112 } -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/PointManipulatorAction.java
r16601 r16744 43 43 */ 44 44 public void actionPerformed(ActionEvent e) { 45 Collection<OsmPrimitive> data = Main. main.getCurrentDataSet().getSelected();45 Collection<OsmPrimitive> data = Main.ds.getSelected(); 46 46 47 47 if (data.size() != 1) return; -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/SplitAreaByEmptyWayAction.java
r16601 r16744 51 51 public void actionPerformed(ActionEvent e) { 52 52 53 Collection<OsmPrimitive> selectedWays = Main. main.getCurrentDataSet().getSelectedWays();54 Collection<OsmPrimitive> newSelection = Main. main.getCurrentDataSet().getSelected();53 Collection<OsmPrimitive> selectedWays = Main.ds.getSelectedWays(); 54 Collection<OsmPrimitive> newSelection = Main.ds.getSelected(); 55 55 56 56 for (OsmPrimitive prim : selectedWays) { … … 58 58 Way area = (Way) prim; 59 59 60 for (OsmPrimitive prim2 : Main. main.getCurrentDataSet().allNonDeletedPrimitives()) {60 for (OsmPrimitive prim2 : Main.ds.allNonDeletedPrimitives()) { 61 61 if (!(prim2 instanceof Way)) continue; 62 62 if (prim2.equals(prim)) continue; … … 80 80 81 81 if (errorCode == 0) { 82 Main. main.getCurrentDataSet().addPrimitive(newArea1);83 Main. main.getCurrentDataSet().addPrimitive(newArea2);82 Main.ds.addPrimitive(newArea1); 83 Main.ds.addPrimitive(newArea2); 84 84 85 85 area.delete(true); … … 96 96 } 97 97 98 Main. main.getCurrentDataSet().setSelected(newSelection);98 Main.ds.setSelected(newSelection); 99 99 } 100 100 … … 124 124 } 125 125 126 for (Relation relation : Main. main.getCurrentDataSet().relations)126 for (Relation relation : Main.ds.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.form
r15582 r16744 41 41 <EmptySpace max="-2" attributes="0"/> 42 42 <Group type="103" groupAlignment="1" attributes="0"> 43 <Component id="suburbComboBox" pref="34 1" max="32767" attributes="0"/>44 <Component id="vitociComboBox" pref="34 1" max="32767" attributes="0"/>45 <Component id="oblastComboBox" pref="34 1" max="32767" attributes="0"/>43 <Component id="suburbComboBox" pref="346" max="32767" attributes="0"/> 44 <Component id="vitociComboBox" pref="346" max="32767" attributes="0"/> 45 <Component id="oblastComboBox" pref="346" max="32767" attributes="0"/> 46 46 </Group> 47 47 </Group> -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/LocationSelector.java
r16601 r16744 83 83 84 84 BoundingXYVisitor visitor = new BoundingXYVisitor(); 85 for (OsmPrimitive op : Main. main.getCurrentDataSet().allPrimitives()) {85 for (OsmPrimitive op : Main.ds.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. main.getCurrentDataSet().allPrimitives()) {105 for (OsmPrimitive op : Main.ds.allPrimitives()) { 106 106 107 107 if (!(op instanceof Node)) { -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/ManagerDialog.form
r15582 r16744 50 50 <Group type="103" groupAlignment="0" attributes="0"> 51 51 <Group type="102" alignment="1" attributes="0"> 52 <EmptySpace pref="2 53" max="32767" attributes="0"/>52 <EmptySpace pref="267" max="32767" attributes="0"/> 53 53 <Component id="renamerButton" min="-2" max="-2" attributes="0"/> 54 54 <EmptySpace max="-2" attributes="0"/> … … 116 116 <Component id="jScrollPane1" alignment="0" pref="426" max="32767" attributes="0"/> 117 117 <Group type="102" alignment="1" attributes="0"> 118 <EmptySpace pref="3 56" max="32767" attributes="0"/>118 <EmptySpace pref="363" max="32767" attributes="0"/> 119 119 <Component id="dbEditButton" min="-2" max="-2" attributes="0"/> 120 120 <EmptySpace max="-2" attributes="0"/> -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/ManagerDialog.java
r16601 r16744 47 47 48 48 Capitalizator cap = new Capitalizator( 49 Main. main.getCurrentDataSet().allPrimitives(),49 Main.ds.allPrimitives(), 50 50 CzechAddressPlugin.getLocation().getStreets()); 51 51 -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/PointManipulatorDialog.form
r15582 r16744 44 44 <Group type="103" groupAlignment="0" attributes="0"> 45 45 <Group type="102" alignment="1" attributes="0"> 46 <Component id="locationEdit" pref="2 28" max="32767" attributes="0"/>46 <Component id="locationEdit" pref="252" max="32767" attributes="0"/> 47 47 <EmptySpace max="-2" attributes="0"/> 48 48 <Component id="changeLocationButton" min="-2" max="-2" attributes="0"/> 49 49 </Group> 50 <Component id="alternateNumberEdit" alignment="0" pref=" 293" max="32767" attributes="0"/>51 <Component id="matchesComboBox" alignment="0" pref=" 293" max="32767" attributes="0"/>50 <Component id="alternateNumberEdit" alignment="0" pref="309" max="32767" attributes="0"/> 51 <Component id="matchesComboBox" alignment="0" pref="309" max="32767" attributes="0"/> 52 52 </Group> 53 53 </Group> -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/PointManipulatorDialog.java
r16601 r16744 99 99 proposalContainer.applyAll(); 100 100 101 Main. main.getCurrentDataSet().setSelected((Node) null); // TODO: This is an ugly hack.102 Main. main.getCurrentDataSet().setSelected(proposalContainer.getTarget());101 Main.ds.setSelected((Node) null); // TODO: This is an ugly hack. 102 Main.ds.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
r16601 r16744 66 66 way.remove(key); 67 67 68 Main. main.getCurrentDataSet().addPrimitive(addrNode);68 Main.ds.addPrimitive(addrNode); 69 69 } 70 70
Note:
See TracChangeset
for help on using the changeset viewer.