JavaDoc window should prioritize constructor doc over class doc.
If the caret is positioned over a constructor invocation, show the javadoc of that constructor (analog to the ctrl+mouse hover tooltip).
(caret is over
ArrayList, putting it inside () works too)
Before this change the class doc was shown.
going to rebase this pr to latest master
rebased again for a fresh build. If master isn't frozen yet when I am done manually testing I might merge this for NB24 since I think this is fairly low risk (and aligns javadoc behavior with ctrl+hover)
LGTM, on import javadoc is for the class, on ArrayList and in () it constructor
checked and everything is working fine still. Going to merge once CI is green.
I'm not sure I'm entirely convinced by this. Caret inside parentheses should behave as currently does when caret immediately adjacent. But I think caret over type (eg. ArrayList) should continue to show class doc.
ok, no problem. Thought constructor doc makes mores sense than class doc in this situation + it would work analog to completion / mouse over:
dropping the milestone
Caret inside parentheses should behave as currently does when caret immediately adjacent
btw this isn't how it works right now in practice. In this particular example it does since int 5 is ignored - but if it would be a field or something else it would show the doc of the other item.
it would work analog to completion / mouse over:
Don't let me be the only arbiter. I rarely use the Javadoc window. However completion doesn't work like mouse over here as far as I can tell?! They all seem inconsistent.