Ignore:
Timestamp:
2019-09-26T13:14:00+02:00 (5 years ago)
Author:
donvip
Message:

see #josm17933 - see #josm17976 - upgrade to GeoTools 22.0

Location:
applications/editors/josm/plugins/OsmInspectorPlugin
Files:
7 added
8 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OsmInspectorPlugin/.classpath

    r34143 r35123  
    88        <classpathentry kind="lib" path="lib/commons-collections-3.2.2.jar"/>
    99        <classpathentry kind="lib" path="lib/commons-jxpath-1.3.jar"/>
    10         <classpathentry kind="lib" path="lib/gt-app-schema-resolver-19.0.jar">
     10        <classpathentry kind="lib" path="lib/gt-app-schema-resolver-22.0.jar">
    1111                <attributes>
    1212                        <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/>
    1313                </attributes>
    1414        </classpathentry>
    15         <classpathentry kind="lib" path="lib/gt-cql-19.0.jar">
     15        <classpathentry kind="lib" path="lib/gt-cql-22.0.jar">
    1616                <attributes>
    1717                        <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/>
    1818                </attributes>
    1919        </classpathentry>
    20         <classpathentry kind="lib" path="lib/gt-render-19.0.jar">
     20        <classpathentry kind="lib" path="lib/gt-render-22.0.jar">
    2121                <attributes>
    2222                        <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/>
    2323                </attributes>
    2424        </classpathentry>
    25         <classpathentry kind="lib" path="lib/gt-referencing3D-19.0.jar">
     25        <classpathentry kind="lib" path="lib/gt-wfs-ng-22.0.jar">
    2626                <attributes>
    2727                        <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/>
    2828                </attributes>
    2929        </classpathentry>
    30         <classpathentry kind="lib" path="lib/gt-wfs-ng-19.0.jar">
     30        <classpathentry kind="lib" path="lib/gt-xml-22.0.jar">
    3131                <attributes>
    3232                        <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/>
    3333                </attributes>
    3434        </classpathentry>
    35         <classpathentry kind="lib" path="lib/gt-xml-19.0.jar">
     35        <classpathentry kind="lib" path="lib/gt-xsd-core-22.0.jar">
    3636                <attributes>
    3737                        <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/>
    3838                </attributes>
    3939        </classpathentry>
    40         <classpathentry kind="lib" path="lib/gt-xsd-core-19.0.jar">
    41                 <attributes>
    42                         <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/>
    43                 </attributes>
    44         </classpathentry>
    45         <classpathentry kind="lib" path="lib/gt-xsd-wfs-19.0.jar">
     40        <classpathentry kind="lib" path="lib/gt-xsd-wfs-22.0.jar">
    4641                <attributes>
    4742                        <attribute name="javadoc_location" value="http://docs.geotools.org/stable/javadocs/"/>
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/GeoFabrikWFSClient.java

    r34143 r35123  
    1212import org.geotools.data.FeatureSource;
    1313import org.geotools.factory.CommonFactoryFinder;
    14 import org.geotools.factory.GeoTools;
    1514import org.geotools.feature.FeatureCollection;
    1615import org.geotools.geometry.jts.ReferencedEnvelope;
     
    8079                // Ask WFS service for typeName data constrained by bboxRef
    8180                //
    82                 FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(GeoTools
    83                                 .getDefaultHints());
     81                FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    8482                Filter filterBB = ff.bbox(ff.property(geomName), bboxRef);
    8583                FeatureCollection<SimpleFeatureType, SimpleFeature> features = source
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/ImportOsmInspectorBugsAction.java

    r33793 r35123  
    1919import org.openstreetmap.josm.tools.Shortcut;
    2020
    21 import com.vividsolutions.jts.io.ParseException;
     21import org.locationtech.jts.io.ParseException;
    2222
    2323public class ImportOsmInspectorBugsAction extends JosmAction {
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorLayer.java

    r34538 r35123  
    6060import org.openstreetmap.josm.tools.Logging;
    6161
    62 import com.vividsolutions.jts.geom.Envelope;
    63 import com.vividsolutions.jts.geom.Geometry;
    64 import com.vividsolutions.jts.io.ParseException;
     62import org.locationtech.jts.geom.Envelope;
     63import org.locationtech.jts.geom.Geometry;
     64import org.locationtech.jts.io.ParseException;
    6565
    6666public class OsmInspectorLayer extends Layer {
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/gui/OsmInspectorDialog.java

    r33793 r35123  
    3232import org.openstreetmap.josm.tools.Shortcut;
    3333
    34 import com.vividsolutions.jts.geom.Geometry;
    35 import com.vividsolutions.jts.geom.Point;
     34import org.locationtech.jts.geom.Geometry;
     35import org.locationtech.jts.geom.Point;
    3636
    3737public class OsmInspectorDialog extends ToggleDialog implements LayerChangeListener, ActiveLayerChangeListener {
     
    233233        @Override
    234234        public void layerAdded(LayerAddEvent e) {
    235                 if (layer instanceof OsmInspectorLayer) {
     235                if (layer != null) {
    236236                        refreshModel();
    237237                        refreshBugList();
     
    241241        @Override
    242242        public void layerRemoving(LayerRemoveEvent e) {
    243                 if (layer instanceof OsmInspectorLayer) {
     243                if (layer != null) {
    244244                        bugsList.clearSelection();
    245245                        model.clear();
Note: See TracChangeset for help on using the changeset viewer.