Ignore:
Timestamp:
2010-06-25T21:30:27+02:00 (15 years ago)
Author:
jttt
Message:

Adapt to latest josm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/DirectUpload/src/org/openstreetmap/josm/plugins/DirectUpload/UploadDataGui.java

    r17532 r22017  
    6161        TRACKABLE    (tr("Trackable (only shared as anonymous, ordered points with timestamps)")),
    6262        IDENTIFIABLE (tr("Identifiable (shown in trace list and as identifiable, ordered points with timestamps)"));
    63        
     63
    6464        public final String description;
    6565        visibility(String description) {
    6666            this.description = description;
    6767        }
    68        
     68
    6969        /**
    7070         * "Converts" a given description into the actual enum. Returns null if no matching description
     
    7575        public static visibility desc2visi(Object desc) {
    7676            for (visibility v : visibility.values()) {
    77                 if(desc.equals((String)v.description))
     77                if(desc.equals(v.description))
    7878                    return v;
    7979            }
    8080            return null;
    8181        }
    82        
    83         public String toString() {
     82
     83        @Override
     84                public String toString() {
    8485            return this.name().toLowerCase();
    8586        }
    8687    }
    8788
    88        
     89
    8990    // User for log in when uploading trace
    9091    private String username = Main.pref.get("osm-server.username");
     
    136137        visibilityLabel.setToolTipText(tr("Defines the visibility of your trace for other OSM users."));
    137138        for(visibility v : visibility.values()) {
    138                 visibilityCombo.addItem((String)v.description);
     139                visibilityCombo.addItem(v.description);
    139140        }
    140141        UrlLabel visiUrl = new UrlLabel(tr("http://wiki.openstreetmap.org/wiki/Visibility_of_GPS_traces"), tr("(What does that mean?)"));
     
    508509     * Overrides the default actions. Will not close the window when upload trace is clicked
    509510     */
    510     @Override protected void buttonAction(ActionEvent evt) {
     511    @Override protected void buttonAction(int buttonIndex, ActionEvent evt) {
    511512        String a = evt.getActionCommand();
    512513        if(uploadTraceText.equals(a))
Note: See TracChangeset for help on using the changeset viewer.