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 - swing.text.NavigationFilter ignored
Summary: swing.text.NavigationFilter ignored
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks: 179047
  Show dependency tree
 
Reported: 2009-12-27 13:08 UTC by err
Modified: 2010-09-24 10:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

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.