Changeset 3208 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-04-25T15:31:07+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java
r3128 r3208 76 76 77 77 public class GpxLayer extends Layer { 78 79 private static final String PREF_DOWNLOAD_ALONG_TRACK_DISTANCE = "gpxLayer.downloadAlongTrack.distance"; 80 private static final String PREF_DOWNLOAD_ALONG_TRACK_AREA = "gpxLayer.downloadAlongTrack.distance"; 81 78 82 public GpxData data; 79 83 protected static final double PHI = Math.toRadians(15); … … 871 875 } 872 876 JList buffer = new JList(s); 877 buffer.setSelectedIndex(Main.pref.getInteger(PREF_DOWNLOAD_ALONG_TRACK_DISTANCE, 0)); 873 878 msg.add(buffer, GBC.eol()); 874 879 msg.add(new JLabel(tr("Maximum area per request:")), GBC.eol()); … … 878 883 } 879 884 JList maxRect = new JList(s); 885 maxRect.setSelectedIndex(Main.pref.getInteger(PREF_DOWNLOAD_ALONG_TRACK_AREA, 0)); 880 886 msg.add(maxRect, GBC.eol()); 881 887 … … 894 900 // continue 895 901 } 902 903 Main.pref.putInteger(PREF_DOWNLOAD_ALONG_TRACK_DISTANCE, buffer.getSelectedIndex()); 904 Main.pref.putInteger(PREF_DOWNLOAD_ALONG_TRACK_AREA, maxRect.getSelectedIndex()); 896 905 897 906 /*
Note:
See TracChangeset
for help on using the changeset viewer.