Changeset 19149 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java
- Timestamp:
- 2009-12-20T01:51:24+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java
r18722 r19149 13 13 import javax.swing.JPanel; 14 14 import javax.swing.JScrollPane; 15 import javax.swing.JTextField; 15 16 16 17 import org.openstreetmap.josm.Main; … … 78 79 JPanel p = new JPanel(new GridBagLayout()); 79 80 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()); 81 84 JList l = new JList(sel.toArray()); 82 85 l.setCellRenderer(renderer); … … 86 89 JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION; 87 90 if (bContinue) 88 Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", CadastrePlugin.source));91 Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", tf.getText())); 89 92 } 90 93 91 94 } 92 95 } 96
Note:
See TracChangeset
for help on using the changeset viewer.