Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Open first call location from CallHierarchyViewer not working
Open first call location from CallHierarchyViewer not working [message #641226] Wed, 24 November 2010 10:26
Marius Cojocaru is currently offline 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.
Previous Topic:Find LocalVariable references not posible in Project Scope
Next Topic:Indexing function for Tcl code?
Goto Forum:
  


Current Time: Sat Jul 26 09:22:33 EDT 2014

Powered by FUDForum. Page generated in 0.01724 seconds