Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Plugin for inline expansion of method calls?(Eclipse plugin to expand method calls inline)
Plugin for inline expansion of method calls? [message #1214542] Wed, 27 November 2013 13:53 Go to next message
Eclipse UserFriend
I'm looking for a plugin that will expand the source for a method call inline. Someone must have written one.
Re: Plugin for inline expansion of method calls? [message #1216254 is a reply to message #1214542] Thu, 28 November 2013 06:43 Go to previous messageGo to next message
Eclipse UserFriend
Such things are called "Refactorings". This one in particular is called "Inline" or "Inline Method" and is support by JDT via the Refactor menu.
See http://help.eclipse.org/topic/org.eclipse.jdt.doc.user/reference/ref-menu-refactor.htm&cp=1_4_4_0
Re: Plugin for inline expansion of method calls? [message #1216826 is a reply to message #1216254] Thu, 28 November 2013 11:51 Go to previous messageGo to next message
Eclipse UserFriend
I guess I was unclear. I'm not looking to actually inline the methods. What I want is a twisty on lines with method calls, or maybe a popup option on mouse-over. Opening the twisty shows the source for the method, as if it were inline. It's such an obvious feature, I'd be surprised if someone hasn't written a plugin to do this.
Re: Plugin for inline expansion of method calls? [message #1216897 is a reply to message #1216826] Thu, 28 November 2013 12:31 Go to previous messageGo to next message
Eclipse UserFriend
When just looking for a UI feature, the closest that JDT has to offer is the "Declaration" view.
Given that the inline method refactoring is a non-trivial operation, I doubt that it would be feasible (like in preview mode) for a lightweight operation like hovering or such.

cheers,
Stephan
Re: Plugin for inline expansion of method calls? [message #1218978 is a reply to message #1216897] Fri, 29 November 2013 09:30 Go to previous messageGo to next message
Eclipse UserFriend
There is a text hover that will show the source of the element under the mouse cursor. This sounds like it might be what you are looking for. The default way to activate it is to hold down the Shift key while hovering over the source element (method call, variable name, etc). A window will popup showing the source of the element.
Re: Plugin for inline expansion of method calls? [message #1237468 is a reply to message #1218978] Wed, 29 January 2014 15:02 Go to previous message
Eclipse UserFriend
This doesn't work in my system now, do I need to change something in preferences? or reload or what?
Previous Topic:Eclipse (Juno) shows an error where there is none
Next Topic:Unable to specify a J2SE-1.5 execution environment
Goto Forum:
  


Current Time: Tue Apr 22 13:32:27 EDT 2025

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

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

Back to the top