Changeset 30346 in osm for applications/editors
- Timestamp:
- 2014-03-24T21:49:51+01:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/StringUtils.java
r23190 r30346 170 170 * 171 171 * <p>This method was posted on the 172 * <a href='http://forums.sun.com/thread.jspa?messageID=10190825#10190825'> 173 * SUN forum</a> by 174 * <a href='http://forums.sun.com/profile.jspa?userID=43408'> 175 * <i>Alan Moore</i></a>.</p> 172 * SUN forum by 173 * <i>Alan Moore</i>.</p> 176 174 */ 177 175 public static String anglicize(String str) { -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/ManagerAction.java
r29727 r30346 24 24 25 25 @Override 26 26 public void actionPerformed(ActionEvent e) { 27 27 new ManagerDialog().showDialog(); 28 28 } -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/FactoryDialog.java
r29854 r30346 84 84 85 85 @Override 86 86 public void pluginStatusChanged(int message) { 87 87 88 88 if (message == MESSAGE_DATABASE_LOADED) { … … 207 207 public boolean selectionListenerActivated = true; 208 208 @Override 209 209 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 210 210 211 211 if (!selectionListenerActivated) return; … … 272 272 String[] strings = { " " }; 273 273 @Override 274 274 public int getSize() { return strings.length; } 275 275 @Override 276 276 public Object getElementAt(int i) { return strings[i]; } 277 277 }); 278 278 houseList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); … … 281 281 houseList.addMouseListener(new java.awt.event.MouseAdapter() { 282 282 @Override 283 283 public void mouseClicked(java.awt.event.MouseEvent evt) { 284 284 houseListClicked(evt); 285 285 } … … 295 295 relocateButton.addActionListener(new java.awt.event.ActionListener() { 296 296 @Override 297 297 public void actionPerformed(java.awt.event.ActionEvent evt) { 298 298 relocateButtonActionPerformed(evt); 299 299 } … … 358 358 359 359 @Override 360 360 public void elementChanged(AddressElement elem) { 361 361 houseModel.notifyAllListeners(); 362 362 } 363 363 @Override 364 364 public void primitiveChanged(OsmPrimitive prim) {} 365 365 @Override 366 366 public void resonerReseted() {} 367 367 368 368 //============================================================================== … … 446 446 447 447 @Override 448 449 @Override 450 451 @Override 452 448 public void resonerReseted() { houses.clear(); } 449 @Override 450 public void primitiveChanged(OsmPrimitive prim) {} 451 @Override 452 public void elementChanged(AddressElement elem) { 453 453 if (!(elem instanceof House)) return; 454 454 House house = (House) elem; … … 482 482 483 483 @Override 484 484 public int getSize() { 485 485 if (parent == null) return 0; 486 486 return parent.getStreets().size() + metaElem.size(); … … 499 499 500 500 @Override 501 501 public Object getElementAt(int index) { 502 502 if (parent == null) return null; 503 503 … … 514 514 515 515 @Override 516 516 public void setSelectedItem(Object anItem) { 517 517 assert anItem instanceof ElementWithHouses; 518 518 selected = (ElementWithHouses) anItem; … … 521 521 522 522 @Override 523 523 public Object getSelectedItem() { 524 524 return selected; 525 525 } … … 536 536 537 537 @Override 538 538 public int getSize() { 539 539 if (streetComboBox.getSelectedItem() == null) return 0; 540 540 ElementWithHouses selected … … 555 555 556 556 @Override 557 557 public Object getElementAt(int index) { 558 558 return getHouseAt(index); 559 559 } 560 560 561 561 @Override 562 563 @Override 564 562 public void primitiveChanged(OsmPrimitive prim) {} 563 @Override 564 public void elementChanged(AddressElement elem) { 565 565 notifyAllListeners(); 566 566 } 567 567 568 568 @Override 569 569 public void resonerReseted() { 570 570 notifyAllListeners(); 571 571 } -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/parser/MvcrParser.java
r29191 r30346 212 212 213 213 static final String[] OLD_URLS = { 214 "http://web.mvcr.cz/adresa/adresy.zip", // Remove around 10.02.2011 215 "http://aplikace.mvcr.cz/adresa/adresy.zip" // Removed around 12.01.2013 214 "http://aplikace.mvcr.cz/adresa/adresy.zip" // Removed around 12.01.2013 216 215 }; 217 216 218 217 @Override 219 218 protected String getDatabaseUrl() { 220 221 // No longer add the default URL into preferences.222 //if (!Main.pref.hasKey(URL_PREFERENCES_KEY))223 // Main.pref.put(URL_PREFERENCES_KEY, URL_DEFAULT);224 219 225 220 /* If an outdated URL is found in the preferences, replace it by the
Note:
See TracChangeset
for help on using the changeset viewer.