Ticket #18979: 18979-local.patch

File 18979-local.patch, 1.3 KB (added by GerdP, 6 years ago)

solution with minimal impact

  • src/org/openstreetmap/josm/gui/io/DownloadPrimitivesWithReferrersTask.java

     
    198198     * @param msgType Type of message, see {@link JOptionPane}
    199199     * @return The Dialog object
    200200     */
    201     private static ExtendedDialog reportProblemDialog(Set<PrimitiveId> errs,
     201    public static ExtendedDialog reportProblemDialog(Set<PrimitiveId> errs,
    202202            String title, String text, String listLabel, int msgType) {
    203203        JPanel p = new JPanel(new GridBagLayout());
    204204        p.add(new HtmlPanel(text), GBC.eop());
     
    214214        txt.setBackground(p.getBackground());
    215215        txt.setColumns(40);
    216216        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(",")));
    218219        JScrollPane scroll = new JScrollPane(txt);
    219220        p.add(scroll, GBC.eop().weight(1.0, 0.0).fill(GBC.HORIZONTAL));
    220221