<?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>bingshui.org &#187; Eclipse</title>
	<atom:link href="http://www.bingshui.org/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bingshui.org</link>
	<description>the Life of Zim</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:27:42 +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>Eclipse &#8220;Switch Workspace&#8221; List</title>
		<link>http://www.bingshui.org/tech/eclipse-switch-workspace-list/</link>
		<comments>http://www.bingshui.org/tech/eclipse-switch-workspace-list/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 16:59:21 +0000</pubDate>
		<dc:creator>dzimney</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[prefs]]></category>
		<category><![CDATA[Switch Workspace]]></category>
		<category><![CDATA[Workspace]]></category>

		<guid isPermaLink="false">http://www.bingshui.org/?p=1192</guid>
		<description><![CDATA[Okay, so in Eclipse you can switch your workspace, right? Well, what if you open a workspace that you no longer use? It just keeps showing up on the list of recent workspaces. So, how do you remove it? Pretty simply actually. You&#8217;ll need to navigate through some hidden folders to do so, in which [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, so in Eclipse you can switch your workspace, right? Well, what if you open a workspace that you no longer use? It just keeps showing up on the list of recent workspaces. So, how do you remove it? Pretty simply actually.</p>
<p>You&#8217;ll need to navigate through some <i>hidden</i> folders to do so, in which case it&#8217;s usually easier to do through a Terminal window. Note: these instructions will work with Linux and OS X. If you&#8217;re on Windows, you&#8217;ll have to call Bill Gates, although it&#8217;s possible this will also work.</p>
<p>In the terminal, navigate to <code>eclipse/configuration/.settings</code>, where <code>eclipse</code> is your Eclipse installation folder. In this folder there is a file called: <code>org.eclipse.ui.ide.prefs</code>. Edit this file, and you should quickly see the line that says &#8220;RECENT_WORKSPACES=&#8221; followed by various paths to workspaces you&#8217;ve used. Simply delete the workspaces you don&#8217;t want. They are separated by &#8220;/n&#8221;. So make sure to leave a &#8220;/n&#8221; between each workspace. Additionally, you must leave the information on a single line. Do not break it out to multiple lines.</p>
<p><b>QUICK ANSWER:</b> eclipse/configuration/.settings/org.eclipse.ui.ide.prefs</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bingshui.org/tech/eclipse-switch-workspace-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing with the Android SDK on the Nexus One</title>
		<link>http://www.bingshui.org/tech/playing-with-the-android-sdk-on-the-nexus-one/</link>
		<comments>http://www.bingshui.org/tech/playing-with-the-android-sdk-on-the-nexus-one/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 02:22:49 +0000</pubDate>
		<dc:creator>dzimney</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Android 2.1]]></category>
		<category><![CDATA[Android SDK]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Nexus One]]></category>
		<category><![CDATA[OS X 10.6]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://www.bingshui.org/?p=1084</guid>
		<description><![CDATA[About a week ago I got the Nexus One from Google. Today I decided to delve into the SDK and see if I could get a &#8220;Hello, World!&#8221; script running on the phone. Following the Android Developers website, I downloaded the SDK and installed the Eclipse plugin for Android. I was able to get the [...]]]></description>
			<content:encoded><![CDATA[<p>About a week ago I got the <a href="http://www.google.com/phone/">Nexus One</a> from <a href="http://google.com">Google</a>. Today I decided to delve into the SDK and see if I could get a &#8220;Hello, World!&#8221; script running on the phone. Following the <a href="http://developer.android.com/index.html">Android Developers</a> website, I downloaded the SDK and installed the <a href="http://www.eclipse.org/">Eclipse</a> plugin for Android. I was able to get the <a href="http://developer.android.com/guide/tutorials/hello-world.html">Hello, World! script</a> running fine in the virtual Android machine, but when I started trying to connect my phone for debugging I started running into issues. I&#8217;m using the Nexus One which is currently on Android 2.1 and I&#8217;m on OS X 10.6 (Snow Leopard). It seemed that whenever I ran the command <code>adb devices</code>in the terminal, I got an empty list of devices. Frustrating. </p>
<p>Well after scouring the internets with no results, I remembered that when I installed the SDKs with Eclipse, there seemed to be a lack of overlap between the two. When installing the Eclipse Plugin, it creates a folder in the workspace called com.google.android.sdk, except this SDK doesn&#8217;t line up with <a href="http://developer.android.com/sdk/android-2.1.html">the SDK from the Android Developers site</a>. When I had initially put things together I simply copied over some of the files created by Eclipse to avoid breaking the plugin. But when running <code>adb devices</code>, it was running from the Eclipse provided SDK. Upon trying again with the <code>adb</code> command from the Android Developer&#8217;s SDK, the phone shows up on the list of devices. So now I&#8217;m copying arranging files to use the good SDK.</p>
<p>Not sure if this will have an effect on the Eclipse plugin. I&#8217;m assuming not. My guess is that the Eclipse plugin was simply packaged with an older version of the SDK. We&#8217;ll see though. So happy to see the Android SDK is in Java though. Way better than the iPhone SDK.</p>
<p>UPDATE:<br />
Looks like you don&#8217;t want to overwrite any files. Simply leave the com.google.android.sdk directory as is and point to the downloaded SDK in the Android preferences pane in Eclipse (SDK Location). I had to delete and recreate my helloworld project in Eclipse to repair the errors due to the missing core library (android.jar).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bingshui.org/tech/playing-with-the-android-sdk-on-the-nexus-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse: Resources, Resolved Locations, and the .PREFS file that links them</title>
		<link>http://www.bingshui.org/tech/eclipse-resources-resolved-locations-and-the-prefs-file-that-links-them-2/</link>
		<comments>http://www.bingshui.org/tech/eclipse-resources-resolved-locations-and-the-prefs-file-that-links-them-2/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 20:45:00 +0000</pubDate>
		<dc:creator>dzimney</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[linked libraries]]></category>
		<category><![CDATA[linked resources]]></category>
		<category><![CDATA[locationURI]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[resolved location]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://wordpress.bingshue.com/?p=56</guid>
		<description><![CDATA[I&#8217;ve finally found the Eclipse prefs file that stores the local file path to linked resources (linked libraries). Linked resources are basically shortcuts to files/folders on your local system. Buried in the Workspace/.metadata/.plugins/loc.eclipse.core.runtime/.settings/ folder (on OS X), the loc.eclipse.core.resources.prefs file contains the absolute paths to those linked libraries. A few months ago I began working [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally found the Eclipse prefs file that stores the local file path to linked resources (linked libraries). Linked resources are basically shortcuts to files/folders on your local system. Buried in the <em><span style="color:#940f04;">Workspace/.metadata/.plugins/loc.eclipse.core.runtime/.settings/</span></em> folder (on OS X), the <em><span style="color:#940f04;">loc.eclipse.core.resources.prefs</span></em> file contains the absolute paths to those linked libraries.</p>
<p><a href="http://3.bp.blogspot.com/_L7Xyjw2P_XI/SRySwErgDjI/AAAAAAAAHlw/mBw0az6Reww/s1600-h/eclipse_ide.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img id="BLOGGER_PHOTO_ID_5268247018704211506" style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 150px; height: 99px;" src="http://3.bp.blogspot.com/_L7Xyjw2P_XI/SRySwErgDjI/AAAAAAAAHlw/mBw0az6Reww/s320/eclipse_ide.jpg" border="0" alt="" /></a>A few months ago I began working with Ant tasks in Eclipse. Specifically, I was using <a href="http://www.google.com/url?sa=U&amp;start=1&amp;q=http://code.google.com/p/fdtkit/&amp;ei=WZMcSe-KGJzENI_zrdUJ&amp;sig2=X8NlezKVlj5LDrB9nXKvQw&amp;usg=AFQjCNHPTM92c6YIUYeK--esf76oAG7iXg">fdtkit</a> along with Ant in Eclipse to generate JavaDocs for my Actionscirpt 2.0 libraries using <a href="http://www.google.com/url?sa=U&amp;start=1&amp;q=http://www.badgers-in-foil.co.uk/projects/as2api/&amp;ei=mJMcSeiWH4jKNIvGjM8J&amp;sig2=OpvGNM2cUGVqv9MlF-xbTw&amp;usg=AFQjCNHVvgXIwqa5OXEEQf2OdDq4eKgNjg">as2api</a>. For the most part fdtkit is a fabulous tool, or rather toolbox for generating JavaDocs and numerous other tasks with the use of Ant. However, the issue that I very soon found myself confronted with was documenting classes from linked libraries in Eclipse. Normally I will set up a project with a <em>src</em> containing code specific to that project, and then make use of linked libraries to make use of code from other projects/api&#8217;s. When running an Ant task to create my JavaDocs I was unable to intelligently identify the paths to my linked libraries to add to the documentation.</p>
<p>The way Eclipse and FDT handle linked libraries is through the IDE and the <em>.project</em> file found in the root of the project folder. Opening the <em>.project</em> file, you might see something like this (assuming you are using linked libraries):</p>
<blockquote><p><span class="Apple-style-span" style="font-family:'courier new'; font-size:11px;">&lt;link&gt;<br />
&lt;name&gt;core&lt;/name&gt;<br />
&lt;type&gt;core&lt;/type&gt;<br />
&lt;locationURI&gt;FP8&lt;/locationURI&gt;<br />
&lt;/link&gt;</span></p></blockquote>
<p>Looking at the link object, you will see two important pieces of information the <em>name</em> property and the <em>locationURI</em> property. Now the <em>name</em> property represents the name associated with the linked library (obviously) and then there&#8217;s the <em>locationURI</em>. The <em>locationURI</em> is a reference to the linked resource. The problem here is where the hell is the identity of that <em>locationURI</em>? In the Eclipse IDE you can select a linked library in the Explorer view and then examine it with the properties view. Here you will see the value for the <em>resolved location</em>, which is the full, absolute path to the linked library on your local system. But how the hell to I get that property with Ant? How to I access it all? Well, I&#8217;ve been asking that question for quite some time, scouring the Internet and finding nothing. Today, I found my answer.</p>
<p>Determined to know how linked resources were being saved on my system I began digging deep in the my Eclipse folder to find property in some buried file. Note, I&#8217;m running Eclipse 3.3 on OS X. I would imagine the path is similar on Windows, but probably not exactly the same (I&#8217;m guessing it&#8217;s pretty damn close to the same in Linux). Anyway&#8230;</p>
<p>The file location is: <em>${your_eclipse_workspace_folder}/.metadata/.plugins/loc.eclipse.core.runtime/.settings/loc.eclipse.core.resources.prefs</em><br />
This file looks something like:</p>
<blockquote><p><span class="Apple-style-span" style="font-family:'courier new'; font-size:11px;">pathvariable.FP7 = /Users/local/Workspace/fdtkit/lib/FP7<br />
pathvariable.FP8 = /Users/local/Workspace/fdtkit/lib/FP8<br />
pathvariable.FP9 = /Users/local/Workspace/fdtkit/lib/FP9</span></p></blockquote>
<p>So now, through Ant task it is possible to have your build.xml (relative to your project) parse the <em>.project</em> file of the project for linked libraries and with the <em>locationURI</em> parameters to grab the absolute path to the class library from the <em>loc.eclipse.core.resources.prefs</em> file.</p>
<p>Please feel free to contact me if you have any questions regarding this post. I&#8217;m sure this isn&#8217;t the most straight forward explanation of what I&#8217;ve found here, but I&#8217;m a little to jacked up on coffee to form clear coherent thoughts right now.</p>
<p>Note: Linked resources are <em>Workspace</em> specific. Different workspaces have a different set of linked resources.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bingshui.org/tech/eclipse-resources-resolved-locations-and-the-prefs-file-that-links-them-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

