Ignore:
Timestamp:
2009-02-05T01:00:53+01:00 (17 years ago)
Author:
pieren
Message:

Add municipality boundary import from SVG data delivered by cadastre WMS.

File:
1 edited

Legend:

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

    r13497 r13545  
    4646            }
    4747            if (!sel.isEmpty()) {
    48                 return displaySource(sel);
     48                displaySource(sel);
    4949            }
    5050        }
     
    7070     * source="cadastre.." if it is approved.
    7171     * @param sel the list of elements added without a key "source"
    72      * @return true if it is accepted by user
    7372     */
    74     private boolean displaySource(Collection<OsmPrimitive> sel)
     73    private void displaySource(Collection<OsmPrimitive> sel)
    7574    {
    76         boolean bContinue = true;
    7775        if (!sel.isEmpty()) {
    7876            JPanel p = new JPanel(new GridBagLayout());
     
    8381            l.setVisibleRowCount(l.getModel().getSize() < 6 ? l.getModel().getSize() : 10);
    8482            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 ?"),
    8684                    JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION;
    8785            if (bContinue)
    8886                Main.main.undoRedo.add(new ChangePropertyCommand(sel, "source", CadastrePlugin.source));
    8987        }
    90         return bContinue;
    9188               
    9289    }   
Note: See TracChangeset for help on using the changeset viewer.