Ignore:
Timestamp:
2014-11-15T21:45:22+01:00 (9 years ago)
Author:
bastiK
Message:

autocomplete: remember user input and prefer recently entered strings

It bugged my, that in tag add dialog, JOSM always autocompletes addr:h to
addr:housename. But addr:housenumber is what I want.

Now it remembers the last tags that have been entered in a session
and gives those the highest priority in autocompletion.
More recent entries are preferred.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TaggingPresetItems.java

    r7613 r7725  
    5454import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionItemPriority;
    5555import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList;
     56import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager;
    5657import org.openstreetmap.josm.gui.widgets.JosmComboBox;
    5758import org.openstreetmap.josm.gui.widgets.JosmTextField;
     
    767768
    768769            changedTags.add(new Tag(key, v));
     770            AutoCompletionManager.rememberUserInput(key, v, true);
    769771        }
    770772
Note: See TracChangeset for help on using the changeset viewer.