Ignore:
Timestamp:
2014-03-24T21:49:51+01:00 (11 years ago)
Author:
donvip
Message:

[josm_czechaddress] code cleanup, remove oldest url

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  
    170170     *
    171171     * <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>
    176174     */
    177175    public static String anglicize(String str) {
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/ManagerAction.java

    r29727 r30346  
    2424
    2525    @Override
    26         public void actionPerformed(ActionEvent e) {
     26    public void actionPerformed(ActionEvent e) {
    2727        new ManagerDialog().showDialog();
    2828    }
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/FactoryDialog.java

    r29854 r30346  
    8484
    8585    @Override
    86         public void pluginStatusChanged(int message) {
     86    public void pluginStatusChanged(int message) {
    8787
    8888        if (message == MESSAGE_DATABASE_LOADED) {
     
    207207    public boolean selectionListenerActivated = true;
    208208    @Override
    209         public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {
     209    public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {
    210210
    211211        if (!selectionListenerActivated) return;
     
    272272            String[] strings = { " " };
    273273            @Override
    274                         public int getSize() { return strings.length; }
     274            public int getSize() { return strings.length; }
    275275            @Override
    276                         public Object getElementAt(int i) { return strings[i]; }
     276            public Object getElementAt(int i) { return strings[i]; }
    277277        });
    278278        houseList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
     
    281281        houseList.addMouseListener(new java.awt.event.MouseAdapter() {
    282282            @Override
    283                         public void mouseClicked(java.awt.event.MouseEvent evt) {
     283            public void mouseClicked(java.awt.event.MouseEvent evt) {
    284284                houseListClicked(evt);
    285285            }
     
    295295        relocateButton.addActionListener(new java.awt.event.ActionListener() {
    296296            @Override
    297                         public void actionPerformed(java.awt.event.ActionEvent evt) {
     297            public void actionPerformed(java.awt.event.ActionEvent evt) {
    298298                relocateButtonActionPerformed(evt);
    299299            }
     
    358358
    359359    @Override
    360         public void elementChanged(AddressElement elem) {
     360    public void elementChanged(AddressElement elem) {
    361361        houseModel.notifyAllListeners();
    362362    }
    363363    @Override
    364         public void primitiveChanged(OsmPrimitive prim) {}
     364    public void primitiveChanged(OsmPrimitive prim) {}
    365365    @Override
    366         public void resonerReseted() {}
     366    public void resonerReseted() {}
    367367
    368368//==============================================================================
     
    446446
    447447        @Override
    448                 public void resonerReseted() { houses.clear(); }
    449         @Override
    450                 public void primitiveChanged(OsmPrimitive prim) {}
    451         @Override
    452                 public void elementChanged(AddressElement elem) {
     448        public void resonerReseted() { houses.clear(); }
     449        @Override
     450        public void primitiveChanged(OsmPrimitive prim) {}
     451        @Override
     452        public void elementChanged(AddressElement elem) {
    453453            if (!(elem instanceof House)) return;
    454454            House house = (House) elem;
     
    482482
    483483        @Override
    484                 public int getSize() {
     484        public int getSize() {
    485485            if (parent == null) return 0;
    486486            return parent.getStreets().size() + metaElem.size();
     
    499499
    500500        @Override
    501                 public Object getElementAt(int index) {
     501        public Object getElementAt(int index) {
    502502            if (parent == null) return null;
    503503
     
    514514
    515515        @Override
    516                 public void setSelectedItem(Object anItem) {
     516        public void setSelectedItem(Object anItem) {
    517517            assert anItem instanceof ElementWithHouses;
    518518            selected = (ElementWithHouses) anItem;
     
    521521
    522522        @Override
    523                 public Object getSelectedItem() {
     523        public Object getSelectedItem() {
    524524            return selected;
    525525        }
     
    536536
    537537        @Override
    538                 public int getSize() {
     538        public int getSize() {
    539539            if (streetComboBox.getSelectedItem() == null) return 0;
    540540            ElementWithHouses selected
     
    555555
    556556        @Override
    557                 public Object getElementAt(int index) {
     557        public Object getElementAt(int index) {
    558558            return getHouseAt(index);
    559559        }
    560560
    561561        @Override
    562                 public void primitiveChanged(OsmPrimitive prim) {}
    563         @Override
    564                 public void elementChanged(AddressElement elem) {
     562        public void primitiveChanged(OsmPrimitive prim) {}
     563        @Override
     564        public void elementChanged(AddressElement elem) {
    565565            notifyAllListeners();
    566566        }
    567567
    568568        @Override
    569                 public void resonerReseted() {
     569        public void resonerReseted() {
    570570            notifyAllListeners();
    571571        }
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/parser/MvcrParser.java

    r29191 r30346  
    212212
    213213    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
    216215    };
    217216
    218217    @Override
    219218    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);
    224219
    225220        /* If an outdated URL is found in the preferences, replace it by the
Note: See TracChangeset for help on using the changeset viewer.