Changeset 29854 in osm for applications/editors/josm/plugins/OsmInspectorPlugin/src/org
- Timestamp:
- 2013-08-21T03:47:16+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/ImportOsmInspectorBugsAction.java
r29449 r29854 7 7 import java.awt.event.KeyEvent; 8 8 9 import javax.swing.JPanel;10 import javax.swing.JProgressBar;11 9 import javax.swing.ProgressMonitor; 12 import javax.swing.event.ListSelectionEvent;13 import javax.swing.event.ListSelectionListener;14 10 15 11 import org.openstreetmap.josm.Main; -
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OSMIFeatureTracker.java
r28935 r29854 16 16 public OSMIFeatureTracker( 17 17 FeatureCollection<SimpleFeatureType, SimpleFeature> featuresIn) { 18 hashFeatures = new HashMap(); 18 hashFeatures = new HashMap<Long, SimpleFeature>(); 19 19 features = new MemoryFeatureCollection(featuresIn.getSchema()); 20 20 21 for (Iterator it = features.iterator(); it.hasNext();) { 21 for (Iterator<?> it = features.iterator(); it.hasNext();) { 22 22 SimpleFeature element = (SimpleFeature) it.next(); 23 23 try { … … 39 39 public boolean mergeFeatures( 40 40 FeatureCollection<SimpleFeatureType, SimpleFeature> newFeatures) { 41 for (Iterator it = newFeatures.iterator(); it.hasNext();) { 41 for (Iterator<SimpleFeature> it = newFeatures.iterator(); it.hasNext();) { 42 42 SimpleFeature element = (SimpleFeature) it.next(); 43 43 try { -
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorLayer.java
r28935 r29854 57 57 import org.openstreetmap.josm.plugins.osminspector.gui.OsmInspectorDialog; 58 58 import org.openstreetmap.josm.tools.ImageProvider; 59 59 60 import com.vividsolutions.jts.geom.Envelope; 60 61 import com.vividsolutions.jts.geom.Geometry; … … 338 339 * @throws ParseException 339 340 */ 340 @SuppressWarnings("unchecked")341 341 public OsmInspectorLayer(GeoFabrikWFSClient wfsClient, 342 342 ProgressMonitor monitor) throws NoSuchAuthorityCodeException, … … 403 403 * @throws IndexOutOfBoundsException 404 404 */ 405 @SuppressWarnings("unchecked")406 405 public void loadFeatures(GeoFabrikWFSClient wfsClient) 407 406 throws NoSuchAuthorityCodeException, FactoryException, IOException, -
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorPlugin.java
r29058 r29854 45 45 } 46 46 47 48 49 50 /** 47 /** 51 48 * Initialize the <code>OsmInspectorPlugin</code> object. Creates the 52 49 * <code>OsmInspectorGUI</code> and initializes the following variables with … … 55 52 private void initializePlugin() { 56 53 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")), 58 55 KeyEvent.VK_1, Shortcut.ALT_SHIFT); 59 56 //String name = "Osm Inspector error reports";
Note:
See TracChangeset
for help on using the changeset viewer.