It looks like the plugin would have to get the org.openstreetmap.josm.gui.autofilter.AutoFilterManager and call registerAutoFiltetrRules() with an AutoFilterRule...
It looks like AutoFilter and AutoFilterRule are designed around simple single-key tests. We have a few keys and they're string-valued and sort of complicated. But ... it might be possible to subclass it, make it act like it has a list of values for a single fake key that is the range of years it exists in.
It's not clear to me this is even the right UI (i.e. that AutoFilter works like I'd want) so ...
Play around with AutoFilter, evaluate UI suitability
Attempt to subclass AutoFilterRule, see if that behaves right
It looks like the plugin would have to get the
org.openstreetmap.josm.gui.autofilter.AutoFilterManager
and callregisterAutoFiltetrRules()
with anAutoFilterRule
...It looks like
AutoFilter
andAutoFilterRule
are designed around simple single-key tests. We have a few keys and they're string-valued and sort of complicated. But ... it might be possible to subclass it, make it act like it has a list of values for a single fake key that is the range of years it exists in.It's not clear to me this is even the right UI (i.e. that AutoFilter works like I'd want) so ...
AutoFilterRule
, see if that behaves right