<?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>cakebaker &#187; eclipse</title>
	<atom:link href="http://cakebaker.42dh.com/tags/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://cakebaker.42dh.com</link>
	<description>baking cakes with CakePHP</description>
	<lastBuildDate>Mon, 19 Jul 2010 14:23:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Code completion in views with Eclipse PDT</title>
		<link>http://cakebaker.42dh.com/2007/10/12/code-completion-in-views-with-eclipse-pdt/</link>
		<comments>http://cakebaker.42dh.com/2007/10/12/code-completion-in-views-with-eclipse-pdt/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 14:38:12 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/10/12/code-completion-in-views-with-eclipse-pdt/</guid>
		<description><![CDATA[If you use Eclipse PDT you probably noticed that there is no code completion in the view for helpers. The reason for that behavior is that Eclipse doesn&#8217;t know anything about CakePHP&#8217;s magic and so cannot provide code completion. Now someone called &#8220;voidstate&#8221; posted a little trick in the CakePHP Google Group which makes it [...]]]></description>
			<content:encoded><![CDATA[<p>If you use <a href="http://www.eclipse.org/pdt">Eclipse PDT</a> you probably noticed that there is no code completion in the view for helpers. The reason for that behavior is that Eclipse doesn&#8217;t know anything about CakePHP&#8217;s magic and so cannot provide code completion. </p>
<p>Now someone called &#8220;voidstate&#8221; posted a <a href="http://groups.google.com/group/cake-php/browse_thread/thread/04b94b593714b394/9e06e1964e9877f2?lnk=raot#9e06e1964e9877f2">little trick</a> in the <a href="http://groups.google.com/group/cake-php">CakePHP Google Group</a> which makes it possible to get code completion in the view for helpers. For this purpose you have to create a PHP file somewhere in your project (it doesn&#8217;t matter where) with the following content:</p>
<pre>
&lt;?php
 // stop page loading
 exit; 

// reference helpers so Eclipse provides code completion
 $ajax = new AjaxHelper();
 $cache = new CacheHelper();
 $form = new FormHelper();
 $html = new HtmlHelper();
 $javascript = new JavascriptHelper();
 $number = new NumberHelper();
 $session = new SessionHelper();
 $text = new TextHelper();
 $time = new TimeHelper();
 ?&gt;
</pre>
<p>As soon as the file is stored, you should have code completion. Thanks to voidstate for this trick!</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2007/10/12/code-completion-in-views-with-eclipse-pdt/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>When the repository url changes</title>
		<link>http://cakebaker.42dh.com/2007/09/07/when-the-repository-url-changes/</link>
		<comments>http://cakebaker.42dh.com/2007/09/07/when-the-repository-url-changes/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 08:11:01 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[eclipse]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/2007/09/07/when-the-repository-url-changes/</guid>
		<description><![CDATA[Sometimes it happens that the url of a (subversion) repository changes, e.g. if there is a protocol switch from http to https. If you use an IDE like Eclipse it means you have to change the settings for that repository. Unfortunately, it is not that obvious how to accomplish this in Eclipse (at least not [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it happens that the url of a (subversion) repository changes, e.g. if there is a protocol switch from http to https. If you use an IDE like <a href="http://www.eclipse.org">Eclipse</a> it means you have to change the settings for that repository. Unfortunately, it is not that obvious how to accomplish this in Eclipse (at least not for me). If you select &#8220;Properties&#8221; of a repository in the &#8220;SVN Repository Exploring&#8221; perspective, you will see the url, but you cannot change it:</p>
<p><img src='http://cakebaker.42dh.com/wp-content/uploads/2007/09/svn_properties.png' alt='SVN properties' /></p>
<p>So my workaround was to remove the project(s) and the repository from Eclipse, and to recreate them using the new repository url. It works, but it is a bit cumbersome (fortunately you do not have to do that very often).</p>
<p>But now I found a better solution. There exists a &#8220;Relocate&#8221; wizard for this purpose, which makes it really easy. To start it you have to select a repository in the &#8220;SVN Repository Exploring&#8221; perspective and with a right mouse-click you get the &#8220;Relocate&#8221; menu entry. The first dialog shows some explanations plus the affected projects:</p>
<p><img src='http://cakebaker.42dh.com/wp-content/uploads/2007/09/relocate_1.png' alt='Relocate, Step 1' /></p>
<p>In the next and last step you can specify the new url:</p>
<p><img src='http://cakebaker.42dh.com/wp-content/uploads/2007/09/relocate_2.png' alt='Relocate, Step 2' /></p>
<p>That&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2007/09/07/when-the-repository-url-changes/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Migration from PHPEclipse to PHP IDE</title>
		<link>http://cakebaker.42dh.com/2006/12/27/migration-from-phpeclipse-to-php-ide/</link>
		<comments>http://cakebaker.42dh.com/2006/12/27/migration-from-phpeclipse-to-php-ide/#comments</comments>
		<pubDate>Wed, 27 Dec 2006 07:13:59 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[phpeclipse]]></category>
		<category><![CDATA[phpide]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/12/27/migration-from-phpeclipse-to-php-ide/</guid>
		<description><![CDATA[Yesterday, I migrated from PHPEclipse (and Eclipse 3.1) to the PHP IDE (and Eclipse 3.2). After importing the projects to the PHP IDE I noticed that the Outline view (which lists class variables, methods, etc.) and the auto-completion didn&#8217;t work. Hm. The problem was that the .project file still contained references to PHPEclipse. So I [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I migrated from <a href="http://phpeclipse.de">PHPEclipse</a> (and Eclipse 3.1) to the <a href="http://www.eclipse.org/php/">PHP IDE</a> (and Eclipse 3.2). After importing the projects to the PHP IDE I noticed that the Outline view (which lists class variables, methods, etc.) and the auto-completion didn&#8217;t work. Hm. The problem was that the .project file still contained references to PHPEclipse. So I had to replace:</p>
<pre>
&lt;buildSpec&gt;
    &lt;buildCommand&gt;
        &lt;name&gt;net.sourceforge.phpeclipse.parserbuilder&lt;/name&gt;
        &lt;arguments&gt;
        &lt;/arguments&gt;
    &lt;/buildCommand&gt;
&lt;/buildSpec&gt;
&lt;natures&gt;
    &lt;nature&gt;net.sourceforge.phpeclipse.phpnature&lt;/nature&gt;
&lt;/natures&gt;
</pre>
<p>with:</p>
<pre>
&lt;buildSpec&gt;
    &lt;buildCommand&gt;
        &lt;name&gt;org.eclipse.wst.validation.validationbuilder&lt;/name&gt;
        &lt;arguments&gt;
        &lt;/arguments&gt;
    &lt;/buildCommand&gt;
    &lt;buildCommand&gt;
        &lt;name&gt;org.eclipse.php.core.PhpIncrementalProjectBuilder&lt;/name&gt;
        &lt;arguments&gt;
        &lt;/arguments&gt;
    &lt;/buildCommand&gt;
&lt;/buildSpec&gt;
&lt;natures&gt;
    &lt;nature&gt;org.eclipse.php.core.PHPNature&lt;/nature&gt;
&lt;/natures&gt;
</pre>
<p>And voilà, the project was now recognized as a PHP project, and both Outline view and auto-completion worked. </p>
<p>Thanks to Seva Lapsha for this tip!</p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/12/27/migration-from-phpeclipse-to-php-ide/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Syntaxhighlighting for .ctp files in Eclipse</title>
		<link>http://cakebaker.42dh.com/2006/12/26/syntaxhighlighting-for-ctp-files-in-eclipse/</link>
		<comments>http://cakebaker.42dh.com/2006/12/26/syntaxhighlighting-for-ctp-files-in-eclipse/#comments</comments>
		<pubDate>Tue, 26 Dec 2006 07:43:10 +0000</pubDate>
		<dc:creator>cakebaker</dc:creator>
				<category><![CDATA[cakephp]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://cakebaker.42dh.com/2006/12/26/syntaxhighlighting-for-ctp-files-in-eclipse/</guid>
		<description><![CDATA[CakePHP 1.2 uses a new file extension for view files: .ctp (which stands for Cake Template). By default, there is no syntaxhighlighting in Eclipse for files with such an extension. So we have to manually associate .ctp with PHP. In Eclipse 3.2 we can do that in the following preferences page (it should be similar [...]]]></description>
			<content:encoded><![CDATA[<p>CakePHP 1.2 uses a new file extension for view files: .ctp (which stands for Cake Template). By default, there is no syntaxhighlighting in Eclipse for files with such an extension. So we have to manually associate .ctp with PHP. In Eclipse 3.2 we can do that in the following preferences page (it should be similar in Eclipse 3.1.x):</p>
<p><img src="http://cakebaker.42dh.com/wp-content/uploads/2006/12/preferences_32.png" alt="Preferences Dialog of Eclipse"/></p>
]]></content:encoded>
			<wfw:commentRss>http://cakebaker.42dh.com/2006/12/26/syntaxhighlighting-for-ctp-files-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>
