aldimond / josm-ohmapper

OHMapper plugin for JOSM
GNU General Public License v3.0
1 stars 0 forks source link

Make an autofilter (or abandon the idea) #4

Open aldimond opened 3 years ago

aldimond commented 3 years ago

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 ...

  1. Play around with AutoFilter, evaluate UI suitability
  2. Attempt to subclass AutoFilterRule, see if that behaves right
  3. Actually do everything properly