Changeset 6883 in josm for trunk/src/org/openstreetmap/josm/gui/download
- Timestamp:
- 2014-02-25T01:31:24+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/download
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/BookmarkSelection.java
r6380 r6883 47 47 /** displays information about the current download area */ 48 48 private JMultilineLabel lblCurrentDownloadArea; 49 final privateJosmTextArea bboxDisplay = new JosmTextArea();49 private final JosmTextArea bboxDisplay = new JosmTextArea(); 50 50 /** the add action */ 51 51 private AddAction actAdd; -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r6509 r6883 48 48 49 49 /** 50 * 50 * Dialog displayed to download OSM and/or GPS data from OSM server. 51 51 */ 52 52 public class DownloadDialog extends JDialog { 53 53 /** the unique instance of the download dialog */ 54 static privateDownloadDialog instance;54 private static DownloadDialog instance; 55 55 56 56 /** … … 59 59 * @return the unique instance of the download dialog 60 60 */ 61 static public DownloadDialog getInstance() {61 public static DownloadDialog getInstance() { 62 62 if (instance == null) { 63 63 instance = new DownloadDialog(Main.parent); -
trunk/src/org/openstreetmap/josm/gui/download/PlaceSelection.java
r6822 r6883 70 70 private JTable tblSearchResults; 71 71 private DownloadDialog parent; 72 private final static Server[] servers = new Server[]{ 73 new Server("Nominatim","http://nominatim.openstreetmap.org/search?format=xml&q=",tr("Class Type"),tr("Bounds")), 74 //new Server("Namefinder","http://gazetteer.openstreetmap.org/namefinder/search.xml?find=",tr("Near"),trc("placeselection", "Zoom")) 72 private static final Server[] SERVERS = new Server[] { 73 new Server("Nominatim","http://nominatim.openstreetmap.org/search?format=xml&q=",tr("Class Type"),tr("Bounds")) 75 74 }; 76 private final JosmComboBox server = new JosmComboBox( servers);75 private final JosmComboBox server = new JosmComboBox(SERVERS); 77 76 78 77 private static class Server { … … 101 100 lpanel.add(new JLabel(tr("Choose the server for searching:"))); 102 101 lpanel.add(server); 103 String s = Main.pref.get("namefinder.server", servers[0].name);104 for (int i = 0; i < servers.length; ++i) {105 if ( servers[i].name.equals(s)) {102 String s = Main.pref.get("namefinder.server", SERVERS[0].name); 103 for (int i = 0; i < SERVERS.length; ++i) { 104 if (SERVERS[i].name.equals(s)) { 106 105 server.setSelectedIndex(i); 107 106 } … … 172 171 * Data storage for search results. 173 172 */ 174 static privateclass SearchResult {173 private static class SearchResult { 175 174 public String name; 176 175 public String info; … … 450 449 // column 2 - Near 451 450 col3 = new TableColumn(2); 452 col3.setHeaderValue( servers[0].thirdcol);451 col3.setHeaderValue(SERVERS[0].thirdcol); 453 452 col3.setResizable(true); 454 453 col3.setPreferredWidth(100); … … 458 457 // column 3 - Zoom 459 458 col4 = new TableColumn(3); 460 col4.setHeaderValue( servers[0].fourthcol);459 col4.setHeaderValue(SERVERS[0].fourthcol); 461 460 col4.setResizable(true); 462 461 col4.setPreferredWidth(50);
Note:
See TracChangeset
for help on using the changeset viewer.