Ticket #21619: 21619.2.patch

File 21619.2.patch, 1.7 KB (added by taylor.smock, 4 years ago)

Minimal patch (no non-regression test)

  • src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java

    diff --git a/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java b/src/org/openstreetmap/josm/gui/preferences/projection/CustomProjectionChoice.java
    index e4db57d1d0..6dfc53eb17 100644
    a b import org.openstreetmap.josm.data.projection.Projection;  
    2323import org.openstreetmap.josm.data.projection.ProjectionConfigurationException;
    2424import org.openstreetmap.josm.data.projection.Projections;
    2525import org.openstreetmap.josm.gui.ExtendedDialog;
     26import org.openstreetmap.josm.gui.tagging.ac.AutoCompTextField;
    2627import org.openstreetmap.josm.gui.widgets.AbstractTextComponentValidator;
    2728import org.openstreetmap.josm.gui.widgets.HistoryComboBox;
    2829import org.openstreetmap.josm.gui.widgets.HtmlPanel;
    public class CustomProjectionChoice extends AbstractProjectionChoice implements  
    5253
    5354    private static class PreferencePanel extends JPanel {
    5455
    55         public JosmTextField input;
     56        public AutoCompTextField<String> input;
    5657        private HistoryComboBox cbInput;
    5758
    5859        PreferencePanel(String initialText, ActionListener listener) {
    public class CustomProjectionChoice extends AbstractProjectionChoice implements  
    6061        }
    6162
    6263        private void build(String initialText, final ActionListener listener) {
    63             input = new JosmTextField(30);
     64            input = new AutoCompTextField<>(30);
    6465            cbInput = new HistoryComboBox();
    6566            cbInput.setEditor(new BasicComboBoxEditor() {
    6667                @Override