<?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>EclipseSource Blog &#187; javascript</title>
	<atom:link href="http://eclipsesource.com/blogs/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://eclipsesource.com/blogs</link>
	<description>Eclipse Equinox OSGi</description>
	<lastBuildDate>Fri, 03 Feb 2012 17:54:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Javascript validation with JSHint in Eclipse</title>
		<link>http://eclipsesource.com/blogs/2012/01/26/javascript-validation-with-jshint-eclipse/</link>
		<comments>http://eclipsesource.com/blogs/2012/01/26/javascript-validation-with-jshint-eclipse/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 22:07:00 +0000</pubDate>
		<dc:creator>Ralf Sternberg</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[syndicate]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=6965</guid>
		<description><![CDATA[Besides all the Java code in the RAP project, we also have more than 250 JavaScript files which total up to 75k lines of code. For such an amount of code, you should have some kind of code analysis that detects common coding problems like unintentional global variables. We use the JSEclipse plug-in for JavaScript [...]]]></description>
			<content:encoded><![CDATA[<p>Besides all the Java code in the <a href="http://eclipse.org/rap">RAP</a> project, we also have more than 250 JavaScript files which total up to 75k lines of code. For such an amount of code, you should have some kind of code analysis that detects common coding problems like unintentional global variables. We use the JSEclipse plug-in for JavaScript editing which detects some, but not many JavaScript problems.</p>
<p>A while ago, we&#8217;ve tried to use <a href="http://jslint.com/">JSLint</a>, a tool written by JavaScript guru Douglas Crockford. Unfortunately, this tools produces several thousand warnings on our code base, many of them were not really problems but debatable coding style issues and there was no way to turn them off. JSLint&#8217;s lack of customizability recently lead to a <a href="http://anton.kovalyov.net/2011/02/20/why-i-forked-jslint-to-jshint/">fork</a> named <a href="http://www.jshint.com/">JSHint</a> that is going to provide more flexible <a href="http://www.jshint.com/options/">configuration options</a>.</p>
<p>Like JSLint, JSHint is written in JavaScript, but can be run on the command line using tools like <a href="http://www.mozilla.org/rhino/">Rhino</a> or JavaScriptCore. I tried JSHint on our codebase with good results using a shell script that runs it on top of Rhino. Unfortunately, checking all our 250+ *.js files keeps my machine busy for 5 minutes and 40 seconds and effectively turns it into a fan heater. This is not because JSHint itself is so demanding, but because for every file, a JVM has to be started, Rhino has to be loaded, then Rhino has to parse and load the JSHint JavaScript library, and then finally, jshint can parse and validate the source file.</p>
<p>Encouraged by the good results I tried to find a solution that doesn&#8217;t have this overhead. And as an Eclipse hacker and user, I certainly wanted to integrate the tool into my daily working environment. The result is a simple, yet efficient <a href="http://github.eclipsesource.com/jshint-eclipse/">JSHint Eclipse integration</a> that validates the same bunch of *.js files in less than 15 seconds.</p>
<p><a href="http://eclipsesource.com/blogs/wp-content/uploads/2012/01/jshint-eclipse-screenshot.png"><img class="aligncenter wp-image-6969" title="jshint-eclipse" src="http://eclipsesource.com/blogs/wp-content/uploads/2012/01/jshint-eclipse-screenshot.png" alt="jshint eclipse screenshot Javascript validation with JSHint in Eclipse" width="600" height="430" /></a></p>
<p>This speedup could be achieved by exploiting the way Eclipse builds projects: It uses the same builder instance to visit all files of the project recursively. That makes it possible to load and configure the JSHint library only once for the entire project and reuse it for all files being checked. Of course, validating all files of a project is only necessary for a full rebuild. During normal work, single files are being validated instantly when they have changed.</p>
<p>Although the configuration options are still somewhat basic, this integration proved to be very helpful already. I thought that it may be useful for others as well and decided to build and publish a first version. It&#8217;s available on the <a href="http://github.eclipsesource.com/jshint-eclipse/">jshint-eclipse page</a>. There&#8217;s an update site that let&#8217;s you install the plug-in right into your Eclipse IDE. If you find the plug-in useful, have ideas for improvements, find a problem or want to contribute, I&#8217;m happy to hear about it. To report problems, please use the <a href="https://github.com/eclipsesource/jshint-eclipse/issues">github issue tracker</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsesource.com/blogs/2012/01/26/javascript-validation-with-jshint-eclipse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery timeago in Java with RAP</title>
		<link>http://eclipsesource.com/blogs/2011/06/07/jquery-timeago-in-java-with-rap/</link>
		<comments>http://eclipsesource.com/blogs/2011/06/07/jquery-timeago-in-java-with-rap/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 13:38:04 +0000</pubDate>
		<dc:creator>Holger Staudacher</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[syndicate]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[indigo]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[rap]]></category>
		<category><![CDATA[timeago]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=5917</guid>
		<description><![CDATA[A few weeks ago I showed you how easy it is to integrate jQuery into RAP using the browser widget. I’d like to show you another example of what can be integrated. Last time I created a carousel widget; this time the demo is something smaller but still really cool. Yesterday I came across a [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I showed you how easy it is to <a href="http://eclipsesource.com/blogs/2010/12/08/jquery-eclipse-rap-and-a-carousel/">integrate jQuery into RAP using the browser widget</a>. I’d like to show you another example of what can be integrated. Last time I created a carousel widget; this time the demo is something smaller but still really cool.</p>
<p>Yesterday I came across a <a href="https://github.com/rmm5t/jquery-timeago">github repository by Ryan McGeary</a>. He has created a very clever jQuery plug-in called &#8220;<a href="http://timeago.yarp.com/">timeago</a>&#8220;. What this plug-in does is simple. It takes a timestamp and displays a text string instead of the stamp that describes the difference between the actual time and the one in the timestamp.  We’ve all seen the messages, &#8220;about a minute ago.”  The cool thing about this plug-in is that it refreshes automatically. I mean, it isn’t new to transform timestamps in this way, but it is usually done just once. So, when you visit a website in the morning and leave the tab open until evening, it still says something like, &#8220;The page was opened about minute ago&#8221; <img src='http://eclipsesource.com/blogs/wp-includes/images/smilies/icon_wink.gif' alt="icon wink jQuery timeago in Java with RAP" class='wp-smiley' title="jQuery timeago in Java with RAP" /> . This can&#8217;t happen with McGeary&#8217;s plug-in.</p>
<p>While having a jQuery plug-in is nice for javascript developers, it&#8217;s not as nice if you’re a Java Developer. But, fortunately we can integrate jQuery painlessly into RAP. As a result I wrote a RWT/SWT widget that simply maps the functionality of the timeago plug-in. You can set a date from the server and read the displayed text from the client.<br />
<a href="http://eclipsesource.com/blogs/wp-content/uploads/2011/06/timeago.png"><img class="aligncenter size-full wp-image-5918" title="timeago" src="http://eclipsesource.com/blogs/wp-content/uploads/2011/06/timeago.png" alt="timeago jQuery timeago in Java with RAP" width="702" height="114" /></a><br />
If you like this idea you can <a href="https://github.com/eclipsesource/rap-timeago">grab the sources at github</a>. Of course this is just a demo. Let me know if you would like to work with me on an implementation for productive use. Have fun with timeago <img src='http://eclipsesource.com/blogs/wp-includes/images/smilies/icon_wink.gif' alt="icon wink jQuery timeago in Java with RAP" class='wp-smiley' title="jQuery timeago in Java with RAP" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsesource.com/blogs/2011/06/07/jquery-timeago-in-java-with-rap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse e4 1.0 M1 Released</title>
		<link>http://eclipsesource.com/blogs/2009/10/14/eclipse-e4-1-0-m1-released/</link>
		<comments>http://eclipsesource.com/blogs/2009/10/14/eclipse-e4-1-0-m1-released/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 15:42:12 +0000</pubDate>
		<dc:creator>Chris Aniszczyk</dc:creator>
				<category><![CDATA[syndicate]]></category>
		<category><![CDATA[e4]]></category>
		<category><![CDATA[helios]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[milestone]]></category>

		<guid isPermaLink="false">http://eclipsesource.com/blogs/?p=3192</guid>
		<description><![CDATA[Today, the Eclipse e4 project had its first 1.0 milestone release. This is the beginning towards sprinting for the 1.0 final release. The big new and noteworthy in this milestone is support for remote debugging of JavaScript and in particular e4 JavaScript bundles. The support is currently restricted to Mozilla Rhino, however in true Eclipse [...]]]></description>
			<content:encoded><![CDATA[<p>Today, the Eclipse <a href="http://www.eclipse.org/e4">e4</a> project had its first 1.0 milestone <a href="http://download.eclipse.org/e4/downloads/drops/S-1.0M1-200910131430/">release</a>.</p>
<p>This is the beginning towards sprinting for the 1.0 final release.</p>
<p>The big <a href="http://download.eclipse.org/e4/downloads/drops/S-1.0M1-200910131430/e4-news-M1.html">new and noteworthy</a> in this milestone is support for <strong>remote debugging of JavaScript</strong> and in particular e4 JavaScript bundles. The support is currently restricted to Mozilla Rhino, however in true Eclipse fashion, the JavaScript debug model and extension models are in place to allow supporting other JavaScript runtimes.</p>
<p><a href="http://eclipsesource.com/blogs/wp-content/uploads/2009/10/js-debug.png"><img class="alignnone size-medium wp-image-3193" title="js-debug" src="http://eclipsesource.com/blogs/wp-content/uploads/2009/10/js-debug-300x286.png" alt="js debug 300x286 Eclipse e4 1.0 M1 Released" width="300" height="286" /></a></p>
<p>If you&#8217;re interested in Eclipse e4, here’s some resources:</p>
<ul>
<li>e4 <a href="http://www.eclipse.org/e4/resources/e4-whitepaper.php">whitepaper</a></li>
<li>Mike Wilson’s <a href="http://dev.eclipse.org/blogs/mcqjustmcq/2009/07/25/eclipse-has-a-future/">blog post</a> on the future of Eclipse</li>
<li>e4 <a href="http://wiki.eclipse.org/E4">wiki</a></li>
<li>e4 <a href="http://www.eclipse.org/community/e4webinar/abstracts.php">webinars</a></li>
</ul>
<p>Enjoy and please consider contributing to the e4 effort!</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipsesource.com/blogs/2009/10/14/eclipse-e4-1-0-m1-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

