Changeset 23192 in osm for applications/editors/josm/plugins/waypoint_search
- Timestamp:
- 2010-09-15T18:59:53+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch/SelectWaypointDialog.java
r23190 r23192 63 63 64 64 65 66 67 68 69 70 71 72 73 74 75 76 77 65 public void updateSearchResults(){ 66 String searchfor = ""; 67 listModel.clear(); 68 SearchResultObjectCache.clear(); 69 if (!first_time_search) { 70 searchfor = searchPattern.getText(); 71 } 72 for (Iterator<Marker> i = engine.searchGpxWaypoints(searchfor).iterator(); i.hasNext();) { 73 Marker marker = i.next(); 74 listModel.addElement(marker.getText()); 75 SearchResultObjectCache.add(marker); 76 } 77 } 78 78 79 79 … … 91 91 92 92 93 94 95 96 93 @Override 94 public void keyTyped(KeyEvent arg0) { 95 first_time_search = false; 96 } 97 97 98 98 -
applications/editors/josm/plugins/waypoint_search/src/org/openstreetmap/josm/plugins/waypointSearch/WaypointSearchPlugin.java
r23190 r23192 29 29 } 30 30 31 32 33 34 35 36 37 38 39 40 41 42 31 32 @Override 33 public void layerAdded(Layer newLayer) { 34 //add dialog 35 if (Main.map.getToggleDialog(SelectWaypointDialog.class)==null) { 36 Main.map.addToggleDialog(waypointDialog); 37 } 38 //update search 39 if (engine.gpxLayersExist()) { 40 waypointDialog.updateSearchResults(); 41 } 42 } 43 43 44 44
Note:
See TracChangeset
for help on using the changeset viewer.