Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 179060 - swing.text.NavigationFilter ignored
swing.text.NavigationFilter ignored
Product: editor
Classification: Unclassified
Component: -- Other --
All All
: P4 (vote)
: 7.0
Assigned To: David Strupl
Depends on:
Blocks: 179047
  Show dependency treegraph
Reported: 2009-12-27 13:08 UTC by err
Modified: 2010-09-24 10:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description err 2009-12-27 13:08:46 UTC
In swing there is JTextComponent.setNavitationFilter(xxx). In NB the navigation filter is not invoked when the cursor is moved, e.g. with "setDot()".

BTW, I ran into this when cleaning up some code; so jVi will continue to handle this issue in NB by overriding ExtCaret.setDot().
Comment 1 Vitezslav Stejskal 2010-01-06 06:13:38 UTC
Yeah, Netbeans editors do not support this. We have never really needed it.
Comment 2 err 2010-01-06 09:27:17 UTC
In JDK 1.6 overriding DefaultCaret.setDot() stopped working for the standalone swing jVi (to restrict putting caret on \n when mouse click); probably had something to do with the introduction of DefaultCaret.setDot(offset, BIAS). DefaultCaret looks up and uses the NavFilt. The NavFilt came in JDK 1.4, maybe in anticipation.

This is an FYI, wont fix works for me ;-)
Comment 3 David Strupl 2010-09-24 10:03:40 UTC
Marking as wont fix - if you think we should handle it better please attach a patch and reopen. Otherwise I will not work on this.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo