<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xebia Blog &#187; code completion</title>
	<atom:link href="http://blog.xebia.com/tag/code-completion/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.xebia.com</link>
	<description>Software development done right!</description>
	<lastBuildDate>Wed, 01 Feb 2012 00:30:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>IntelliJ 8: Even smarter code completion!</title>
		<link>http://blog.xebia.com/2008/11/11/intellij-8-even-smarter-code-completion/</link>
		<comments>http://blog.xebia.com/2008/11/11/intellij-8-even-smarter-code-completion/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 10:15:05 +0000</pubDate>
		<dc:creator>Erik Pragt</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[code completion]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[IntelliJ]]></category>

	<!-- AutoMeta Start -->
	<category></category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://blog.xebia.com/?p=791</guid>
		<description><![CDATA[Smart code completion has been improved in IntelliJ 8. In the new version of JetBrains&#8217; IDE &#8216;even smarter&#8217; code completion is added. But first I&#8217;ll explain what smart code completion is! Basically, it&#8217;s code completion on steroids, which takes the type of the variable into account too which the new value is assigned to. So, [...]]]></description>
			<content:encoded><![CDATA[<p>Smart code completion has been improved in IntelliJ 8. In the new version of <a href="http://www.jetbrains.com">JetBrains&#8217;</a> IDE &#8216;even smarter&#8217; code completion is added. But first I&#8217;ll explain what smart code completion is! Basically, it&#8217;s code completion on steroids, which takes the type of the variable into account too which the new value is assigned to. So, if your assigning a value to a variable of type String, smart code completion will only display methods which are compatible with a String type, and filters the list of methods accordingly. It does even a lot more than this, which you can read about <a href="http://www.javalobby.org/java/forums/t69410.html">here</a><br />
<span id="more-791"></span><br />
The &#8216;even smarter&#8217; code completion extends this smart behiour to objects two steps away. This best explained with some code samples:</p>
<pre lang="java">
public class Person {
   private Address address;

   // getters &#038; setters
}

public class Address {
   private StreetName streetName;

   // getters &#038; setters
}

public class StreetName {
   private String name;
}
</pre>
<p>And you type the following:</p>
<pre lang="java">
StreetName streetName = person.<cursor here>
</pre>
<p>When pressing Ctrl+Shift+Space once, nothing will happen, since no methods on person exists which are compatible with the StreetName type. However, pressing it twice will automatically find the getStreetName in the Address class, so the final result will look like this, which is a real timesaver, especially in an environment with loads of domain classes (instead of using Strings for names, etc). The final result is shown below!</p>
<pre lang="java">
StreetName streetName = person.getAddress().getStreetName()
</pre>
<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="small" count="1" href="http://blog.xebia.com/2008/11/11/intellij-8-even-smarter-code-completion/"></g:plusone></div><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.xebia.com%2F2008%2F11%2F11%2Fintellij-8-even-smarter-code-completion%2F&amp;title=IntelliJ%208%3A%20Even%20smarter%20code%20completion%21" id="wpa2a_2"><img src="http://blog.xebia.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.xebia.com/2008/11/11/intellij-8-even-smarter-code-completion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  blog.xebia.com/tag/code-completion/feed/ ) in 0.66314 seconds, on Feb 9th, 2012 at 5:39 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 9th, 2012 at 6:39 pm UTC -->
