Changeset 22017 in osm for applications/editors/josm/plugins/DirectUpload/src
- Timestamp:
- 2010-06-25T21:30:27+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGui.java
r17532 r22017 61 61 TRACKABLE (tr("Trackable (only shared as anonymous, ordered points with timestamps)")), 62 62 IDENTIFIABLE (tr("Identifiable (shown in trace list and as identifiable, ordered points with timestamps)")); 63 63 64 64 public final String description; 65 65 visibility(String description) { 66 66 this.description = description; 67 67 } 68 68 69 69 /** 70 70 * "Converts" a given description into the actual enum. Returns null if no matching description … … 75 75 public static visibility desc2visi(Object desc) { 76 76 for (visibility v : visibility.values()) { 77 if(desc.equals( (String)v.description))77 if(desc.equals(v.description)) 78 78 return v; 79 79 } 80 80 return null; 81 81 } 82 83 public String toString() { 82 83 @Override 84 public String toString() { 84 85 return this.name().toLowerCase(); 85 86 } 86 87 } 87 88 88 89 89 90 // User for log in when uploading trace 90 91 private String username = Main.pref.get("osm-server.username"); … … 136 137 visibilityLabel.setToolTipText(tr("Defines the visibility of your trace for other OSM users.")); 137 138 for(visibility v : visibility.values()) { 138 visibilityCombo.addItem( (String)v.description);139 visibilityCombo.addItem(v.description); 139 140 } 140 141 UrlLabel visiUrl = new UrlLabel(tr("http://wiki.openstreetmap.org/wiki/Visibility_of_GPS_traces"), tr("(What does that mean?)")); … … 508 509 * Overrides the default actions. Will not close the window when upload trace is clicked 509 510 */ 510 @Override protected void buttonAction(ActionEvent evt) { 511 @Override protected void buttonAction(int buttonIndex, ActionEvent evt) { 511 512 String a = evt.getActionCommand(); 512 513 if(uploadTraceText.equals(a))
Note:
See TracChangeset
for help on using the changeset viewer.