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.
create Quote. Invoke call graph for main and switch to "Who is called" Then replace readChar function body to simple return 0; Expected: clicks on call graph widgets put cursor into new the moved code parts Observed random cursor position Find Usages and Navigator works just fine
Alexander, could you, please, fix this usability problem. Thanks!
(In reply to Vladimir Voskresensky from comment #0) > Find Usages and Navigator works just fine It is absolutely different components. Find Usages and Navigator work with documents and can create document base objects. Call Graph works with code model objects and do nothing know about documents. Code model "references" does not support "document based" positions.
Why it is P2 problem? By design call graph is a static picture of code model. You can "Refresh" view to actualize references.
IDE is not for "static" usage. Could you, please, make it ready for dynamic?
Of course Find Usages had the same problem in the beginning, but then update it's "design" and introduced utility method for every ones use: CsmUtilities.createPositionBounds
P2, because it is not on-par with Java's Call Graph design
Created attachment 159334 [details] proposed patch patch for occurrences (links)
fixed occurrences and links, change set: http://hg.netbeans.org/cnd-main/rev/d67f35ac9dc1
fixed, change set: http://hg.netbeans.org/cnd-main/rev/3687687ed963
Thanks for redesign of ClassView!
(In reply to Vladimir Voskresensky from comment #10) > Thanks for redesign of ClassView! I meant CallGraph :-)
Integrated into 'main-silver', will be available in build *201604251813* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d67f35ac9dc1 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing Bug #258838 Call Graph doesn't keep positions