Ignore:
Timestamp:
2014-03-24T17:04:25+01:00 (11 years ago)
Author:
donvip
Message:

[josm_imagery_xml_bounds] code cleanup, support of https links

Location:
applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/ImageryXmlBoundsPlugin.java

    r29461 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds;
    173
     
    8369        }
    8470       
    85     /* (non-Javadoc)
    86      * @see org.openstreetmap.josm.plugins.Plugin#getPreferenceSetting()
    87      */
    8871    @Override
    8972    public PreferenceSetting getPreferenceSetting() {
     
    9174    }
    9275
    93         /* (non-Javadoc)
    94          * @see org.openstreetmap.josm.plugins.Plugin#mapFrameInitialized(org.openstreetmap.josm.gui.MapFrame, org.openstreetmap.josm.gui.MapFrame)
    95          */
    9676        @Override
    9777        public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/XmlBoundsConstants.java

    r27015 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds;
    173
     
    4329     * XML file location.
    4430     */
    45     public static final String XML_LOCATION = "http://josm.openstreetmap.de/maps";
     31    public static final String XML_LOCATION = "https?://josm.openstreetmap.de/maps";
    4632
    4733        /**
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/XmlBoundsLayer.java

    r27015 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds;
    173
     
    4430public class XmlBoundsLayer extends OsmDataLayer implements LayerChangeListener, XmlBoundsConstants {
    4531
    46         /* (non-Javadoc)
    47          * @see org.openstreetmap.josm.gui.layer.OsmDataLayer#getMenuEntries()
    48          */
    4932        @Override
    5033        public Action[] getMenuEntries() {
     
    8972        }
    9073       
    91         /* (non-Javadoc)
    92          * @see org.openstreetmap.josm.gui.layer.OsmDataLayer#isMergable(org.openstreetmap.josm.gui.layer.Layer)
    93          */
    9474        @Override
    9575        public boolean isMergable(Layer other) {
     
    9777        }
    9878
    99         /* (non-Javadoc)
    100          * @see org.openstreetmap.josm.gui.layer.OsmDataLayer#getIcon()
    101          */
    10279        @Override
    10380        public Icon getIcon() {
     
    10582        }
    10683
    107         /* (non-Javadoc)
    108          * @see org.openstreetmap.josm.gui.layer.OsmDataLayer#requiresUploadToServer()
    109          */
    11084        @Override
    11185        public boolean requiresUploadToServer() {
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/XmlBoundsPreferenceSetting.java

    r29500 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds;
    173
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/BoundsLayerSaveAction.java

    r27921 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.actions;
    173
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/BoundsLayerSaveAsAction.java

    r28657 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.actions;
    173
     
    5743        }
    5844
    59         /* (non-Javadoc)
    60          * @see org.openstreetmap.josm.gui.layer.Layer.LayerSaveAsAction#actionPerformed(java.awt.event.ActionEvent)
    61          */
    6245        @Override
    6346        public void actionPerformed(ActionEvent e) {
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/ComputeBoundsAction.java

    r27013 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.actions;
    173
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/EditEntriesAction.java

    r27863 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.actions;
    173
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/ShowBoundsAction.java

    r29461 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.actions;
    173
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/ShowBoundsSelectionAction.java

    r27013 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.actions;
    173
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/actions/downloadtask/DownloadXmlBoundsTask.java

    r29710 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.actions.downloadtask;
    173
     
    6753        }
    6854       
    69         /* (non-Javadoc)
    70          * @see org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask.DownloadTask#getEditLayer()
    71          */
    7255        @Override
    7356        protected OsmDataLayer getEditLayer() {
     
    7659        }
    7760
    78         /* (non-Javadoc)
    79          * @see org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask.DownloadTask#getNumDataLayers()
    80          */
    8161        @Override
    8262        protected int getNumDataLayers() {
     
    9171        }
    9272
    93         /* (non-Javadoc)
    94          * @see org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask.DownloadTask#getFirstDataLayer()
    95          */
    9673        @Override
    9774        protected OsmDataLayer getFirstDataLayer() {
     
    10481        }
    10582
    106         /* (non-Javadoc)
    107          * @see org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask.DownloadTask#createNewLayer()
    108          */
    10983        @Override
    11084        protected OsmDataLayer createNewLayer() {
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/data/XmlBoundsConverter.java

    r30203 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.data;
    173
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/io/JosmServerLocationReader.java

    r26896 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.io;
    173
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/io/ValidatingImageryReader.java

    r26896 r30342  
    1 /**
    2  *
    3  */
     1// License: GPL. For details, see LICENSE file.
    42package org.openstreetmap.josm.plugins.imageryxmlbounds.io;
    53
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/io/XmlBoundsExporter.java

    r26896 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.io;
    173
     
    3925        }
    4026
    41         /* (non-Javadoc)
    42          * @see org.openstreetmap.josm.io.FileExporter#exportData(java.io.File, org.openstreetmap.josm.gui.layer.Layer)
    43          */
    4427        @Override
    4528        public void exportData(File file, Layer layer) throws IOException {
  • applications/editors/josm/plugins/imagery-xml-bounds/src/org/openstreetmap/josm/plugins/imageryxmlbounds/io/XmlBoundsImporter.java

    r27015 r30342  
    1 //    JOSM Imagery XML Bounds plugin.
    2 //    Copyright (C) 2011 Don-vip
    3 //
    4 //    This program is free software: you can redistribute it and/or modify
    5 //    it under the terms of the GNU General Public License as published by
    6 //    the Free Software Foundation, either version 3 of the License, or
    7 //    (at your option) any later version.
    8 //
    9 //    This program is distributed in the hope that it will be useful,
    10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    12 //    GNU General Public License for more details.
    13 //
    14 //    You should have received a copy of the GNU General Public License
    15 //    along with this program.  If not, see <http://www.gnu.org/licenses/>.
     1// License: GPL. For details, see LICENSE file.
    162package org.openstreetmap.josm.plugins.imageryxmlbounds.io;
    173
     
    10288    }
    10389       
    104         /* (non-Javadoc)
    105          * @see org.openstreetmap.josm.io.FileImporter#importData(java.io.File, org.openstreetmap.josm.gui.progress.ProgressMonitor)
    106          */
    10790        @Override
    10891        public void importData(final File file, ProgressMonitor progressMonitor)
     
    11699    }
    117100
    118         /* (non-Javadoc)
    119          * @see org.openstreetmap.josm.io.FileImporter#importData(java.util.List, org.openstreetmap.josm.gui.progress.ProgressMonitor)
    120          */
    121101        @Override
    122102        public void importData(List<File> files, ProgressMonitor progressMonitor)
Note: See TracChangeset for help on using the changeset viewer.