Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19586

Re: Java return intellityping?

Newsgroups comp.lang.java.programmer
Date 2012-11-01 11:14 -0700
References <4c12f491-2b3f-421b-b420-60d4220237d1@googlegroups.com>
Message-ID <ddb5a116-e208-4298-a1c1-b53d0ba2073c@googlegroups.com> (permalink)
Subject Re: Java return intellityping?
From Lew <lewbloch@gmail.com>

Show all headers | View raw


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();

You should not violate the Java Coding Conventions like this.

> Is there some general way to get your editor (i.e. Eclipse) to create a variable of the correct type and

"General" and "i.e." are not consistent.

It looks like Eclipse Preferences / Java / Editor / Templates is the way to go. 
Check your Eclipse documentation.

> assign it like so:
> OutputStream outputStream = m_socket.getOutputStream();
> 
> I feel like this could save a lot of work.

http://www.oracle.com/technetwork/java/codeconv-138413.html

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Java return intellityping? bob smith <bob@coolfone.comze.com> - 2012-11-01 10:39 -0700
  Re: Java return intellityping? Lew <lewbloch@gmail.com> - 2012-11-01 11:14 -0700
  Re: Java return intellityping? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-11-01 19:07 +0000
  Re: Java return intellityping? Robert Klemme <shortcutter@googlemail.com> - 2012-11-01 23:33 +0100
  Re: Java return intellityping? Jim Janney <jjanney@shell.xmission.com> - 2012-11-02 08:49 -0600
  Re: Java return intellityping? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-11-02 09:17 -0700
  Re: Java return intellityping? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-11-02 23:00 +0100
    Re: Java return intellityping? Lew <lewbloch@gmail.com> - 2012-11-03 11:58 -0700
      Re: Java return intellityping? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-11-04 17:39 +0100
        Re: Java return intellityping? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-11-04 09:47 -0800
          Re: Java return intellityping? Robert Klemme <shortcutter@googlemail.com> - 2012-11-05 08:07 +0100
          Re: Java return intellityping? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-11-05 23:52 +0100

csiph-web