eclipse - Auto generate variable for return value of method -


i find myself in situation selection list, , find annoying, have change method hand like

list<mpartsashcontainerelement> list = sps.getchildren() 

is there way, on point shown in picture, can have first part of above assignment automatically added, such that

sps.[ctrl+space - selection on getchildren()] may directly lead upper expression?

update

this became part of bachelor thesis on postfix code completion, , feature right underway. if want know more check google plus announcement or postfix template implementation.

no. can finish writing sps.getchildren(), cursor in getchildren selector, use ctrl+1 assign result new local. there's no way tell when you're "done" , ready have left-hand side of expression inserted--you calling on result of getchildren(), after all.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -