Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r12620 r12630 51 51 import org.openstreetmap.josm.data.osm.OsmPrimitive; 52 52 import org.openstreetmap.josm.gui.ExtendedDialog; 53 import org.openstreetmap.josm.gui.MainApplication; 54 import org.openstreetmap.josm.gui.MapFrame; 53 55 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 54 56 import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSException; … … 696 698 public void receiveSearchResult(DataSet ds, Collection<OsmPrimitive> result, int foundMatches, SearchSetting setting) { 697 699 ds.setSelected(result); 700 MapFrame map = MainApplication.getMap(); 698 701 if (foundMatches == 0) { 699 702 final String msg; … … 710 713 msg = null; 711 714 } 712 if ( Main.map != null) {713 Main.map.statusLine.setHelpText(msg);715 if (map != null) { 716 map.statusLine.setHelpText(msg); 714 717 } 715 718 if (!GraphicsEnvironment.isHeadless()) { … … 722 725 } 723 726 } else { 724 Main.map.statusLine.setHelpText(tr("Found {0} matches", foundMatches));727 map.statusLine.setHelpText(tr("Found {0} matches", foundMatches)); 725 728 } 726 729 }
Note:
See TracChangeset
for help on using the changeset viewer.