Ignore:
Timestamp:
2013-08-21T03:47:16+02:00 (11 years ago)
Author:
donvip
Message:

[josm_plugins] fix #8987 - bump min JOSM version of nearly all plugins to r6162 + code update/cleanup, fix warnings

Location:
applications/editors/josm/plugins/OsmInspectorPlugin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OsmInspectorPlugin/build.xml

    r29435 r29854  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="4394"/>
     7    <property name="plugin.main.version" value="6162"/>
    88
    99    <property name="plugin.author" value="Nikhil Shirahatti"/>
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/ImportOsmInspectorBugsAction.java

    r29449 r29854  
    77import java.awt.event.KeyEvent;
    88
    9 import javax.swing.JPanel;
    10 import javax.swing.JProgressBar;
    119import javax.swing.ProgressMonitor;
    12 import javax.swing.event.ListSelectionEvent;
    13 import javax.swing.event.ListSelectionListener;
    1410
    1511import org.openstreetmap.josm.Main;
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OSMIFeatureTracker.java

    r28935 r29854  
    1616        public OSMIFeatureTracker(
    1717                        FeatureCollection<SimpleFeatureType, SimpleFeature> featuresIn) {
    18                 hashFeatures = new HashMap();
     18                hashFeatures = new HashMap<Long, SimpleFeature>();
    1919                features = new MemoryFeatureCollection(featuresIn.getSchema());
    2020
    21                 for (Iterator it = features.iterator(); it.hasNext();) {
     21                for (Iterator<?> it = features.iterator(); it.hasNext();) {
    2222                        SimpleFeature element = (SimpleFeature) it.next();
    2323                        try {
     
    3939        public boolean mergeFeatures(
    4040                        FeatureCollection<SimpleFeatureType, SimpleFeature> newFeatures) {
    41                 for (Iterator it = newFeatures.iterator(); it.hasNext();) {
     41                for (Iterator<SimpleFeature> it = newFeatures.iterator(); it.hasNext();) {
    4242                        SimpleFeature element = (SimpleFeature) it.next();
    4343                        try {
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorLayer.java

    r28935 r29854  
    5757import org.openstreetmap.josm.plugins.osminspector.gui.OsmInspectorDialog;
    5858import org.openstreetmap.josm.tools.ImageProvider;
     59
    5960import com.vividsolutions.jts.geom.Envelope;
    6061import com.vividsolutions.jts.geom.Geometry;
     
    338339         * @throws ParseException
    339340         */
    340         @SuppressWarnings("unchecked")
    341341        public OsmInspectorLayer(GeoFabrikWFSClient wfsClient,
    342342                        ProgressMonitor monitor) throws NoSuchAuthorityCodeException,
     
    403403         * @throws IndexOutOfBoundsException
    404404         */
    405         @SuppressWarnings("unchecked")
    406405        public void loadFeatures(GeoFabrikWFSClient wfsClient)
    407406                        throws NoSuchAuthorityCodeException, FactoryException, IOException,
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorPlugin.java

    r29058 r29854  
    4545        }
    4646       
    47        
    48        
    49        
    50          /**
     47        /**
    5148     * Initialize the <code>OsmInspectorPlugin</code> object. Creates the
    5249     * <code>OsmInspectorGUI</code> and initializes the following variables with
     
    5552    private void initializePlugin() {
    5653        System.out.println("Initialized Plugin...");
    57         Shortcut shortcut = Shortcut.registerShortcut("OsmInspector", tr("Toggle: {0}", tr("Open OsmInspector")),
     54        Shortcut.registerShortcut("OsmInspector", tr("Toggle: {0}", tr("Open OsmInspector")),
    5855                KeyEvent.VK_1, Shortcut.ALT_SHIFT);
    5956        //String name = "Osm Inspector error reports";
Note: See TracChangeset for help on using the changeset viewer.