<?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>Radek's Tech Blog &#187; icons</title>
	<atom:link href="http://urbas.tk/index.php/tag/icons/feed/" rel="self" type="application/rss+xml" />
	<link>http://urbas.tk</link>
	<description>Radoslaw H. Urbas homepage / blog</description>
	<lastBuildDate>Tue, 01 Jun 2010 20:31:19 +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>Eclipse Jobs API &#8211; Errata</title>
		<link>http://urbas.tk/index.php/2009/02/04/eclipse-jobs-api-errata/</link>
		<comments>http://urbas.tk/index.php/2009/02/04/eclipse-jobs-api-errata/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 17:19:54 +0000</pubDate>
		<dc:creator>Radoslaw Urbas</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[jobs api]]></category>
		<category><![CDATA[progress]]></category>
		<category><![CDATA[rcp]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=48</guid>
		<description><![CDATA[My colleague Lukasz Milewski has just spotted a missing piece in a code sample for creating icons presented in previous post. In the screenshot you can see nice icons for currently running Jobs as well as for scheduled Jobs. You need to set two properties in your Job implementation to associate an icon with it. [...]]]></description>
			<content:encoded><![CDATA[<p>My colleague <a href="http://milewski.ws/" target="_blank">Lukasz Milewski</a> has just spotted a missing piece in a code sample for creating icons presented in previous post. In the screenshot you can see nice icons for currently running Jobs as well as for scheduled Jobs. You need to set two properties in your Job implementation to associate an icon with it.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">	setProperty<span style="color: #009900;">&#40;</span>IProgressConstants.<span style="color: #006633;">KEEP_PROPERTY</span>, <span style="color: #003399;">Boolean</span>.<span style="color: #000066; font-weight: bold;">TRUE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	setProperty<span style="color: #009900;">&#40;</span>IProgressConstants.<span style="color: #006633;">ICON_PROPERTY</span>, ImageDescriptorFactory
		.<span style="color: #006633;">createImageDescriptor</span><span style="color: #009900;">&#40;</span>ICON_NAME<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://urbas.tk/index.php/2009/02/04/eclipse-jobs-api-errata/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Eclipse RCP tips and tricks</title>
		<link>http://urbas.tk/index.php/2008/09/09/eclipse-rcp-tips-and-tricks/</link>
		<comments>http://urbas.tk/index.php/2008/09/09/eclipse-rcp-tips-and-tricks/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 21:49:26 +0000</pubDate>
		<dc:creator>Radoslaw Urbas</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[decoration context]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[jobs progress bar]]></category>
		<category><![CDATA[navigator icons]]></category>
		<category><![CDATA[rcp]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=42</guid>
		<description><![CDATA[Recently I had to do couple of tricks Eclipse RCP applications. Basically all of the pieces of code presented below need to be placed in method initialize(IWorkbenchConfigurer configurer). You need to override this method in WorkbenchAdvisor subclass. Displaying icons in Navigator View final String ICONS_PATH = &#34;icons/full/&#34;; final String PATH_OBJECT = ICONS_PATH + &#34;obj16/&#34;; Bundle [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to do couple of tricks Eclipse RCP applications. Basically all of the pieces of code presented below need to be placed in method <code>initialize(IWorkbenchConfigurer configurer)</code>. You need to override this method in <code>WorkbenchAdvisor</code> subclass.</p>
<ul>
<li>Displaying icons in Navigator View

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">final</span> <span style="color: #003399;">String</span> ICONS_PATH <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;icons/full/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">final</span> <span style="color: #003399;">String</span> PATH_OBJECT <span style="color: #339933;">=</span> ICONS_PATH <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;obj16/&quot;</span><span style="color: #339933;">;</span>
Bundle ideBundle <span style="color: #339933;">=</span> Platform.<span style="color: #006633;">getBundle</span><span style="color: #009900;">&#40;</span>IDEWorkbenchPlugin.<span style="color: #006633;">IDE_WORKBENCH</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
declareWorkbenchImage<span style="color: #009900;">&#40;</span>configurer, ideBundle,
IDE.<span style="color: #006633;">SharedImages</span>.<span style="color: #006633;">IMG_OBJ_PROJECT</span>, PATH_OBJECT <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;prj_obj.gif&quot;</span>, <span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
declareWorkbenchImage<span style="color: #009900;">&#40;</span>configurer, ideBundle,
IDE.<span style="color: #006633;">SharedImages</span>.<span style="color: #006633;">IMG_OBJ_PROJECT_CLOSED</span>, PATH_OBJECT
<span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;cprj_obj.gif&quot;</span>, <span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li>Enabling Decoration Context

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">DecorationContext dc <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>DecorationContext<span style="color: #009900;">&#41;</span> DecorationContext.<span style="color: #006633;">DEFAULT_CONTEXT</span><span style="color: #339933;">;</span>
dc.<span style="color: #006633;">putProperty</span><span style="color: #009900;">&#40;</span>IDecoration.<span style="color: #006633;">ENABLE_REPLACE</span>, <span style="color: #003399;">Boolean</span>.<span style="color: #000066; font-weight: bold;">TRUE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li>Enabling Jobs Progress Bar

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">IWorkbench wb <span style="color: #339933;">=</span> PlatformUI.<span style="color: #006633;">getWorkbench</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wb.<span style="color: #006633;">getProgressService</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
</ul>
<p>Probably you don&#8217;t need any of those when running your plug-ins in Eclipse IDE. The tricky part is running it in a stripped to minimum RCP based applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://urbas.tk/index.php/2008/09/09/eclipse-rcp-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
