Ticket #18979: 18979-local.patch
| File 18979-local.patch, 1.3 KB (added by , 6 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java
198 198 * @param msgType Type of message, see {@link JOptionPane} 199 199 * @return The Dialog object 200 200 */ 201 p rivatestatic ExtendedDialog reportProblemDialog(Set<PrimitiveId> errs,201 public static ExtendedDialog reportProblemDialog(Set<PrimitiveId> errs, 202 202 String title, String text, String listLabel, int msgType) { 203 203 JPanel p = new JPanel(new GridBagLayout()); 204 204 p.add(new HtmlPanel(text), GBC.eop()); … … 214 214 txt.setBackground(p.getBackground()); 215 215 txt.setColumns(40); 216 216 txt.setRows(1); 217 txt.setText(errs.stream().map(String::valueOf).collect(Collectors.joining(", "))); 217 txt.setText(errs.stream().map(pid -> pid.getType().getAPIName().substring(0, 1) + pid.getUniqueId()) 218 .collect(Collectors.joining(","))); 218 219 JScrollPane scroll = new JScrollPane(txt); 219 220 p.add(scroll, GBC.eop().weight(1.0, 0.0).fill(GBC.HORIZONTAL)); 220 221
