Changeset 8226 in josm


Ignore:
Timestamp:
2015-04-18T23:03:06+02:00 (4 years ago)
Author:
simon04
Message:

fix #10600 - History dialog: include imagery_used tag value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java

    r7678 r8226  
    4545    private UrlLabel lblChangeset;
    4646    private JPanel pnlChangesetSource;
     47    private JPanel pnlChangesetImageryUsed;
    4748    private JLabel lblSource;
     49    private JLabel lblImageryUsed;
    4850    private JTextArea lblChangesetComment;
    4951    private JTextArea lblChangesetSource;
     52    private JTextArea lblChangesetImageryUsed;
    5053
    5154    protected static JTextArea buildTextArea(String tooltip) {
     
    7174        JPanel pnl = new JPanel(new GridBagLayout());
    7275        pnl.add(label, GBC.std().anchor(GBC.NORTHWEST));
    73         pnl.add(textArea, GBC.eol().fill());
     76        pnl.add(textArea, GBC.eol().insets(2, 0, 0, 0).fill());
    7477        return pnl;
    7578    }
     
    9093        lblChangesetComment = buildTextArea(tr("Changeset comment"));
    9194        lblChangesetSource = buildTextArea(tr("Changeset source"));
     95        lblChangesetImageryUsed = buildTextArea(tr("Imagery used"));
    9296
    9397        lblSource = buildLabel(tr("<b>Source</b>:"), tr("Changeset source"), lblChangesetSource);
     98        lblImageryUsed = buildLabel(tr("<b>Imagery</b>:"), tr("Imagery used"), lblChangesetImageryUsed);
    9499        pnlChangesetSource = buildTextPanel(lblSource, lblChangesetSource);
     100        pnlChangesetImageryUsed = buildTextPanel(lblImageryUsed, lblChangesetImageryUsed);
    95101
    96102        setLayout(new GridBagLayout());
     
    108114        gc.gridy = 3;
    109115        add(pnlChangesetSource, gc);
     116        gc.gridy = 4;
     117        add(pnlChangesetImageryUsed, gc);
    110118    }
    111119
     
    220228        updateText(cs, "comment", lblChangesetComment, null, oppCs, lblChangesetComment);
    221229        updateText(cs, "source", lblChangesetSource, lblSource, oppCs, pnlChangesetSource);
     230        updateText(cs, "imagery_used", lblChangesetImageryUsed, lblImageryUsed, oppCs, pnlChangesetImageryUsed);
    222231    }
    223232
Note: See TracChangeset for help on using the changeset viewer.