<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: More helpful Java code completion – Feedback please!</title>
	<atom:link href="http://fifesoft.com/blog/?feed=rss2&#038;p=372" rel="self" type="application/rss+xml" />
	<link>http://fifesoft.com/blog/?p=372</link>
	<description>Another boring blog about software</description>
	<lastBuildDate>Sun, 27 Jan 2013 03:31:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Bob Fisch</title>
		<link>http://fifesoft.com/blog/?p=372&#038;cpage=1#comment-1239</link>
		<dc:creator>Bob Fisch</dc:creator>
		<pubDate>Mon, 31 Jan 2011 10:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://fifesoft.com/blog/?p=372#comment-1239</guid>
		<description><![CDATA[Great!

Placing the &quot;src.jar&quot; (renamed from &quot;src.zip&quot;) into the right directory does the trick for Mac OSX.

Under Windows, I now have the problem, that when a JRE and a JDK is installed, Windows defaults to use the JRE. So I had to tweak somewhat arround to find the right directory which contains the &quot;src.zip&quot;.

Anyway, I&#039;ve got it now up and running. Thanks for your help ...]]></description>
		<content:encoded><![CDATA[<p>Great!</p>
<p>Placing the &#8220;src.jar&#8221; (renamed from &#8220;src.zip&#8221;) into the right directory does the trick for Mac OSX.</p>
<p>Under Windows, I now have the problem, that when a JRE and a JDK is installed, Windows defaults to use the JRE. So I had to tweak somewhat arround to find the right directory which contains the &#8220;src.zip&#8221;.</p>
<p>Anyway, I&#8217;ve got it now up and running. Thanks for your help &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://fifesoft.com/blog/?p=372&#038;cpage=1#comment-1237</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 30 Jan 2011 05:19:45 +0000</pubDate>
		<guid isPermaLink="false">http://fifesoft.com/blog/?p=372#comment-1237</guid>
		<description><![CDATA[The following works for me, when I add it into org.fife.rsta.ac.demo.DemoRootPane.java, and ran the demo on OS X:

try {
   jls.getJarManager().addJar(null);
   JarInfo ji = new JarInfo(new File(&quot;./bin&quot;));
   ji.setSourceLocation(new File(&quot;./src&quot;));
   jls.getJarManager().addJar(ji);
} catch (IOException ioe) {
   ioe.printStackTrace();
}

This adds both code completion for the standard JDK classes, as well as for classes in the RSTALanguageSupport project, both with Javadoc support (from the source).  To launch the demo, I pointed to the 1.5.0 system JDK, which lives in this location:

System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home

The library auto-detected the src.jar that lives in this directory, as it knows to scan for &quot;src.jar&quot; in the relative path OS X puts it in.

Do you have this JDK installed?  Or perhaps a different one that contains src.jar?  I noticed that my 1.6.x JDK does not contain src.jar, but my 1.4 and 1.5 both do.

Can you try modifying the DemoRootPane.java file as I did, to see if it works?  This will test both source in a jar/zip, as well as in a directory.]]></description>
		<content:encoded><![CDATA[<p>The following works for me, when I add it into org.fife.rsta.ac.demo.DemoRootPane.java, and ran the demo on OS X:</p>
<p>try {<br />
   jls.getJarManager().addJar(null);<br />
   JarInfo ji = new JarInfo(new File(&#8220;./bin&#8221;));<br />
   ji.setSourceLocation(new File(&#8220;./src&#8221;));<br />
   jls.getJarManager().addJar(ji);<br />
} catch (IOException ioe) {<br />
   ioe.printStackTrace();<br />
}</p>
<p>This adds both code completion for the standard JDK classes, as well as for classes in the RSTALanguageSupport project, both with Javadoc support (from the source).  To launch the demo, I pointed to the 1.5.0 system JDK, which lives in this location:</p>
<p>System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home</p>
<p>The library auto-detected the src.jar that lives in this directory, as it knows to scan for &#8220;src.jar&#8221; in the relative path OS X puts it in.</p>
<p>Do you have this JDK installed?  Or perhaps a different one that contains src.jar?  I noticed that my 1.6.x JDK does not contain src.jar, but my 1.4 and 1.5 both do.</p>
<p>Can you try modifying the DemoRootPane.java file as I did, to see if it works?  This will test both source in a jar/zip, as well as in a directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Fisch</title>
		<link>http://fifesoft.com/blog/?p=372&#038;cpage=1#comment-1227</link>
		<dc:creator>Bob Fisch</dc:creator>
		<pubDate>Tue, 25 Jan 2011 11:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://fifesoft.com/blog/?p=372#comment-1227</guid>
		<description><![CDATA[Hi

I&#039;ve done this:

JarInfo javaSrcInfo = new JarInfo(new File(&quot;/Users/robertfisch/Desktop/src&quot;));
javaSrcInfo.setSourceLocation(new File(&quot;/Users/robertfisch/Desktop/src&quot;));
((JavaLanguageSupport) ls).getJarManager().addJar(javaSrcInfo);

I&#039;ve also tried to use directely the ZIP file, but that didn&#039;t worked out either :(

greetings

Bob]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I&#8217;ve done this:</p>
<p>JarInfo javaSrcInfo = new JarInfo(new File(&#8220;/Users/robertfisch/Desktop/src&#8221;));<br />
javaSrcInfo.setSourceLocation(new File(&#8220;/Users/robertfisch/Desktop/src&#8221;));<br />
((JavaLanguageSupport) ls).getJarManager().addJar(javaSrcInfo);</p>
<p>I&#8217;ve also tried to use directely the ZIP file, but that didn&#8217;t worked out either <img src='http://fifesoft.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>greetings</p>
<p>Bob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://fifesoft.com/blog/?p=372&#038;cpage=1#comment-1220</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 24 Jan 2011 03:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://fifesoft.com/blog/?p=372#comment-1220</guid>
		<description><![CDATA[Hi Bob,

You currently cannot point to a Javadoc zip file, you have to point to a source zip (or a directory of .java files).  And being on OS X, I believe (could be mistaken though) the source in &quot;src.jar&quot; instead of &quot;src.zip&quot; inside of a JDK.  I know I&#039;ve tested this on OS X.  On my particular machine, the Java 6 JDK did not include a src.jar, whereas the JDK5 did.  Not sure if that&#039;s because JDK5 is the &quot;official&quot; JDK version on OS X 10.5, or what.  Nevertheless, it was able to successfully grab and use doc comments from src.jar when I pointed it to the Java 5 SDK.

But if you&#039;re having trouble pointing to a source zip/jar file, can you provide a code snippet of how you&#039;re trying to do it?]]></description>
		<content:encoded><![CDATA[<p>Hi Bob,</p>
<p>You currently cannot point to a Javadoc zip file, you have to point to a source zip (or a directory of .java files).  And being on OS X, I believe (could be mistaken though) the source in &#8220;src.jar&#8221; instead of &#8220;src.zip&#8221; inside of a JDK.  I know I&#8217;ve tested this on OS X.  On my particular machine, the Java 6 JDK did not include a src.jar, whereas the JDK5 did.  Not sure if that&#8217;s because JDK5 is the &#8220;official&#8221; JDK version on OS X 10.5, or what.  Nevertheless, it was able to successfully grab and use doc comments from src.jar when I pointed it to the Java 5 SDK.</p>
<p>But if you&#8217;re having trouble pointing to a source zip/jar file, can you provide a code snippet of how you&#8217;re trying to do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Fisch</title>
		<link>http://fifesoft.com/blog/?p=372&#038;cpage=1#comment-1219</link>
		<dc:creator>Bob Fisch</dc:creator>
		<pubDate>Sun, 23 Jan 2011 10:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://fifesoft.com/blog/?p=372#comment-1219</guid>
		<description><![CDATA[Hi

I&#039;ve just put the new source into Unimozer and will do some tests later on...

Actually I wonder how I could tell the application to use the official JDK JavaDoc (http://www.oracle.com/technetwork/java/javase/downloads/index.html)? I&#039;ve tried to use a &quot;JarInfo&quot; pointing to the ZIP, but this didn&#039;t work out.

I&#039;m running MAC OSX, having the JDK installed by the OS but not the JavaDoc...]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I&#8217;ve just put the new source into Unimozer and will do some tests later on&#8230;</p>
<p>Actually I wonder how I could tell the application to use the official JDK JavaDoc (<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" rel="nofollow">http://www.oracle.com/technetwork/java/javase/downloads/index.html</a>)? I&#8217;ve tried to use a &#8220;JarInfo&#8221; pointing to the ZIP, but this didn&#8217;t work out.</p>
<p>I&#8217;m running MAC OSX, having the JDK installed by the OS but not the JavaDoc&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
