Ignore:
Timestamp:
2009-12-20T01:51:24+01:00 (16 years ago)
Author:
pieren
Message:

Add a 25m crosspiece ref and the possibility to change the source in the UploadHook

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java

    r18722 r19149  
    1313import javax.swing.JPanel;
    1414import javax.swing.JScrollPane;
     15import javax.swing.JTextField;
    1516
    1617import org.openstreetmap.josm.Main;
     
    7879            JPanel p = new JPanel(new GridBagLayout());
    7980            OsmPrimitivRenderer renderer = new OsmPrimitivRenderer();
    80             p.add(new JLabel(tr("Auto-tag source added:")), GBC.eol());
     81            p.add(new JLabel(tr("Add \"source=...\" to elements?")), GBC.eol());
     82            JTextField tf = new JTextField(CadastrePlugin.source);
     83            p.add(tf, GBC.eol());
    8184            JList l = new JList(sel.toArray());
    8285            l.setCellRenderer(renderer);
     
    8689                   JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
    8790            if (bContinue)
    88                 Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", CadastrePlugin.source));
     91                Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", tf.getText()));
    8992        }
    9093
    9194    }
    9295}
     96
Note: See TracChangeset for help on using the changeset viewer.