Changeset 29058 in osm for applications/editors/josm/plugins/OsmInspectorPlugin/src
- Timestamp:
- 2012-12-09T16:07:26+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorPlugin.java
r28935 r29058 6 6 import java.awt.event.MouseEvent; 7 7 import java.awt.event.MouseListener; 8 import java.util.ArrayList;9 8 import java.util.List; 10 9 … … 13 12 import org.openstreetmap.josm.data.Preferences.PreferenceChangeEvent; 14 13 import org.openstreetmap.josm.data.Preferences.PreferenceChangedListener; 15 import org.openstreetmap.josm.data.coor.EastNorth;16 import org.openstreetmap.josm.data.coor.LatLon;17 14 import org.openstreetmap.josm.gui.JosmUserIdentityManager; 18 15 import org.openstreetmap.josm.gui.MapFrame; … … 27 24 import org.openstreetmap.josm.plugins.Plugin; 28 25 import org.openstreetmap.josm.plugins.PluginInformation; 29 import org.openstreetmap.josm.plugins.osminspector.gui.OsmInspectorDialog;30 26 import org.openstreetmap.josm.tools.Shortcut; 31 27 … … 39 35 40 36 /** The bounding box from where the MapDust bugs are down-loaded */ 41 private Bounds bBox;37 //private Bounds bBox; 42 38 43 39 private OsmInspectorLayer inspectorLayer; … … 61 57 Shortcut shortcut = Shortcut.registerShortcut("OsmInspector", tr("Toggle: {0}", tr("Open OsmInspector")), 62 58 KeyEvent.VK_1, Shortcut.ALT_SHIFT); 63 String name = "Osm Inspector error reports";64 String tooltip = "Activates the Osm Inspector reporter plugin";59 //String name = "Osm Inspector error reports"; 60 //String tooltip = "Activates the Osm Inspector reporter plugin"; 65 61 66 62 /* add default values for static variables */ … … 137 133 // 138 134 public void mouseClicked(MouseEvent arg0) { 139 inspectorLayer.selectFeatures(arg0.getX(), arg0.getY()); 135 if (inspectorLayer != null) { 136 inspectorLayer.selectFeatures(arg0.getX(), arg0.getY()); 137 } 140 138 } 141 139
Note:
See TracChangeset
for help on using the changeset viewer.