Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Get method calls of IMethod through eclipse CallHierarchy
Get method calls of IMethod through eclipse CallHierarchy [message #1796890] Sun, 21 October 2018 14:27
Eclipse UserFriend
I am looking to get IMethod, IType or IJavaElement in which a IMethod is being called. I explored org.eclipse.jdt.internal.corext.callhierarchy.CallHierarchy. I have written this code but its not giving me anything in wrapper or in location. Please guide me.
Here is what i am doing:
Code: [Select all] [Show/ hide]
public void getMethodCallers(IMethod[] methods){
VidMate AnyDesk https://mobdro.onl/

CallHierarchy hierarchy = new CallHierarchy();
IJavaSearchScope searchScope= SearchEngine.createWorkspaceScope();
hierarchy.setSearchScope(searchScope);
CallLocation location = hierarchy.getCallLocation(method[0])
MethodWrapper [] wrapper = hierarchy.getCalleeRoots(methods);

}

[Updated on: Sun, 21 October 2018 19:08] by Moderator

Report message to a moderator

Previous Topic:Java Preferences system node in Windows (Updated)
Next Topic:Generating final getters and setters
Goto Forum:
  


Current Time: Fri Apr 26 13:13:54 GMT 2024

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

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

Back to the top