Class RecentTagCollection
- java.lang.Object
-
- org.openstreetmap.josm.gui.dialogs.properties.RecentTagCollection
-
class RecentTagCollection extends Object
Manages list of recently used tags that will be displayed in thePropertiesDialog
.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<Tag,Void>
recentTags
private SearchCompiler.Match
tagsToIgnore
-
Constructor Summary
Constructors Constructor Description RecentTagCollection(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Tag tag)
SearchSetting
ignoreTag(Tag tagToIgnore, SearchSetting settingToUpdate)
boolean
isEmpty()
void
loadFromPreference(ListProperty property)
void
saveToPreference(ListProperty property)
void
setTagsToIgnore(SearchCompiler.Match tagsToIgnore)
void
setTagsToIgnore(SearchSetting tagsToIgnore)
List<Tag>
toList()
-
-
-
Field Detail
-
recentTags
private final Map<Tag,Void> recentTags
-
tagsToIgnore
private SearchCompiler.Match tagsToIgnore
-
-
Constructor Detail
-
RecentTagCollection
RecentTagCollection(int capacity)
-
-
Method Detail
-
loadFromPreference
public void loadFromPreference(ListProperty property)
-
saveToPreference
public void saveToPreference(ListProperty property)
-
isEmpty
public boolean isEmpty()
-
setTagsToIgnore
public void setTagsToIgnore(SearchCompiler.Match tagsToIgnore)
-
setTagsToIgnore
public void setTagsToIgnore(SearchSetting tagsToIgnore) throws SearchParseError
- Throws:
SearchParseError
-
ignoreTag
public SearchSetting ignoreTag(Tag tagToIgnore, SearchSetting settingToUpdate) throws SearchParseError
- Throws:
SearchParseError
-
-