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.
These methods are deprecated yet they seem to be necessary to override. For example, ProjectTab, and about a dozen others in nb.org sources that I can see. It is fine to say that they should not be called from outside code, but subclasses often need to override these calls, and you get spurious deprecation warnings. Maybe you could introduce a new protected void handleRequestFocus() {} which subclasses could override if they want to send focus to an embedded component like a TreeView. Then this method could be called from the deprecated methods. Note also that Javadoc says "The default implementation does nothing, and does not call super.requestFocusInWindow()." which is not true - just look at the source.
Accepted.
Passing to Standa...
i've removed the note about default implementation of these methods. changing to enhancement as it is to late to introduce api changes in nb 6.0 anyway /cvs/openide/windows/src/org/openide/windows/TopComponent.java,v <-- TopComponent.java new revision: 1.25; previous revision: 1.24
It is a bug if you need to override a deprecated method to implement a recommended code pattern. Not high priority, but not an RFE either.
fixing this issue needs some api redesign which imho is not worth the effort
If overriding these methods is in fact correct (at least for now), you can at least remove the deprecation marking so people can focus on real deprecations.
NetBeans.org Migration: changing resolution from LATER to WONTFIX