<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Eclipse RCP tips and tricks</title>
	<atom:link href="http://urbas.tk/index.php/2008/09/09/eclipse-rcp-tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://urbas.tk/index.php/2008/09/09/eclipse-rcp-tips-and-tricks/</link>
	<description>Radoslaw H. Urbas homepage / blog</description>
	<lastBuildDate>Mon, 28 Nov 2011 15:23:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Gene Snider</title>
		<link>http://urbas.tk/index.php/2008/09/09/eclipse-rcp-tips-and-tricks/comment-page-1/#comment-23422</link>
		<dc:creator>Gene Snider</dc:creator>
		<pubDate>Sun, 31 Jul 2011 16:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://urbas.tk/?p=42#comment-23422</guid>
		<description>In Helios SR-1 I also had to do this, the API has changed so I used this variant load the open and closed project icons into the shared image library.

		String ICON_PATH = &quot;icons/full/obj16/&quot;;
		// Find the project icon in the IDE bundle and below
		Enumeration e = Platform.getBundle(&quot;org.eclipse.ui.ide&quot;).findEntries(ICON_PATH, &quot;prj_obj.gif&quot;, true);
		while (e.hasMoreElements()) {
			Object element = e.nextElement();
			if (element instanceof URL) {
				URL projectIconURL = (URL)element;
				configurer.declareImage(IDE.SharedImages.IMG_OBJ_PROJECT,
						ImageDescriptor.createFromURL(projectIconURL), true);
			}
		}
		e = Platform.getBundle(&quot;org.eclipse.ui.ide&quot;).findEntries(ICON_PATH, &quot;cprj_obj.gif&quot;, true);
		while (e.hasMoreElements()) {
			Object element = e.nextElement();
			if (element instanceof URL) {
				URL closedProjectIconURL = (URL)element;
				configurer.declareImage(IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED,
						ImageDescriptor.createFromURL(closedProjectIconURL), true);
			}
		}</description>
		<content:encoded><![CDATA[<p>In Helios SR-1 I also had to do this, the API has changed so I used this variant load the open and closed project icons into the shared image library.</p>
<p>		String ICON_PATH = &#8220;icons/full/obj16/&#8221;;<br />
		// Find the project icon in the IDE bundle and below<br />
		Enumeration e = Platform.getBundle(&#8220;org.eclipse.ui.ide&#8221;).findEntries(ICON_PATH, &#8220;prj_obj.gif&#8221;, true);<br />
		while (e.hasMoreElements()) {<br />
			Object element = e.nextElement();<br />
			if (element instanceof URL) {<br />
				URL projectIconURL = (URL)element;<br />
				configurer.declareImage(IDE.SharedImages.IMG_OBJ_PROJECT,<br />
						ImageDescriptor.createFromURL(projectIconURL), true);<br />
			}<br />
		}<br />
		e = Platform.getBundle(&#8220;org.eclipse.ui.ide&#8221;).findEntries(ICON_PATH, &#8220;cprj_obj.gif&#8221;, true);<br />
		while (e.hasMoreElements()) {<br />
			Object element = e.nextElement();<br />
			if (element instanceof URL) {<br />
				URL closedProjectIconURL = (URL)element;<br />
				configurer.declareImage(IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED,<br />
						ImageDescriptor.createFromURL(closedProjectIconURL), true);<br />
			}<br />
		}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

