Ignore:
Timestamp:
2024-02-09T15:26:06+01:00 (10 months ago)
Author:
taylor.smock
Message:

See #23465: Add additional javadoc comments

This also fixes some sonarlint issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java

    r18438 r18972  
    55
    66import java.awt.BorderLayout;
     7import java.awt.GridBagConstraints;
    78import java.awt.GridBagLayout;
    89import java.awt.Insets;
     
    120121            this.setLayout(new GridBagLayout());
    121122            JPanel p2 = new JPanel(new GridBagLayout());
    122             p2.add(cbInput, GBC.std().fill(GBC.HORIZONTAL).insets(0, 20, 5, 5));
     123            p2.add(cbInput, GBC.std().fill(GridBagConstraints.HORIZONTAL).insets(0, 20, 5, 5));
    123124            p2.add(btnCheck, GBC.eol().insets(0, 20, 0, 5));
    124             this.add(p2, GBC.eol().fill(GBC.HORIZONTAL));
     125            this.add(p2, GBC.eol().fill(GridBagConstraints.HORIZONTAL));
    125126            p2 = new JPanel(new GridBagLayout());
    126             p2.add(valStatus, GBC.std().anchor(GBC.WEST).weight(0.0001, 0));
    127             p2.add(errorsPanel, GBC.eol().fill(GBC.HORIZONTAL));
    128             this.add(p2, GBC.eol().fill(GBC.HORIZONTAL));
     127            p2.add(valStatus, GBC.std().anchor(GridBagConstraints.WEST).weight(0.0001, 0));
     128            p2.add(errorsPanel, GBC.eol().fill(GridBagConstraints.HORIZONTAL));
     129            this.add(p2, GBC.eol().fill(GridBagConstraints.HORIZONTAL));
    129130            p2 = new JPanel(new GridBagLayout());
    130131            p2.add(btnInfo, GBC.std().insets(0, 20, 0, 0));
    131             p2.add(GBC.glue(1, 0), GBC.eol().fill(GBC.HORIZONTAL));
    132             this.add(p2, GBC.eol().fill(GBC.HORIZONTAL));
    133         }
    134 
     132            p2.add(GBC.glue(1, 0), GBC.eol().fill(GridBagConstraints.HORIZONTAL));
     133            this.add(p2, GBC.eol().fill(GridBagConstraints.HORIZONTAL));
     134        }
     135
     136        /**
     137         * Remember the current input
     138         */
    135139        public void rememberHistory() {
    136140            cbInput.addCurrentItemToHistory();
     
    139143    }
    140144
     145    /**
     146     * A dialog for the available parameters of the custom projection
     147     */
    141148    public static class ParameterInfoDialog extends ExtendedDialog {
    142149
     
    212219        }
    213220        PreferencePanel prefPanel = (PreferencePanel) panel;
    214         String pref = prefPanel.cbInput.getEditorComponent().getText();
     221        String savePreferences = prefPanel.cbInput.getEditorComponent().getText();
    215222        prefPanel.rememberHistory();
    216         return Collections.singleton(pref);
     223        return Collections.singleton(savePreferences);
    217224    }
    218225
Note: See TracChangeset for help on using the changeset viewer.