Ignore:
Timestamp:
2024-02-09T15:26:06+01:00 (4 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/ToolbarPreferences.java

    r18871 r18972  
    88import java.awt.Dimension;
    99import java.awt.GraphicsEnvironment;
     10import java.awt.GridBagConstraints;
    1011import java.awt.GridBagLayout;
    1112import java.awt.GridLayout;
     
    240241    }
    241242
     243    /**
     244     * Parse actions from a name
     245     */
    242246    public static class ActionParser {
    243247        private final Map<String, Action> actions;
     
    920924            final JPanel left = new JPanel(new GridBagLayout());
    921925            left.add(new JLabel(tr("Toolbar")), GBC.eol());
    922             left.add(new JScrollPane(selectedList), GBC.std().fill(GBC.BOTH));
     926            left.add(new JScrollPane(selectedList), GBC.std().fill(GridBagConstraints.BOTH));
    923927
    924928            final JPanel right = new JPanel(new GridBagLayout());
    925929            right.add(new JLabel(tr("Available")), GBC.eol());
    926             right.add(new JScrollPane(actionsTree), GBC.eol().fill(GBC.BOTH));
     930            right.add(new JScrollPane(actionsTree), GBC.eol().fill(GridBagConstraints.BOTH));
    927931
    928932            final JPanel buttons = new JPanel(new GridLayout(6, 1));
     
    978982            actionParametersTable.getColumnModel().getColumn(0).setHeaderValue(tr("Parameter name"));
    979983            actionParametersTable.getColumnModel().getColumn(1).setHeaderValue(tr("Parameter value"));
    980             actionParametersPanel.add(actionParametersTable.getTableHeader(), GBC.eol().fill(GBC.HORIZONTAL));
    981             actionParametersPanel.add(actionParametersTable, GBC.eol().fill(GBC.BOTH).insets(0, 0, 0, 10));
     984            actionParametersPanel.add(actionParametersTable.getTableHeader(), GBC.eol().fill(GridBagConstraints.HORIZONTAL));
     985            actionParametersPanel.add(actionParametersTable, GBC.eol().fill(GridBagConstraints.BOTH).insets(0, 0, 0, 10));
    982986            actionParametersPanel.setVisible(false);
    983987
    984988            JPanel panel = gui.createPreferenceTab(this);
    985             panel.add(p, GBC.eol().fill(GBC.BOTH));
    986             panel.add(actionParametersPanel, GBC.eol().fill(GBC.HORIZONTAL));
     989            panel.add(p, GBC.eol().fill(GridBagConstraints.BOTH));
     990            panel.add(actionParametersPanel, GBC.eol().fill(GridBagConstraints.HORIZONTAL));
    987991            selected.removeAllElements();
    988992            for (ActionDefinition actionDefinition: getDefinedActions()) {
Note: See TracChangeset for help on using the changeset viewer.