Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: Java return intellityping? Date: Thu, 01 Nov 2012 23:33:30 +0100 Lines: 20 Message-ID: References: <4c12f491-2b3f-421b-b420-60d4220237d1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Tm1MAwKtormKWLKBDVd0Twyuib8hlGJodpMGJhG6qApjfhNpTmv6OVjIBSnYACd6Q= Cancel-Lock: sha1:cIRUoVypcGAvwV7XtzfMR1+aM68= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <4c12f491-2b3f-421b-b420-60d4220237d1@googlegroups.com> Xref: csiph.com comp.lang.java.programmer:19588 On 01.11.2012 18:39, bob smith wrote: > You know how there are all kinds of typing shortcuts nowadays? > > Let's say there's code like this: > > m_socket.getOutputStream(); > > Is there some general way to get your editor (i.e. Eclipse) to create > a variable of the correct type and assign it like so: Yes. Mark the code. Then Refactor -> Extract local variable (Alt-Shift-L). Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/