Changeset 33252 in osm for applications
- Timestamp:
- 2017-04-17T01:42:45+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/czechaddress
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/czechaddress/build.xml
r32680 r33252 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 0580"/>7 <property name="plugin.main.version" value="11713"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/CzechAddressPlugin.java
r32566 r33252 134 134 135 135 newFrame.addToggleDialog(FactoryDialog.getInstance()); 136 newFrame.addMapMode(new IconToggleButton(new FactoryAction( newFrame)));136 newFrame.addMapMode(new IconToggleButton(new FactoryAction())); 137 137 } 138 138 -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/StringUtils.java
r32566 r33252 134 134 for (int i = 0; i < charr.length; i++) { 135 135 ch = charr[i]; 136 if ((last >= 'a' ) && (last <= 'ž') ||137 (last >= 'A' ) && (last <= 'Ž'))136 if ((last >= 'a' && last <= 'ž') || 137 (last >= 'A' && last <= 'Ž')) 138 138 ch = Character.toLowerCase(ch); 139 139 else -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/FactoryAction.java
r32566 r33252 34 34 * Default constructor, which sets the title, shortcut, ... 35 35 */ 36 public FactoryAction( MapFrame frame) {36 public FactoryAction() { 37 37 super("Sputit továrnu na adresy", 38 38 "envelope-cursor.png", … … 41 41 "Sputit továrnu na adresy", 42 42 KeyEvent.VK_K, Shortcut.ALT_SHIFT), 43 frame,44 43 ImageProvider.getCursor("crosshair", "envelope-star-small")); 45 44 } -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/addressdatabase/AddressElement.java
r33029 r33252 3 3 4 4 import java.util.List; 5 import java.util.Objects; 5 6 6 7 import org.openstreetmap.josm.data.osm.Node; … … 147 148 * {@code true} otherwise. 148 149 */ 149 public boolean equals(AddressElement elem) { 150 if (elem == null) 151 return false; 152 else 153 return name.equals(elem.name) && this.parent == elem.parent; 150 @Override 151 public boolean equals(Object elem) { 152 return this == elem || (elem instanceof AddressElement 153 && name.equals(((AddressElement) elem).name) 154 && parent == ((AddressElement) elem).parent); 155 } 156 157 @Override 158 public int hashCode() { 159 return Objects.hash(name, parent); 154 160 } 155 161 -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/FactoryDialog.java
r33251 r33252 388 388 //============================================================================== 389 389 390 private class StreetListRenderer extends DefaultListCellRenderer {390 private static class StreetListRenderer extends DefaultListCellRenderer { 391 391 @Override 392 392 public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { … … 408 408 //============================================================================== 409 409 410 private class HouseListRenderer extends DefaultListCellRenderer {410 private static class HouseListRenderer extends DefaultListCellRenderer { 411 411 412 412 Font plainFont = null; … … 446 446 //============================================================================== 447 447 448 private class AllStreetProvider extends ElementWithHouses {448 private static class AllStreetProvider extends ElementWithHouses { 449 449 AllStreetProvider() { 450 450 super("všechny domy"); -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/ManagerDialog.java
r32566 r33252 84 84 } 85 85 86 private class DatabaseModel extends HalfCookedTreeModel {86 private static class DatabaseModel extends HalfCookedTreeModel { 87 87 88 88 @Override … … 376 376 // End of variables declaration//GEN-END:variables 377 377 378 private class AddressElementRenderer extends DefaultTableCellRenderer {378 private static class AddressElementRenderer extends DefaultTableCellRenderer { 379 379 380 380 AddressElementRenderer() {} … … 389 389 } 390 390 391 private class RenameModel<Element> implements TableModel {391 private static class RenameModel<Element> implements TableModel { 392 392 393 393 List<Element> elems = new ArrayList<>(); -
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/intelligence/Capitalizator.java
r32566 r33252 59 59 } 60 60 61 private class StreetMatcher implements Callable<OsmPrimitive> {61 private static class StreetMatcher implements Callable<OsmPrimitive> { 62 62 63 63 private AddressElement elem;
Note:
See TracChangeset
for help on using the changeset viewer.