|Open first call location from CallHierarchyViewer not working [message #641226]
||Wed, 24 November 2010 15:26
| Marius Cojocaru
Registered: November 2010
The selection changed event from the CallHierarchyViewPart is using first call location in method revealElementInEditor to show the call in editor. Further the function use the
modelElement= ((CallLocation) elem).getCalledMember();
This cause a problem in the case the method is declare in another source module, since it will open the declaration module of the called method and highlight the code based on the reference ( so basically some random code is selected).
On the other hand, selecting the first call from the right panel, that use the OpenLocationAction which calls CallHierarchyUI.openInEditor
This method is ussing the correct IMethod element
selectionLength= callLocation.getEnd() - selectionStart;
and manage to show the call reference.
Is this a defect, or is not supported by the ICalleeProcessor to report call references of methods declare in other module.
Powered by FUDForum
. Page generated in 0.01586 seconds