This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 179060

Summary: swing.text.NavigationFilter ignored
Product: editor Reporter: err <err>
Component: -- Other --Assignee: David Strupl <dstrupl>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 179047    

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.