Ignore:
Timestamp:
2016-07-04T14:18:17+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

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

    r32329 r32556  
    1 // License: GPL. v2 and later. Copyright 2008-2009 by Pieren <pieren3@gmail.com> and others
     1// License: GPL. For details, see LICENSE file.
    22package cadastre_fr;
    33
     
    2323    private static final long serialVersionUID = 1L;
    2424
    25     private static final String departements[] = {
     25    // CHECKSTYLE.OFF: LineLength
     26    // CHECKSTYLE.OFF: SingleSpaceSeparator
     27
     28    private static final String[] departements = {
    2629        "", tr("(optional)"),
    2730        "001", "01 - Ain",                 "002", "02 - Aisne",              "003", "03 - Allier",                "004", "04 - Alpes de Haute-Provence", "005", "05 - Hautes-Alpes",
     
    4851    };
    4952
     53    // CHECKSTYLE.ON: SingleSpaceSeparator
     54    // CHECKSTYLE.ON: LineLength
     55
    5056    public MenuActionNewLocation() {
    51         super(tr("Change location"), "cadastre_small", tr("Set a new location for the next request"), null, false, "cadastrefr/newlocation", true);
     57        super(tr("Change location"), "cadastre_small", tr("Set a new location for the next request"), null, false,
     58                "cadastrefr/newlocation", true);
    5259    }
    5360
     
    6673        JPanel p = new JPanel(new GridBagLayout());
    6774        JLabel labelLocation = new JLabel(tr("Commune"));
    68         final JTextField inputTown = new JTextField( Main.pref.get("cadastrewms.location") );
     75        final JTextField inputTown = new JTextField(Main.pref.get("cadastrewms.location"));
    6976        inputTown.setToolTipText(tr("<html>Enter the town,village or city name.<br>"
    7077                + "Use the syntax and punctuation known by www.cadastre.gouv.fr .</html>"));
    71         JLabel labelDepartement =  new JLabel(tr("Departement"));
     78        JLabel labelDepartement = new JLabel(tr("Departement"));
    7279        final JComboBox<String> inputDepartement = new JComboBox<>();
    73         for (int i=1; i<departements.length; i+=2) {
     80        for (int i = 1; i < departements.length; i += 2) {
    7481            inputDepartement.addItem(departements[i]);
    7582        }
    7683        inputDepartement.setToolTipText(tr("<html>Departement number (optional)</html>"));
    7784        if (!Main.pref.get("cadastrewms.codeDepartement").equals("")) {
    78             for (int i=0; i < departements.length; i=i+2)
     85            for (int i = 0; i < departements.length; i += 2) {
    7986                if (departements[i].equals(Main.pref.get("cadastrewms.codeDepartement")))
    8087                    inputDepartement.setSelectedIndex(i/2);
     88            }
    8189        }
    8290        p.add(labelSectionNewLocation, GBC.eol());
     
    119127            Main.info("Add new layer with Location:" + inputTown.getText());
    120128        } else if (existingLayers != null && existingLayers.size() > 0 && Main.getLayerManager().getActiveLayer() instanceof WMSLayer) {
    121             wmsLayer = (WMSLayer)Main.getLayerManager().getActiveLayer();
     129            wmsLayer = (WMSLayer) Main.getLayerManager().getActiveLayer();
    122130        }
    123131
Note: See TracChangeset for help on using the changeset viewer.