<?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>Willian Mitsuda.com &#187; Eclipse</title>
	<atom:link href="http://www.willianmitsuda.com/category/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.willianmitsuda.com</link>
	<description></description>
	<lastBuildDate>Sun, 24 Aug 2008 03:58:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Eclipse Plugin Development Tip and Tricks</title>
		<link>http://www.willianmitsuda.com/2008/02/07/eclipse-plugin-development-tip-and-tricks/</link>
		<comments>http://www.willianmitsuda.com/2008/02/07/eclipse-plugin-development-tip-and-tricks/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 20:31:46 +0000</pubDate>
		<dc:creator>Willian Mitsuda</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[jface]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[swt]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.willianmitsuda.com/2008/02/07/eclipse-plugin-development-tip-and-tricks/</guid>
		<description><![CDATA[Some quick and dirty nuggets of information I got while doing plugin development in Eclipse platform. For most of them I didn&#8217;t find documentation, so I hope Google will index this for others stumbling on similar needs.
Need to create a dialog for displaying and selecting from a list of items with filtering support, similar to [...]]]></description>
			<content:encoded><![CDATA[<p>Some quick and dirty nuggets of information I got while doing plugin development in Eclipse platform. For most of them I didn&#8217;t find documentation, so I hope Google will index this for others stumbling on similar needs.</p>
<p><strong>Need to create a dialog for displaying and selecting from a list of items with filtering support, similar to Open Type/Resource?</strong></p>
<p>Subclass <a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/dialogs/FilteredItemsSelectionDialog.html">FilteredItemsSelectionDialog</a> (since Eclipse 3.3). Override methods to define your providers and filtering policy.</p>
<p>Similar implementations are Open Task dialog from Mylyn (Ctrl+F12) and Open Plug-in Artifact from PDE 3.4 (Ctrl+Shift+A). You can take a look at their source code to see how they were implemented. If using Eclipse 3.4, use the cool <a href="http://www.eclipse.org/pde/incubator/spy/index.php">Plugin Spy</a> (Alt+Shift+F1) while dialog is open to discover and get linked to the class source code.</p>
<p><img src="http://www.willianmitsuda.com/wp-content/uploads/eclipse_tips/spy_opentype.gif" alt="spy_opentype.gif" border="0" height="400" width="336" /></p>
<p><strong>How to make an ToolItem produced by an IAction show both text and image when working with IToolBarManager?</strong></p>
<p>When working with raw SWT <a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/widgets/ToolBar.html">ToolBar</a>/<a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/widgets/ToolItem.html">ToolItem</a> this is easily accomplished. But when you are working with JFace <a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/action/IToolBarManager.html">IToolbarManager</a>/<a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/action/IAction.html">IAction</a>, you will see that even if you define both text and image for an IAction using #setText(String) and #setImage(ImageDescriptor), the resulting control will show only the image. No need to curse JFace developers!</p>
<p>The ToolItem creation itself is delegated to an <a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/action/IContributionItem.html">IContributionItem</a>. When you invoke IToolBarManager#add(IAction), the action is encapsulated inside an IContributionItem implementation instance, <a href="http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/action/ActionContributionItem.html">ActionContributionItem</a>, whose policy is: if the IAction defines only text, the ToolItem has only text; if the IAction defines an image, use only the image, regardless of text presence.</p>
<p>If you want to display text and image, you need to manually create an ActionContributionItem and override the default policy calling ActionContributionItem.setMode(ActionContributionItem.MODE_FORCE_TEXT).</p>
<pre class="brush: java;">
IAction action = new MyAction();
ActionContributionItem ci = new ActionContributionItem(action);
ci.setMode(ActionContributionItem.MODE_FORCE_TEXT);
IToolBarManager tbm = new ToolBarManager();
tbm.add(ci);
</pre>
<p>This way, the ToolItem will display text and image, positioned according to the ToolBar style: text under image by default; text after image, if using SWT.RIGHT style.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willianmitsuda.com/2008/02/07/eclipse-plugin-development-tip-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mirroring Callisto Update Site</title>
		<link>http://www.willianmitsuda.com/2007/03/09/mirroring-callisto-update-site/</link>
		<comments>http://www.willianmitsuda.com/2007/03/09/mirroring-callisto-update-site/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 20:22:13 +0000</pubDate>
		<dc:creator>Willian Mitsuda</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.willianmitsuda.com/2007/03/09/mirroring-callisto-update-site/</guid>
		<description><![CDATA[It is possible to make a local mirror of all Callisto update site with a little known command:
java -jar startup.jar -application org.eclipse.update.core.standaloneUpdate -command mirror -from http://download.eclipse.org/callisto/releases -to c:\eclipse-mirror -mirrorURL http://your.local.domain
Run this command from Eclipse install directory (i.e. where startup.jar is).&#160;
Replace &#34;c:\eclipse-mirror&#34; with the local directory where the update site contents will be copied to, and [...]]]></description>
			<content:encoded><![CDATA[<p>It is possible to make a local mirror of all Callisto update site with a little known command:</p>
<p>java -jar startup.jar -application org.eclipse.update.core.standaloneUpdate -command mirror -from http://download.eclipse.org/callisto/releases -to c:\eclipse-mirror -mirrorURL http://your.local.domain</p>
<p>Run this command from Eclipse install directory (i.e. where startup.jar is).&nbsp;</p>
<p>Replace &quot;c:\eclipse-mirror&quot; with the local directory where the update site contents will be copied to, and &quot;http://your.local.domain&quot; with a URL which will point to the directory&nbsp;you informed.</p>
<p>Of course you will need to install a local web server, like <a href="http://httpd.apache.org">Apache HTTPD</a> and configure it according the directory/URL you specified before.</p>
<p>This is useful for making available a full Callisto release to internal corporate users, for example, reducing the bandwidth normally used with dozens of users downloading the same bits from external Callisto sites.</p>
<p>This feature also can be used to mirror any Eclipse update site and it is documented in more details <a href="http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/update_standalone.html">here</a>.&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willianmitsuda.com/2007/03/09/mirroring-callisto-update-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse Skins Reloaded</title>
		<link>http://www.willianmitsuda.com/2006/04/16/eclipse-skins-reloaded/</link>
		<comments>http://www.willianmitsuda.com/2006/04/16/eclipse-skins-reloaded/#comments</comments>
		<pubDate>Mon, 17 Apr 2006 01:10:18 +0000</pubDate>
		<dc:creator>Willian Mitsuda</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.willianmitsuda.com/2006/04/16/eclipse-skins-reloaded/</guid>
		<description><![CDATA[After months, I finally got some time and updated the VS Presentation. It works now in Eclipse 3.1.2 and Eclipse 3.2 RC1. Check it out! 


&#160;
]]></description>
			<content:encoded><![CDATA[<p>After months, I finally got some time and updated the VS Presentation. It works now in Eclipse 3.1.2 and Eclipse 3.2 RC1. <a href="/eclipse-plugins/eclipse-skins">Check it out!</a> </p>
<div style="text-align: center"><img src="http://www.willianmitsuda.com/wp-content/uploads/screenshot-2.gif" border="0" width="448" height="390" /></div>
<p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willianmitsuda.com/2006/04/16/eclipse-skins-reloaded/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Do you love me? Do you hate me?</title>
		<link>http://www.willianmitsuda.com/2005/08/21/do-you-love-me-do-you-hate-me/</link>
		<comments>http://www.willianmitsuda.com/2005/08/21/do-you-love-me-do-you-hate-me/#comments</comments>
		<pubDate>Sun, 21 Aug 2005 21:03:16 +0000</pubDate>
		<dc:creator>Willian Mitsuda</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Funny]]></category>

		<guid isPermaLink="false">http://www.willianmitsuda.com/?p=7</guid>
		<description><![CDATA[According to Michael Valenta‘s comment in the previous post, the “I LOVE YOU” is part of pserver authentication protocol.
I just found a page that explains this funny authentication protocol: on success, the server responds “I LOVE YOU“; on failure, “I HATE YOU”.
]]></description>
			<content:encoded><![CDATA[<p>According to Michael Valenta‘s comment in the previous post, the “I LOVE YOU” is part of pserver authentication protocol.</p>
<p>I just found a <a href="http://docs.freebsd.org/info/cvsclient/cvsclient.info.Connection_and_Authentication.html">page</a> that explains this funny authentication protocol: on success, the server responds “I LOVE YOU“; on failure, “I HATE YOU”.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willianmitsuda.com/2005/08/21/do-you-love-me-do-you-hate-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ANT loves me</title>
		<link>http://www.willianmitsuda.com/2005/08/17/ant-loves-me/</link>
		<comments>http://www.willianmitsuda.com/2005/08/17/ant-loves-me/#comments</comments>
		<pubDate>Wed, 17 Aug 2005 20:31:35 +0000</pubDate>
		<dc:creator>Willian Mitsuda</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Funny]]></category>

		<guid isPermaLink="false">http://www.willianmitsuda.com/?p=8</guid>
		<description><![CDATA[I just discovered ANT loves me: (screenshot)


Now, let‘s talk serious: it seems that Eclipse mixed some CVS dump with ANT output in the console, but… I LOVE YOU? WTF!!!
]]></description>
			<content:encoded><![CDATA[<p>I just discovered ANT loves me: (<a href="http://www.willianmitsuda.com/wp-content/uploads/2006/04/ant-love.gif">screenshot</a>)</p>
<p><a title="ant-love.gif" href="http://www.willianmitsuda.com/wp-content/uploads/2006/04/ant-love.gif"><img alt="ant-love-cut.gif" id="image22" src="http://www.willianmitsuda.com/wp-content/uploads/2006/04/ant-love-cut.gif" /><br />
</a></p>
<p>Now, let‘s talk serious: it seems that Eclipse mixed some CVS dump with ANT output in the console, but… I LOVE YOU? WTF!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willianmitsuda.com/2005/08/17/ant-loves-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VS Presentation Improved!</title>
		<link>http://www.willianmitsuda.com/2005/06/28/vs-presentation-improved/</link>
		<comments>http://www.willianmitsuda.com/2005/06/28/vs-presentation-improved/#comments</comments>
		<pubDate>Tue, 28 Jun 2005 06:08:01 +0000</pubDate>
		<dc:creator>Willian Mitsuda</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.willianmitsuda.com/?p=9</guid>
		<description><![CDATA[I just released a new version of VS Presentation plugin.
I made some minor improvements over the original VS Presentation, and there is now a new “VS Improved Presentation” : (screenshot)

It has the minimize and maximize buttons. The editor tab now show the corresponding icon.
Install instructions:

Just download the jar file and put it into plugins directory [...]]]></description>
			<content:encoded><![CDATA[<p>I just released a new version of <a href="http://sourceforge.net/projects/eclipse-skins">VS Presentation</a> plugin.</p>
<p>I made some minor improvements over the original VS Presentation, and there is now a new “VS Improved Presentation” : (<a href="http://www.willianmitsuda.com/wp-content/uploads/2006/04/vs-improved.gif">screenshot</a>)</p>
<p><a href="http://www.willianmitsuda.com/wp-content/uploads/2006/04/vs-improved.gif"><img id="image21" alt="vs-improved-cut.gif" src="http://www.willianmitsuda.com/wp-content/uploads/2006/04/vs-improved-cut.gif" /></a></p>
<p>It has the minimize and maximize buttons. The editor tab now show the corresponding icon.</p>
<p>Install instructions:</p>
<ul>
<li>Just download the jar file and put it into plugins directory of Eclipse 3.1 (still using 3.0? sorry… it is time to upgrade <img src='http://www.willianmitsuda.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
<li>In Window &gt; Preferences &gt; General &gt; Appearance &gt; Current Presentation, you will see two options: “VS Presentation“ (the original) and “VS Improved Presentation”. Select one and restart Eclipse.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.willianmitsuda.com/2005/06/28/vs-presentation-improved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Presentations API Slides Available in Eclipse CVS</title>
		<link>http://www.willianmitsuda.com/2005/06/20/presentations-api-slides-available-in-eclipse-cvs/</link>
		<comments>http://www.willianmitsuda.com/2005/06/20/presentations-api-slides-available-in-eclipse-cvs/#comments</comments>
		<pubDate>Mon, 20 Jun 2005 19:48:39 +0000</pubDate>
		<dc:creator>Willian Mitsuda</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.willianmitsuda.com/?p=10</guid>
		<description><![CDATA[It seems that the Presentations API slides from EclipseCon 2005 had been made available in CVS a few hours ago.
]]></description>
			<content:encoded><![CDATA[<p>It seems that the <a href="http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/org.eclipse.ui.examples.presentation/eclipsecon2005-presentationsAPI.ppt?rev=1.1&#38;content-type=application/powerpoint" title="">Presentations API slides from EclipseCon 2005</a> had been made available in CVS a few hours ago.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willianmitsuda.com/2005/06/20/presentations-api-slides-available-in-eclipse-cvs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom presentation on RCP applications</title>
		<link>http://www.willianmitsuda.com/2005/06/19/custom-presentation-on-rcp-applications/</link>
		<comments>http://www.willianmitsuda.com/2005/06/19/custom-presentation-on-rcp-applications/#comments</comments>
		<pubDate>Sun, 19 Jun 2005 23:29:19 +0000</pubDate>
		<dc:creator>Willian Mitsuda</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.willianmitsuda.com/?p=11</guid>
		<description><![CDATA[Martin Perez posted in his blog his experiences using the VS Presentation plugin to make jLibrary look like Visual Studio.NET.
He posted interesting information on making a custom presentation as default in RCP applications.
]]></description>
			<content:encoded><![CDATA[<p>Martin Perez <a href="http://jroller.com/page/mpermar/20050619#eclipse_presentations_jlibrary_and_vs" title="">posted in his blog</a> his experiences using the <a href="http://www.jroller.com/page/wmitsuda/?anchor=visual_eclipse_net" title="">VS Presentation</a> plugin to make jLibrary <a href="http://www.jroller.com/resources/m/mpermar/VS-jlibrary-NET.png" title="">look like Visual Studio.NET</a>.</p>
<p>He posted interesting information on making a custom presentation as default in RCP applications.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.willianmitsuda.com/2005/06/19/custom-presentation-on-rcp-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Eclipse.NET?</title>
		<link>http://www.willianmitsuda.com/2005/06/18/visual-eclipsenet/</link>
		<comments>http://www.willianmitsuda.com/2005/06/18/visual-eclipsenet/#comments</comments>
		<pubDate>Sun, 19 Jun 2005 01:46:15 +0000</pubDate>
		<dc:creator>Willian Mitsuda</dc:creator>
				<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.willianmitsuda.com/?p=12</guid>
		<description><![CDATA[On those crazy days where Microsoft presents a session on EclipseCon, and JavaOne, how would be if Eclipse and Visual Studio.NET were “merged”?
Some time ago, I started investigating the presentations API.
It is available since Eclipse 3.0, but it is not a very “popular” API. There is no documentation, no tutorials, no articles, and the only [...]]]></description>
			<content:encoded><![CDATA[<p>On those crazy days where Microsoft <a href="http://benjaminbooth.typepad.com/tableorbooth/2005/03/eclipse_con_200_1.html">presents a session on EclipseCon</a>, <a href="http://www.theserverside.net/news/thread.tss?thread_id=34081">and JavaOne</a>, how would be if Eclipse and Visual Studio.NET were “merged”?</p>
<p>Some time ago, I started investigating the <a href="http://help.eclipse.org/help30/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/presentations/package-summary.html">presentations API</a>.</p>
<p>It is available since Eclipse 3.0, but it is not a very “popular” API. There is no documentation, no tutorials, no articles, and the only thing I found was some examples lost in <a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.examples.presentation">Eclipse CVS</a>.</p>
<p>The presentations API enable us to customize the look and feel of views and editors in Eclipse.</p>
<p>I started a project in <a href="http://www.sf.net/projects/eclipse-skins">SourceForge</a>. The first release from this project was inspired by the idea in the start of this post. It is a presentation that mimics the look and feel from Visual Studio.NET.</p>
<p>Personnaly, I think VS.NET workbench looks better than Eclipse in some aspects, but it has a lot of usability problems, like:</p>
<ul>
<li>Editor bar: it is very hard to see where is some file.</li>
<li>Navigation through editors and views: the scroll buttons are very confusing.</li>
</ul>
<p>The intend of this plugin was to emulate VS.NET workbench, so these annoyances were replicated as much as possible <img src='http://www.willianmitsuda.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>It is not fully functional nor fully VS.NET compliant yet:</p>
<ul>
<li>Ctrl+E does not work because apparently it is handled by presentation; it is not a “global“ action like Ctrl+F6.</li>
<li>There is no “pin button“ on view‘s title bar, because I found no way to turn a IPresentablePart into a fast view. I think this functionality was not exposed in the public API.</li>
<li>In VS.NET, the view tabs are “stretched” when you resize them horizontally. I think this is one of the dumbest usability bugs in VS.NET, and it is somewhat difficult to implement, so I decided to create scroll buttons like in the editor bar.</li>
</ul>
<p><a href="http://sourceforge.net/project/showfiles.php?group_id=141312&#038;package_id=155641">Download page</a>.</p>
<p>To install, just drop the jar in the plugins directory of a Eclipse 3.1 installation (yes, it uses the new 3.1‘s feature: <a href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-core-home/documents/3.1/run_from_jars.html">deploy plugins as jars</a>), and select &#8220;VS Presentation&#8221; in Window &gt; Preferences &gt; General &gt; Appearance &gt; Current Presentation. Restart Eclipse.</p>
<p>Screenshots:</p>
<p>Visual Studio.NET:</p>
<p><a href="http://www.willianmitsuda.com/wp-content/uploads/2006/04/vs.gif"><img id="image17" alt="vs-cut.gif" src="http://www.willianmitsuda.com/wp-content/uploads/2006/04/vs-cut.gif" /></a></p>
<p>Eclipse with VS Presentation plugin:</p>
<p><a id="p20" rel="attachment" title="eclipse-cut.gif" href="http://www.willianmitsuda.com/2005/06/18/visual-eclipsenet/eclipse-cutgif/"><img id="image20" alt="eclipse-cut.gif" src="http://www.willianmitsuda.com/wp-content/uploads/2006/04/eclipse-cut.gif" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.willianmitsuda.com/2005/06/18/visual-eclipsenet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
