Changeset 18896 in osm
- Timestamp:
- 2009-12-02T17:35:10+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/FactoryDialog.form
r15558 r18896 26 26 <Group type="103" groupAlignment="0" attributes="0"> 27 27 <Group type="102" alignment="1" attributes="0"> 28 <Component id="streetComboBox" pref="1 99" max="32767" attributes="0"/>28 <Component id="streetComboBox" pref="175" max="32767" attributes="0"/> 29 29 <EmptySpace max="-2" attributes="0"/> 30 30 <Component id="relocateButton" min="-2" max="-2" attributes="0"/> 31 31 </Group> 32 32 <Group type="102" alignment="0" attributes="0"> 33 <Component id="keepOddityCheckBox" pref="2 78" max="32767" attributes="0"/>33 <Component id="keepOddityCheckBox" pref="282" max="32767" attributes="0"/> 34 34 <EmptySpace max="-2" attributes="0"/> 35 35 </Group> -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/FactoryDialog.java
r15585 r18896 1 1 package org.openstreetmap.josm.plugins.czechaddress.gui; 2 2 3 import java.util.Set; 3 4 import org.openstreetmap.josm.plugins.czechaddress.gui.utils.HalfCookedListModel; 4 5 import org.openstreetmap.josm.plugins.czechaddress.gui.utils.HalfCookedComboBoxModel; … … 182 183 } while ((oldNum + newNum) % 2 == 1 && 183 184 houseList.getSelectedIndex() != 0); 184 185 186 // If anything goes wrong, we can silently ignore the errors. 187 // The selected item just does not get updated... 185 188 } catch (Exception exp) {} 186 189 } … … 424 427 super("nepřiřazené domy"); 425 428 Reasoner.getInstance().addListener(this); 426 427 for (AddressElement house : Reasoner.getInstance().getUnassignedElements())428 if (house instanceof House)429 houses.add((House) house);430 431 Collections.sort(houses);432 429 } 433 430 -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/intelligence/Reasoner.java
r17603 r18896 206 206 matches = new HashMap<AddressElement, Integer>(); 207 207 primMatchIndex.put(prim, matches); 208 primToUpdate.add(prim); 208 209 } 209 210 … … 233 234 matches = new HashMap<OsmPrimitive, Integer>(); 234 235 elemMatchIndex.put(elem, matches); 236 elemToUpdate.add(elem); 235 237 } 236 238 … … 313 315 private int getQ(OsmPrimitive prim, AddressElement elem) { 314 316 315 // TODO: This is a workaround. We should not be here at all.316 317 if (elemMatchIndex.get(elem) == null) return MATCH_NOMATCH; 317 318 if (primMatchIndex.get(prim) == null) return MATCH_NOMATCH; … … 394 395 * 395 396 * <p>This method is probably the single most used method of the reasoner. 396 * It allows the unique translation between map and the database.</p> 397 * It allows the unique translation between the map and the database.</p> 397 398 * 398 399 * <p>An element <i>elem</i> and primitive <i>prim</i> can be translated
Note:
See TracChangeset
for help on using the changeset viewer.