<?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>Johnvh.com - online home of John Van Horn &#187; Flex</title>
	<atom:link href="http://johnvh.com/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnvh.com</link>
	<description>Online home of Dallas, TX based web developer John Van Horn</description>
	<lastBuildDate>Fri, 13 Nov 2009 05:42:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ignoring files in Flex Builder Navigator</title>
		<link>http://johnvh.com/2009/03/30/ignoring-files-in-flex-builder-navigator/</link>
		<comments>http://johnvh.com/2009/03/30/ignoring-files-in-flex-builder-navigator/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 04:08:53 +0000</pubDate>
		<dc:creator>johnvh</dc:creator>
				<category><![CDATA[Flash & Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Builder]]></category>

		<guid isPermaLink="false">http://johnvh.com/?p=187</guid>
		<description><![CDATA[I don't like seeing .svn or CVS files in my Flex Builder/Eclipse workspace. I'll never need to edit those files directly, and if I do, I won't use Flex Builder to do it. But if they're in your project, they'll show up in the Navigator panel. Everywhere.
Fortunately, Eclipse provides a way to filter files in [...]]]></description>
			<content:encoded><![CDATA[<p>I don't like seeing .svn or CVS files in my Flex Builder/Eclipse workspace. I'll never need to edit those files directly, and if I do, I won't use Flex Builder to do it. But if they're in your project, they'll show up in the Navigator panel. Everywhere.</p>
<div id="attachment_188" class="wp-caption alignleft" style="width: 410px"><img src="http://johnvh.com/wp-content/uploads/2009/03/flex-navigator-before.png" alt="Every directory in your project will have a .svn folder." title="flex-navigator-before" width="400" height="410" class="size-full wp-image-188" /><p class="wp-caption-text">Every directory in your project will have a .svn folder.</p></div>
<p>Fortunately, Eclipse provides a way to filter files in the Navigator, but a) it's rather hidden, and b) it's not obvious how to add filters. In the Navigator panel, hit the down arrow in the top right corner and select "Filters...".</p>
<div id="attachment_192" class="wp-caption alignleft" style="width: 535px"><img src="http://johnvh.com/wp-content/uploads/2009/03/flex-navigator-dropdown.png" alt="Navigator panel options." title="flex-navigator-dropdown" width="525" height="254" class="size-full wp-image-192" /><p class="wp-caption-text">Navigator panel options.</p></div>
<p>Here's the list of filters you get by default:</p>
<div id="attachment_193" class="wp-caption alignleft" style="width: 394px"><img src="http://johnvh.com/wp-content/uploads/2009/03/flex-navigator-filters-default.png" alt="Default Filters" title="flex-navigator-filters-default" width="384" height="472" class="size-full wp-image-193" /><p class="wp-caption-text">Default Filters</p></div>
<p>What? No "add filter" option? No "edit"? I guess you could use the ".*" filter, but that would hide every file or directory whose name starts with ".". That may or may not be acceptable, depending on the type of project or files your working with. What if you had a <code>.htaccess</code> file in your project? </p>
<p>Fortunately again, there is a mechanism for adding additional filters, but it's not obvious. It involves editing the <em>plugins.xml</em> file for the Flex Builder editor plugin. You can find this plugin in the eclipse plugins folder (located in same place as <code>Flex Builder.app</code>) in your Flex Builder install. It's called <code>com.adobe.flexbuilder.standalone_3.0.194161</code>, and it's located for me at:</p>
<div class="igBar"><span id="lcode-3"><a href="#" onclick="javascript:showPlainTxt('code-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-3">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/Applications/Adobe Flex Builder <span style="color:#800000;color:#800000;">3</span>/plugins/com.<span style="">adobe</span>.<span style="">flexbuilder</span>.<span style="">standalone_3</span>.<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">194161</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>So navigate there, and edit <code>plugins.xml</code>.  You're looking for the <code>extension</code> node whose attribute point is "org.eclipse.ui.ide.resourceFilters". Under that node is where the default filters are defined. All you have to do is add another one and save the file:</p>
<div id="attachment_195" class="wp-caption alignleft" style="width: 478px"><img src="http://johnvh.com/wp-content/uploads/2009/03/flex-plugin-xml.png" alt="Flex Builder editor plugin.xml, with svn filter added." title="flex-plugin-xml" width="468" height="359" class="size-full wp-image-195" /><p class="wp-caption-text">Flex Builder editor plugin.xml, with svn filter added.</p></div>
<p>The remaining step is to restart Flex Builder, using the <code>-clean</code> option. Since the plugin.xml file is either cached or compiled in somewhere, using the <code>-clean</code> option tells the Eclipse executable to reload all plugins and configs. This requires use of the Terminal:</p>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$ cd /Applications/Adobe\ Flex\ Builder\ <span style="color:#800000;color:#800000;">3</span>/Flex\ Builder.<span style="">app</span>/Contents/MacOS</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$ ./FlexBuilder -clean </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>When Flex Builder launches, you should now see the filter you just added in the filters window. Thanks to <a href="http://robertames.com/">Robert Ames</a> for telling me how to launch Flex Builder with arguments.</p>
<div id="attachment_199" class="wp-caption alignleft" style="width: 395px"><img src="http://johnvh.com/wp-content/uploads/2009/03/flex-navigator-after.png" alt="New filter added." title="flex-navigator-after" width="385" height="472" class="size-full wp-image-199" /><p class="wp-caption-text">New filter added.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://johnvh.com/2009/03/30/ignoring-files-in-flex-builder-navigator/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
