Open first call location from CallHierarchyViewer not working [message #641226] |
Wed, 24 November 2010 15:26 |
Marius Cojocaru Messages: 8 Registered: November 2010 |
Junior Member |
|
|
Hello,
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
org.eclipse.dltk.internal.ui.callhierarchy.CallHierarchyUI.i sOpenInEditor(Object)
modelElement= ((CallLocation) elem).getCalledMember();
.....
EditorUtility.isOpenInEditor(modelElement);
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
enclosingMember= callLocation.getMember();
selectionStart= callLocation.getStart();
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.03712 seconds