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 15:26
Marius Cojocaru is currently offline Marius CojocaruFriend
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 Nov 22 21:36:58 GMT 2014

Powered by FUDForum. Page generated in 0.02024 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software