Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Call Hierarchy plugin(Reuse Call Hierarchy Plugin API in my code)
Eclipse Call Hierarchy plugin [message #1753600] Wed, 08 February 2017 05:58 Go to next message
Aruna Devi is currently offline Aruna DeviFriend
Messages: 5
Registered: February 2017
Junior Member
Hi,

To find the references of a method, eclipse has a plugin called Open Call Hierarchy(Ctrl+Alt+H).

Is it possible to reuse the Call Hierarchy API in my program so that it returns the references of the method which I give as an input.

If it is possible, kindly direct me to the right path.

Thanks in advance.
Re: Eclipse Call Hierarchy plugin [message #1753683 is a reply to message #1753600] Wed, 08 February 2017 18:32 Go to previous messageGo to next message
Raffi Khatchadourian is currently offline Raffi KhatchadourianFriend
Messages: 7
Registered: July 2015
Junior Member

Open call hierarchy gives you calls not references. Do you want calls or references? For references, you can use the SeachEngine API.
Re: Eclipse Call Hierarchy plugin [message #1753697 is a reply to message #1753683] Thu, 09 February 2017 05:04 Go to previous messageGo to next message
Aruna Devi is currently offline Aruna DeviFriend
Messages: 5
Registered: February 2017
Junior Member
I need the callers and callees of a method, similar to Open Call Hierarchy.
Re: Eclipse Call Hierarchy plugin [message #1753751 is a reply to message #1753697] Thu, 09 February 2017 15:28 Go to previous messageGo to next message
Raffi Khatchadourian is currently offline Raffi KhatchadourianFriend
Messages: 7
Registered: July 2015
Junior Member

I would suggest importing the JDT plugins into your workspace as source projects and searching for "Open Call Hierarchy." Follow the references to see how the plugins use the appropriate APIs.
Re: Eclipse Call Hierarchy plugin [message #1753781 is a reply to message #1753751] Fri, 10 February 2017 06:43 Go to previous messageGo to next message
Aruna Devi is currently offline Aruna DeviFriend
Messages: 5
Registered: February 2017
Junior Member
I tried importing the plugin jar file as source project, but can't figure out the execution as only the class files are present inside jar rather than java files Sad
Re: Eclipse Call Hierarchy plugin [message #1753782 is a reply to message #1753781] Fri, 10 February 2017 07:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5395
Registered: July 2009
Senior Member
Hi

What base Eclipse are you using?

Using the Oxygen M5 SDK, I can use Import...->Plugin Development->Plugins and Fragments to get a project for the org.eclipse.jdt.ui plugin with sources and I can see the org.eclipse.jdt.internal.ui.callhierarchy classes in source form. You might need to refresh since the Package Explorer shows many transient states as files are copied and class paths recognized.

Regards

Ed Willink
Re: Eclipse Call Hierarchy plugin [message #1753795 is a reply to message #1753782] Fri, 10 February 2017 09:50 Go to previous message
Aruna Devi is currently offline Aruna DeviFriend
Messages: 5
Registered: February 2017
Junior Member
I use Eclipse Version: Neon.2 Release (4.6.2)
Previous Topic:Launch new Eclipse session, import & build project with JAVA class
Next Topic:EclipseInstaller failure by OOmph
Goto Forum:
  


Current Time: Tue Sep 26 05:45:43 GMT 2017

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

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