Changeset 7882 in josm for trunk/src/org
- Timestamp:
- 2014-12-25T15:07:44+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/NotesDialog.java
r7852 r7882 227 227 String toolTipText = userName + " @ " + sdf.format(note.getCreatedAt()); 228 228 JLabel jlabel = (JLabel)comp; 229 jlabel.setText( text);229 jlabel.setText(note.getId() + ": " +text); 230 230 ImageIcon icon; 231 231 if (note.getId() < 0) { -
trunk/src/org/openstreetmap/josm/gui/layer/NoteLayer.java
r7852 r7882 111 111 if (noteData.getSelectedNote() != null) { 112 112 StringBuilder sb = new StringBuilder("<html>"); 113 sb.append(tr("Note")); 114 sb.append(" " + noteData.getSelectedNote().getId()); 113 115 List<NoteComment> comments = noteData.getSelectedNote().getComments(); 114 String sep = "";115 116 SimpleDateFormat dayFormat = new SimpleDateFormat("MMM d, yyyy"); 116 117 for (NoteComment comment : comments) { … … 118 119 //closing a note creates an empty comment that we don't want to show 119 120 if (commentText != null && commentText.trim().length() > 0) { 120 sb.append( sep);121 sb.append("<hr/>"); 121 122 String userName = XmlWriter.encode(comment.getUser().getName()); 122 123 if (userName == null || userName.trim().length() == 0) { … … 131 132 sb.append(htmlText); 132 133 } 133 sep = "<hr/>";134 134 } 135 135 sb.append("</html>");
Note:
See TracChangeset
for help on using the changeset viewer.