- Timestamp:
- 2009-08-23T18:36:30+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r1899 r1988 157 157 158 158 public static void search(String search, SearchMode mode, boolean caseSensitive, boolean regexSearch) { 159 if (search.startsWith("http://") || search.startsWith("ftp://") || search.startsWith("https://") 160 || search.startsWith("file:/")) { 161 SelectionWebsiteLoader loader = new SelectionWebsiteLoader(search, mode); 162 if (loader.url != null) { 163 Main.worker.execute(loader); 164 return; 165 } 166 } 159 // FIXME: This is confusing. The GUI says nothing about loading primitives from an URL. We'd like to *search* 160 // for URLs in the current data set. 161 // Disabling until a better solution is in place 162 // 163 // if (search.startsWith("http://") || search.startsWith("ftp://") || search.startsWith("https://") 164 // || search.startsWith("file:/")) { 165 // SelectionWebsiteLoader loader = new SelectionWebsiteLoader(search, mode); 166 // if (loader.url != null && loader.url.getHost() != null) { 167 // Main.worker.execute(loader); 168 // return; 169 // } 170 // } 167 171 try { 168 172 Collection<OsmPrimitive> sel = Main.main.getCurrentDataSet().getSelected();
Note:
See TracChangeset
for help on using the changeset viewer.