<?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>DaveOnCode &#187; ide</title>
	<atom:link href="http://www.daveoncode.com/tag/ide/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daveoncode.com</link>
	<description>Objective C, iOS and more programming stuff</description>
	<lastBuildDate>Mon, 19 Dec 2011 12:11:12 +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>Generate beautiful code documentation with a simple shortcut using AppleDoc, Xcode custom behaviors and AppleScript!</title>
		<link>http://www.daveoncode.com/2011/12/08/generate-beautiful-code-documentation-with-simple-shortcut-using-appledoc-xcode-custom-behaviours-applescript/</link>
		<comments>http://www.daveoncode.com/2011/12/08/generate-beautiful-code-documentation-with-simple-shortcut-using-appledoc-xcode-custom-behaviours-applescript/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 10:48:15 +0000</pubDate>
		<dc:creator>Davide Zanotti</dc:creator>
				<category><![CDATA[xcode]]></category>
		<category><![CDATA[AppleDoc]]></category>
		<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.daveoncode.com/?p=890</guid>
		<description><![CDATA[This time I realized something really great and I&#8217;m truly satisfied about it! Few days ago I discovered a fantastic open source project from GentleBytes called AppleDoc by reading a post on Cocoanetics. This is a tool that generate an Apple-like HTML documentation from source files (by using the proper comment style) and it also [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2011/12/08/generate-beautiful-code-documentation-with-simple-shortcut-using-appledoc-xcode-custom-behaviours-applescript/' addthis:title='Generate beautiful code documentation with a simple shortcut using AppleDoc, Xcode custom behaviors and AppleScript! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>This time I realized something really great and I&#8217;m truly satisfied about it!<br />
Few days ago I discovered a fantastic open source project from <a href="http://gentlebytes.com/">GentleBytes</a> called <a href="http://gentlebytes.com/appledoc/">AppleDoc</a> by reading a post on <a href="http://www.cocoanetics.com/2011/11/amazing-apple-like-documentation/">Cocoanetics</a>.<br />
This is a tool that generate an Apple-like HTML documentation from source files (by using the proper comment style) and it also generates installable docsets and Atom feeds for the download from a remote host.<br />
After a couple of tests and document generations my big question was: &#8220;how can I automatize the process without launching a script every time and for each project I want to document?&#8221;.<br />
The first obvious answer was &#8220;add a <strong>Run Script</strong> in the build phases!&#8221;&#8230; but it&#8217;s not a smart idea to launch a similar long script for every build, because it takes several seconds and potentially minutes depending on the amount of classes to analyze, and it&#8217;s often unnecessary to update a documentation if method signatures remain the same. So I searched for an alternative way to execute scripts from Xcode only when desired, by focusing my efforts on its &#8220;<strong>Behaviors</strong>&#8221; (<strong>Xcode > Behaviors > Edit Behaviors > +</strong>). Behaviors can be triggered by events (only default behaviors), using menu or with a custom shortcut and a behavior can perform several actions like running a script&#8230;<br />
and here I started to waste a lot of time in order to realize what I had in mind (create a single auto-runnable script to generate code documentation for each project without hard-coding paths and names), because the <a href="http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html">environment variables</a> I was using in Xcode build phases as a test can&#8217;t be used in external scripts (since they are not attached to the Xcode process as far I understood).<br />
So the problem was: &#8220;how can I retrieve this variables dynamically from our beloved ide? is it possible?&#8221;&#8230; it&#8217;s been an hard google search plus a couple of questions asked on <a href="http://www.stackoverflow.com">StackOverflow</a> (Did I tell you how much I love that site? I really love it!) in order to clear my dubs&#8230; and yes, it&#8217;s possible thanks to <strong>AppleScript</strong>! Xcode exposes several objects that can be queried by this funny script language, so in this way I first realized an <strong>AppleScript</strong> to retrieve the variables I need (project name, project path and company) and then I invoked my old and refactored bash script passing them.<br />
In conclusion I&#8217;m now able to launch document generation for each project I&#8217;m working on, by simply press <strong>ALT+CMD+D</strong> (a custom shortcut of my choice), I also configured a submarine sound effect and the display of a bezel alert&#8230; really wonderful!</p>
<p>This is the AppleScript used for the behavior that invoke the bash script by sending it the necessary arguments:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#!/usr/bin/osascript<br />
<br />
tell application &quot;Xcode&quot;<br />
&nbsp; &nbsp; tell first project<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; -- variables to export<br />
&nbsp; &nbsp; &nbsp; &nbsp; set projectName to (get name)<br />
&nbsp; &nbsp; &nbsp; &nbsp; set projectDir to (get project directory)<br />
&nbsp; &nbsp; &nbsp; &nbsp; set company to (get organization name)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; -- invoke script passing extracted variables<br />
&nbsp; &nbsp; &nbsp; &nbsp; do shell script (&quot;sh /PATH_TO_SCRIPT/appledoc.generate.sh &quot; &amp; projectName &amp; &quot; &quot; &amp; projectDir &amp; &quot; &quot; &amp; company)<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; end tell<br />
end tell</div></td></tr></tbody></table></div>
<p>Of course you have to replace &#8220;/PATH_TO_SCRIPT/appledoc.generate.sh&#8221; according to your path.<br />
If you decide to create your own AppleScript script using the default editor (/Applications/Utilities/Apple Script Editor), remember to save it as a plain text and to include the proper header declaration (<strong>#!/usr/bin/osascript</strong>), otherwise Xcode will throw an exception trying to run it!</p>
<p>&#8230;and this is <strike>Sparta</strike> the bash (I added a couple of <strong>say</strong> commands in order to debug the process&#8230; remove comments to hear your mac speak!):</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#! /bin/sh<br />
<br />
# Input arguments: <br />
# $1 -&gt; project name<br />
# $2 -&gt; project path<br />
# $3 -&gt; company name<br />
<br />
# dynamic variables<br />
docsURL=&quot;http://www.$3.com/docs&quot;;<br />
projectsPath=&quot;$2/../&quot;;<br />
docsPath=&quot;${projectsPath}/AppleDocOutput&quot;;<br />
<br />
#say &quot;project is: $1&quot;;<br />
#say &quot;path is: $2&quot;;<br />
#say &quot;company is: $3&quot;;<br />
#say &quot;project path is: ${projectsPath}&quot;;<br />
<br />
# create AppleDocOutput folder if not exists<br />
if [ ! -d $docsPath ];<br />
then<br />
&nbsp; &nbsp; #say &quot;create output folder&quot;;<br />
&nbsp; &nbsp; mkdir &quot;${docsPath}&quot;;<br />
fi<br />
<br />
#say &quot;run appledoc&quot;;<br />
<br />
#invoke appledoc passing computed arguments<br />
/usr/bin/appledoc \<br />
--project-name &quot;$1&quot; \<br />
--output &quot;${docsPath}/$1/&quot; \<br />
--docset-feed-url &quot;${docsURL}/%DOCSETATOMFILENAME&quot; \<br />
--docset-package-url &quot;${docsURL}/%DOCSETPACKAGEFILENAME&quot; \<br />
--docset-fallback-url &quot;${docsURL}/$1Doc/&quot; \<br />
--ignore &quot;$1Tests&quot; \<br />
&quot;$2&quot; &gt; &quot;${docsPath}/AppleDoc.log&quot;</div></td></tr></tbody></table></div>
<p>the bash invokes AppleDoc by assuming its location on /usr/bin/appledoc, the arguments passed are few since I use the GlobalSettings.plist for the main setting and I override only certain options (read GentleBytes reference for more info).<br />
I also redirect the output of the command to a log file for an easy debug.<br />
Remember to make both scripts executable (<strong>chmod +x</strong>) in order to use them!</p>
<p>&#8230;that&#8217;s all! If you want more info leave a comment (it&#8217;s free)</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2011/12/08/generate-beautiful-code-documentation-with-simple-shortcut-using-appledoc-xcode-custom-behaviours-applescript/' addthis:title='Generate beautiful code documentation with a simple shortcut using AppleDoc, Xcode custom behaviors and AppleScript! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.daveoncode.com/2011/12/08/generate-beautiful-code-documentation-with-simple-shortcut-using-appledoc-xcode-custom-behaviours-applescript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Xcode key bindings: how to create a custom shortcut to convert upper case text to lower case and viceversa</title>
		<link>http://www.daveoncode.com/2011/11/04/xcode-key-bindings-custom-shortcut-convert-upper-case-text-to-lower-case/</link>
		<comments>http://www.daveoncode.com/2011/11/04/xcode-key-bindings-custom-shortcut-convert-upper-case-text-to-lower-case/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 14:41:11 +0000</pubDate>
		<dc:creator>Davide Zanotti</dc:creator>
				<category><![CDATA[xcode]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[shortcut]]></category>

		<guid isPermaLink="false">http://www.daveoncode.com/?p=854</guid>
		<description><![CDATA[Since one of the most visited post on my blog is that one about case conversion in Eclipse, I decided to share how to implement 2 custom shortcuts to do the same in Xcode. In &#8220;Preferences&#8221; panel, there is a tab called &#8220;Key Bindings&#8220;, here we can configure keys used for shortcuts. By default the [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2011/11/04/xcode-key-bindings-custom-shortcut-convert-upper-case-text-to-lower-case/' addthis:title='Xcode key bindings: how to create a custom shortcut to convert upper case text to lower case and viceversa ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Since one of the most visited post on my blog is that one about case conversion in Eclipse, I decided to share how to implement 2 custom shortcuts to do the same in Xcode.<br />
In &#8220;<strong>Preferences</strong>&#8221; panel, there is a tab called &#8220;<strong>Key Bindings</strong>&#8220;, here we can configure keys used for shortcuts. By default the most are already configured, but that&#8217;s not the case for text case conversion. By typing &#8220;<strong>case</strong>&#8221; to filter the long list, you can see 2 commands: &#8220;<strong>Lowercase word</strong>&#8221; and &#8220;<strong>Uppercase word</strong>&#8220;, all you have to do is to click on the &#8220;<strong>key</strong>&#8221; column and register your shortcut.<br />
To avoid conflicts and to make them simple to remember I did choose &#8220;<strong>SHIFT + CTRL + L</strong>&#8221; for the first and  &#8220;<strong>SHIFT + CTRL + U</strong>&#8221; for the second (but you can register your own one).</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2011/11/04/xcode-key-bindings-custom-shortcut-convert-upper-case-text-to-lower-case/' addthis:title='Xcode key bindings: how to create a custom shortcut to convert upper case text to lower case and viceversa ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.daveoncode.com/2011/11/04/xcode-key-bindings-custom-shortcut-convert-upper-case-text-to-lower-case/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Eclipse + Aptana + Subclipse SVN</title>
		<link>http://www.daveoncode.com/2009/11/04/installing-eclipse-aptana-subclipse-svn/</link>
		<comments>http://www.daveoncode.com/2009/11/04/installing-eclipse-aptana-subclipse-svn/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 21:18:14 +0000</pubDate>
		<dc:creator>Davide Zanotti</dc:creator>
				<category><![CDATA[ide]]></category>
		<category><![CDATA[aptana]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.daveoncode.com/?p=508</guid>
		<description><![CDATA[Recently I&#8217;ve updated my Eclipse version and I installed certain plugin which has created some kind of conflict and confusion in my workspace. What I was trying to do was installing an SVN plugin in order to work on a google code SVN repository, but I had several errors and I lost several hours trying [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2009/11/04/installing-eclipse-aptana-subclipse-svn/' addthis:title='Installing Eclipse + Aptana + Subclipse SVN ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve updated my Eclipse version and I installed certain plugin which has created some kind of conflict and confusion in my workspace. What I was trying to do was installing an SVN plugin in order to work on a google code SVN repository, but I had several errors and I lost several hours trying to figure out what was wrong. So I decided to do a fresh and clean installation, once understood the problem. So, I would like to write a sort of tutorial which will explain how to get a sound and working installation of Eclipse, Aptana and Subclipse (which as far I read, is actually the best plugin available for SVN on Eclipse).</p>
<p><span id="more-508"></span></p>
<h2>Install Eclipse</h2>
<p>If you have already Eclipse installed, backup your workspace folder somewhere, then delete eclipse installation folder and the old workspace (you will use the old projects folder after by skipping the &#8220;.metadata&#8221; folder that is the place where Eclipse stores informations about settings and plugins installed). Go to http://eclipse.org/downloads/ and download the Eclipse edition you prefer (I use Eclipse Classic), after extracting the archive, place folder &#8220;eclipse&#8221; where you like (usually &#8220;Programs&#8221; folder on windows and &#8220;Applications&#8221; on Mac). Create a link to the executable file on your desktop (or Mac OS X dock), then launch the program. Since this is the first time you run Eclipse, it will ask where to locate the workspace, choose the destination and folder name you prefer (I use &#8220;eclipse-workspace&#8221; under my documents). Ok, at this point you should see a welcome screen, close it and choose <strong>Help > Install new software&#8230;</strong> from the top menu (we are going to install Aptana). </p>
<h2>Install Aptana</h2>
<p>Click on <strong>Add&#8230;</strong> and paste this url in the &#8220;Location&#8221; field: &#8220;http://download.aptana.org/tools/studio/plugin/install/studio&#8221; (don&#8217;t paste quotes!), write a name for the location entered (I simply called it &#8220;Aptana&#8221;). Go on, selecting Aptana packages check-boxes and clicking on <strong>Next</strong>, then accept the terms and click on <strong>Finish</strong>. It will takes several seconds, then Eclipse will inform you that installation is complete and it will suggest you to restart the program&#8230; obey!</p>
<h2>Install Subclipse (through Aptana)</h2>
<p>Ok, we have Aptana installed and running into Eclipse, now we can select <strong>Help > Install Aptana Features</strong> from the top menu, then select <strong>Others > SCM Plugins > Subclipse</strong> and from here select the following package: <strong>Core SVNKit library, Optional JNA library, Subclipse</strong>. After the routine &#8220;next, agree, finish, restart&#8221; we have now our beloved ide ready to be used!</p>
<h2>IDE configuration</h2>
<p>Now that all the stuff is installed, we should spent some time to configure it properly, depending on our needs and taste. Eclipse is a complex and powerfull software and is it possible to set a lot of options: font used, colors, code suggestion, indentation, code collapsing, autoupdate, file encoding, workspace and a lot more. If you never take an in depth look at the preferences panel, I suggest you to spent at list 5 minutes&#8230; it deserve the time spent!</p>
<h2>Possible issues and resolutions</h2>
<p>- If during installation an alert saying &#8220;WARNING: you are installing software that contains unsigned content&#8221; will appear, just choose <strong>ok</strong> and you shouldn&#8217;t get any problems.</p>
<p>- If you get problems to download from the update site(s), maybe you are blocked by a firewall, you should go to <strong>Window > Preferences > General > Network </strong> and set the right proxy configuration. If you don&#8217;t know how to configure it, you can download the archive version (a .jar or .zip file containing all plugin&#8217;s packages) from vendor site.</p>
<p>- If you are trying to add a new SVN repository (by using the installed Subclipse plugin) and you get an error saying &#8220;<strong>RA layer request failed</strong>&#8220;, go to <strong>Window > Preferences > Team > SVN</strong> and in the &#8220;SVN interface&#8221; choose SVNKit as client instead of JavaHL (default option)&#8230; this should solve the problem (in my case it did). If you still get that error or a similar one, maybe is due to firewall limitations, if you can&#8217;t change the configuration properly&#8230; google and good luck :^)</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2009/11/04/installing-eclipse-aptana-subclipse-svn/' addthis:title='Installing Eclipse + Aptana + Subclipse SVN ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.daveoncode.com/2009/11/04/installing-eclipse-aptana-subclipse-svn/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Aptana&#8217;s Javascript editor is too cool!</title>
		<link>http://www.daveoncode.com/2009/03/06/aptanas-javascript-editor-is-too-cool/</link>
		<comments>http://www.daveoncode.com/2009/03/06/aptanas-javascript-editor-is-too-cool/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 15:03:38 +0000</pubDate>
		<dc:creator>Davide Zanotti</dc:creator>
				<category><![CDATA[ide]]></category>
		<category><![CDATA[aptana]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.daveoncode.com/?p=324</guid>
		<description><![CDATA[I&#8217;ve just discovered that the last version of the Aptana Studio (in my case the Eclipse plugin version) has an integrated support for javadoc syntax inside js files. The beauty of this feature is that, once you have defined a function, you can just type /** and press enter and Aptana will generate automatically all [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2009/03/06/aptanas-javascript-editor-is-too-cool/' addthis:title='Aptana&#8217;s Javascript editor is too cool! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just discovered that the last version of the Aptana Studio (in my case the Eclipse plugin version) has an integrated support for javadoc syntax inside js files. The beauty of this feature is that, once you have defined a function, you can just type /** and press enter and Aptana will generate automatically all the comments for you:</p>
<p><img class="alignnone size-full wp-image-329" title="js_javadoc_aptana_1" src="http://www.daveoncode.com/wp-content/uploads/2009/03/js_javadoc_aptana_1.gif" alt="js_javadoc_aptana_1" width="410" height="171" /></p>
<p>Furthermore it will show tips including parameters description when you will use your previous defined function:</p>
<p><img class="alignnone size-full wp-image-330" title="js_javadoc_aptana_2" src="http://www.daveoncode.com/wp-content/uploads/2009/03/js_javadoc_aptana_2.gif" alt="js_javadoc_aptana_2" width="635" height="203" /></p>
<p>&#8230;and if you want to add extra &#8220;@tag&#8221;, the editor will suggest you all tags available:</p>
<p><img class="alignnone size-full wp-image-331" title="js_javadoc_aptana_3" src="http://www.daveoncode.com/wp-content/uploads/2009/03/js_javadoc_aptana_3.gif" alt="js_javadoc_aptana_3" width="545" height="217" /></p>
<p>Too cool!!! I love Aptana :-)</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2009/03/06/aptanas-javascript-editor-is-too-cool/' addthis:title='Aptana&#8217;s Javascript editor is too cool! ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.daveoncode.com/2009/03/06/aptanas-javascript-editor-is-too-cool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Associate custom file extensions to the default Aptana&#8217;s text editor</title>
		<link>http://www.daveoncode.com/2008/11/24/associate-custom-file-extensions-to-the-default-aptanas-text-editor/</link>
		<comments>http://www.daveoncode.com/2008/11/24/associate-custom-file-extensions-to-the-default-aptanas-text-editor/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 13:06:16 +0000</pubDate>
		<dc:creator>Davide Zanotti</dc:creator>
				<category><![CDATA[ide]]></category>
		<category><![CDATA[aptana]]></category>
		<category><![CDATA[custom file extensions]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[file association]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=67</guid>
		<description><![CDATA[In a project which I&#8217;m working on, the team make an intensive use of text file to include with SSI, and these files are named conventionally  .inc, Aptana by default opens these custom extensions with the default system&#8217;s editor (notepad on windows). We can tell Aptana to open the .inc or whatever extension we want [...]<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2008/11/24/associate-custom-file-extensions-to-the-default-aptanas-text-editor/' addthis:title='Associate custom file extensions to the default Aptana&#8217;s text editor ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-68 alignleft" style="margin: 0pt 10px 10px 0pt;" title="aptana" src="http://www.daveoncode.com/wp-content/uploads/2008/11/aptana.png" alt="aptana" /></p>
<p>In a project which I&#8217;m working on, the team make an intensive use of text file to include with SSI, and these files are named conventionally  <em>.inc</em>, Aptana by default opens these custom extensions with the default system&#8217;s editor (notepad on windows). We can tell Aptana to open the <em>.inc</em> or whatever extension we want with the Aptana&#8217;s text editor by simply doing the following: Choose <em><strong>window/preferences/Aptana/Editors/Generic Text</strong></em>, click <strong><em>add</em></strong> and then type our desired extension (in my case <em>*.inc</em>). Now if we double click over a <em>.inc</em> file in the project tree view, it will be opened inside Aptana.<br />
ps. The path to the settings panel may change according to the version of Aptana/Eclipse installed (I&#8217;m using the Aptana plugin for Eclipse 3.4.1)</p>
<div class="addthis_toolbox addthis_default_style addthis_32x32_style" addthis:url='http://www.daveoncode.com/2008/11/24/associate-custom-file-extensions-to-the-default-aptanas-text-editor/' addthis:title='Associate custom file extensions to the default Aptana&#8217;s text editor ' ><a class="addthis_button_preferred_1"></a><a class="addthis_button_preferred_2"></a><a class="addthis_button_preferred_3"></a><a class="addthis_button_preferred_4"></a><a class="addthis_button_compact"></a></div>]]></content:encoded>
			<wfw:commentRss>http://www.daveoncode.com/2008/11/24/associate-custom-file-extensions-to-the-default-aptanas-text-editor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

