Ignore:
Timestamp:
2012-01-09T19:26:49+01:00 (13 years ago)
Author:
akks
Message:

Utilsplugin2: forgot to do svn add; InfoPanel,InfoMode: minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java

    r26503 r27426  
    3737    private JLabel label5=new JLabel();
    3838    private JLabel label6=new JLabel();
    39     private JButton but1 = new JButton(tr("Hide this"));
    40     private JButton but2 = new JButton(tr("Hide this&older"));
     39    private JButton but1 = new JButton(tr("Delete this"));
     40    private JButton but2 = new JButton(tr("Delete this&older"));
    4141   
    4242    public InfoPanel() {
     
    101101        this.tracks=tracks;
    102102        this.trk=trk;
    103         if (wp.time==0.0)  label1.setText(tr("No timestamp"));
    104         else label1.setText(df.format(wp.getTime()));
     103        if (wp.time==0.0) { label1.setText(tr("No timestamp"));
     104            but2.setVisible(false);
     105        } else {
     106            label1.setText(df.format(wp.getTime()));
     107            but2.setVisible(true);
     108        }
    105109        if (vel>0) label2.setText(String.format("%.1f "+tr("km/h"), vel));
    106110              else label2.setText(null);
Note: See TracChangeset for help on using the changeset viewer.