Changeset 13545 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java
- Timestamp:
- 2009-02-05T01:00:53+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CheckSourceUploadHook.java
r13497 r13545 46 46 } 47 47 if (!sel.isEmpty()) { 48 returndisplaySource(sel);48 displaySource(sel); 49 49 } 50 50 } … … 70 70 * source="cadastre.." if it is approved. 71 71 * @param sel the list of elements added without a key "source" 72 * @return true if it is accepted by user73 72 */ 74 private booleandisplaySource(Collection<OsmPrimitive> sel)73 private void displaySource(Collection<OsmPrimitive> sel) 75 74 { 76 boolean bContinue = true;77 75 if (!sel.isEmpty()) { 78 76 JPanel p = new JPanel(new GridBagLayout()); … … 83 81 l.setVisibleRowCount(l.getModel().getSize() < 6 ? l.getModel().getSize() : 10); 84 82 p.add(new JScrollPane(l), GBC.eol().fill()); 85 bContinue = JOptionPane.showConfirmDialog(Main.parent, p, tr("Add \"source=...\" to elements?"),83 boolean bContinue = JOptionPane.showConfirmDialog(Main.parent, p, tr("Add \"source=Cadastre...\" to ?"), 86 84 JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION; 87 85 if (bContinue) 88 86 Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", CadastrePlugin.source)); 89 87 } 90 return bContinue;91 88 92 89 }
Note:
See TracChangeset
for help on using the changeset viewer.
