Ignore:
Timestamp:
2010-05-09T18:09:25+02:00 (16 years ago)
Author:
pieren
Message:

Added last departement saved in preference file; now possibility to enter coordinates by mouse click during georeferencing

File:
1 edited

Legend:

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

    r21191 r21202  
    7878        }
    7979        inputDepartement.setToolTipText(tr("<html>Departement number (optional)</html>"));
    80 
     80        if (!Main.pref.get("cadastrewms.codeDepartement").equals("")) {
     81            for (int i=0; i < departements.length; i=i+2)
     82                if (departements[i].equals(Main.pref.get("cadastrewms.codeDepartement")))
     83                    inputDepartement.setSelectedIndex(i/2);       
     84        }
    8185        p.add(labelSectionNewLocation, GBC.eol());
    8286        p.add(labelLocation, GBC.std().insets(10, 0, 0, 0));
     
    104108            Main.pref.put("cadastrewms.location", location);
    105109            Main.pref.put("cadastrewms.codeCommune", codeCommune);
     110            Main.pref.put("cadastrewms.codeDepartement", codeDepartement);
    106111            if (Main.map != null) {
    107112                for (Layer l : Main.map.mapView.getAllLayers()) {
Note: See TracChangeset for help on using the changeset viewer.