GitHub user harshaindunil added a comment to the discussion: CodeLens-style reference count hint to the NetBeans Java editor.
Thanks, this is helpful feedback. I agree with keeping the initial scope limited to the swing Java editor. The current implementation is Java-only, and i have tried to keep the counting/popup path separate enough that a future extension would still be possible. On the UI side, i think your point is reasonable. The current implementation focuses on inline reference hints, but I agree there is room for a second interaction mode later, for example a lazy on-demand usage popup similar in spirit to ctrl+click navigation, but reversed toward usages. That would also be useful from a performance perspective. I would treat that as a follow-up rather than part of this first contribution. For click behavior, I’m glad the popup direction makes sense. The current flow is: - inline reference hint - click opens a lightweight popup - popup still allows opening the full Find Usages view so users can choose between quick navigation and the complete tree view. On performance, i agree this should be treated carefully. I would not argue for enabling it broadly by default beyond the current inline-hints model. The implementation now does background computation, viewport based limiting, caching, and deferred refresh during scanning, but I agree predictability is still the main concern. I’ll prepare a draft PR next so the code can be reviewed directly. GitHub link: https://github.com/apache/netbeans/discussions/9318#discussioncomment-16669421 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
