I just introduced a custom MatcherEditor in my application (thanks a lot for the latest screencast, it really made things a lot more clear than in the tutorial) and it works as expected when I use fireChanged and fireMatchAll to update the results. However, when I call fireMatchNone (called when the list selection is null) it results in an IndexOutOfBoundsException and I have no idea why.
The MatcherEditor is pretty much a copy of what was done in the screencast, except mine uses a ListSelectionListener.
Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
Actually, you should have more confidence. Your code is fine! You have uncovered a tiny bug that was shipped in GlazedLists 0.9.7 and has since been fixed. We didn't expect anyone would find it so soon, as none of the Glazed Lists core calls fireMatchNone. Obviously we were wrong! I'm happy to hear you're writing custom matchers.
If you start using the lastest build from CVS (it's quite stable... no new dev work only tiny bug fixes) available here:
then you can continue on your merry way.
Sorry for causing you some doubt.
On 8/13/05, Magnus Larsson <[hidden email]> wrote:
|Free forum by Nabble||Edit this page|