Changeset 9858 in josm


Ignore:
Timestamp:
2016-02-23T19:46:06+01:00 (9 years ago)
Author:
simon04
Message:

fix #12268 - Allow copying note text from toggle dialog

Location:
trunk/src/org/openstreetmap/josm/data/notes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/notes/Note.java

    r9371 r9858  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.data.notes;
     3
     4import static org.openstreetmap.josm.tools.I18n.tr;
    35
    46import java.util.ArrayList;
     
    115117        return id == note.id;
    116118    }
     119
     120    @Override
     121    public String toString() {
     122        return tr("Note") + " " + id + ": " + getFirstComment();
     123    }
    117124}
  • trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java

    r9569 r9858  
    7575        return isNew;
    7676    }
     77
     78    @Override
     79    public String toString() {
     80        return text;
     81    }
    7782}
Note: See TracChangeset for help on using the changeset viewer.