Ignore:
Timestamp:
2011-01-13T23:27:42+01:00 (15 years ago)
Author:
pieren
Message:

Move the grabber single instance from CadastrePlugin singleton to each WMSLayer instance to allow several municipalities grabbing in parallel.

File:
1 edited

Legend:

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

    r24907 r25045  
    6565        String codeDepartement = "";
    6666        String codeCommune = "";
    67         boolean changeInterface = false;
    6867        JLabel labelSectionNewLocation = new JLabel(tr("Add a new municipality layer"));
    6968        JPanel p = new JPanel(new GridBagLayout());
     
    105104            location = inputTown.getText().toUpperCase();
    106105            codeDepartement = departements[inputDepartement.getSelectedIndex()*2];
    107             changeInterface = true;
    108106            Main.pref.put("cadastrewms.location", location);
    109107            Main.pref.put("cadastrewms.codeCommune", codeCommune);
     
    130128        } else if (existingLayers != null && existingLayers.size() > 0 && Main.map.mapView.getActiveLayer() instanceof WMSLayer) {
    131129            wmsLayer = (WMSLayer)Main.map.mapView.getActiveLayer();
    132             changeInterface = true;
    133130        }
    134131
    135         if (changeInterface)
    136             CadastrePlugin.cadastreGrabber.getWmsInterface().resetInterfaceRefIfNewLayer(wmsLayer.getName());
    137132        return wmsLayer;
    138133    }
Note: See TracChangeset for help on using the changeset viewer.