<?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>CarbonRider &#187; Eclipse plugin</title>
	<atom:link href="http://www.carbonrider.com/tag/eclipse-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.carbonrider.com</link>
	<description>You make a matrix, you define the limits.</description>
	<lastBuildDate>Thu, 19 Jan 2012 04:35:06 +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>Extending Flex Builder 3 &#8211; Building eclipse plugin</title>
		<link>http://eclipse.carbonrider.com/2010/05/02/extending-flex-builder-3-building-eclipse-plugin/</link>
		<comments>http://eclipse.carbonrider.com/2010/05/02/extending-flex-builder-3-building-eclipse-plugin/#comments</comments>
		<pubDate>Sun, 02 May 2010 12:06:28 +0000</pubDate>
		<dc:creator>Carbon Rider</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Eclipse plugin]]></category>
		<category><![CDATA[extend flex builder]]></category>
		<category><![CDATA[Flex Builder plugin]]></category>
		<category><![CDATA[Flex plugin]]></category>

		<guid isPermaLink="false">http://flex.carbonrider.com/?p=274</guid>
		<description><![CDATA[As mentioned in earlier post, I have been playing with FLEX builder and understand its extensibility APIs. After spending almost day crawling through various search engines and websites I couldn&#8217;t find a single site giving me details about how to work with MXML design editor APIs, I thought of giving up. But fortunately I could [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Feclipse.carbonrider.com%2F2010%2F05%2F02%2Fextending-flex-builder-3-building-eclipse-plugin%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Feclipse.carbonrider.com%2F2010%2F05%2F02%2Fextending-flex-builder-3-building-eclipse-plugin%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>As mentioned in earlier post, I have been playing with FLEX builder and understand its extensibility APIs. After spending almost day crawling through various search engines and websites I couldn&#8217;t find a single site giving me details about how to work with MXML design editor APIs, I thought of giving up. But fortunately I could able to figure out how things actually work in FLEX Builder, and then I thought of publishing some of the details through the blog.</p>
<p>The next few paragraphs will talk about various APIs and options available in FLEX builder which can be used by anyone to build their own plugin in Flex Builder. While the title of the post says that &#8220;Building eclipse plugin&#8221;, it surely doesn&#8217;t describe basic steps required to build eclipse plugin. To learn basics of building eclipse plugin, you should visit other sites like java2s and yeah offcourse eclipse itself has plethora of information on building plugin.</p>
<p>The aim of this article is to give details about the editor used to design Flex layouts. You must have used plugins which can generate AS code, ident XML code etc in Flex builder but there are very few plugins which actually work on design editor.<br />
Before writing any plugin code you need to make sure that you have the required environment set for plugin development. Though Eclipse comes with built in feature of plugin development, Flex builder doesn&#8217;t have built-in support for Java and plugin development project. So to get started with plugin development you need to first install plugin development and Java development feature into Flex builder. Keep it in mind that we need to build plugin inside Flex Builder, the simple reason behind this is to test your plugin code we will require sample workspace of Flex builder and that can be easily started through Flex builder. The installation of Java and Plugin development feature is only required if Flex Builder is installed as Standalone version. If you have installed Flex Builder in Eclipse you can skip this installation.</p>
<p>The next step is to add required Extensions and Jar files in plugin project. Make sure that you have added extensions listed in following image.</p>
<p><img src="http://www.carbonrider.com/wp-content/uploads/2010/05/flex_extensions.jpg" alt="Flex builder extensions" /></p>
<p>Apart from adding above extensions you will need 3 additional Jar files which contain useful APIs. The filenames are derived.jar, mxml.jar and mxmlmodel.jar. You need to search these files in Flex plugins. Now create a default &#8220;view&#8221; using Plugin wizard available in Eclipse.<br />
The wizard should create all the files required to build plugin.</p>
<p>Lets directly jump into java code and see how you can get the reference of MXML editor itself</p>
<pre class="brush: java;">
MXMLEditor a = (MXMLEditor)getSite().getPage().getActiveEditor();
</pre>
<p>Above statement will give you the reference of current MXML editor. You need to be bit careful while using this statement as user may not always work with MXML editor (There is action script editor or user may switch from one MXML file to another or may even switch from design view to source code). So you need to logically place this code to get reference of MXML editor.<br />
(Hint: Try to find out details about IPartListener.)</p>
<p>The editor object is pretty much useful to listen to the events raised in editor. An editor instance has a method called getMXMLModel which represents an MXML instance for the editor. You can use the IMXMLModel instance returned by getMXMLModel method to manipulate MXML code. The reference also provides a convenient method to listen to the user selection in design view.<br />
Just place below code after getting IMXMLModel reference</p>
<pre class="brush:java">
mm.getSelectionProvider().addSelectionChangedListener(new SelectionChangeListener())
</pre>
<p>Note that the SelectionChangeListener is custom class implementing an interface ISelectionChangedListener. A method &#8220;selectionChanged&#8221; will be invoked on the above instance whenever user select control in MXML design editor. The method has one argument of &#8220;SelectionChangedEvent&#8221; which can be used to get the reference of the component selected. I leave the part of getting reference of control using instance of &#8220;SelectionChangedEvent&#8221; to you.<br />
For demonstration, I have created a sample plugin which displays component selected in &#8220;Sample View&#8221;, check below images.<br />
<img src="http://www.carbonrider.com/wp-content/uploads/2010/05/flex_builder_c2.jpg" alt="Flex Builder - Button selected" /></p>
<p><img src="http://www.carbonrider.com/wp-content/uploads/2010/05/flex_builder_c1.jpg" alt="Flex Builder - checkbox selected" /></p>
<p>The story doesnt end here, I would be revealing more details about API &#8211; watch this space.</p>
]]></content:encoded>
			<wfw:commentRss>http://eclipse.carbonrider.com/2010/05/02/extending-flex-builder-3-building-eclipse-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eclipse &#8211; Translation Plugin</title>
		<link>http://eclipse.carbonrider.com/2009/08/22/eclipse-translation-plugin/</link>
		<comments>http://eclipse.carbonrider.com/2009/08/22/eclipse-translation-plugin/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 13:45:09 +0000</pubDate>
		<dc:creator>Carbon Rider</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Eclipse plugin]]></category>
		<category><![CDATA[property translation]]></category>
		<category><![CDATA[text tranlsation]]></category>
		<category><![CDATA[translation plugin]]></category>

		<guid isPermaLink="false">http://www.carbonrider.com/?p=50</guid>
		<description><![CDATA[Translation Plugin To tell you frankly, this is dumb plugin which doesnt have any intelligence and purely dependent upon third party services to complete its job. I developed this plugin jus for project need and freeing some developer&#8217;s brain cells from remembering translation site name. Translation plugin acts as an agent between online translation service [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Feclipse.carbonrider.com%2F2009%2F08%2F22%2Feclipse-translation-plugin%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Feclipse.carbonrider.com%2F2009%2F08%2F22%2Feclipse-translation-plugin%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<h2>Translation Plugin</h2>
<p>To tell you frankly, this is dumb plugin which doesnt have any intelligence and purely dependent upon third party services to complete its job. I developed this plugin jus for project need and freeing some developer&#8217;s brain cells from remembering translation site name. <img src='http://www.carbonrider.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Translation plugin acts as an agent between online translation service such as Google and Babelfish.</p>
<div id="attachment_54" class="wp-caption alignnone" style="width: 276px"><img class="size-full wp-image-54" title="Translation View" src="http://www.carbonrider.com/wp-content/uploads/2009/08/translation.jpg" alt="Translation View" width="266" height="364" /><p class="wp-caption-text">Translation View</p></div>
<p><span id="more-50"></span></p>
<p><strong>Features</strong></p>
<ol>
<li>With this plugin you can translate text, property file.</li>
<li>You can select source &amp; destination language for your text.</li>
</ol>
<p><strong>Limitations</strong></p>
<p>It currently doesnot support UTF-16 languages due to limitations in displaying those languages.<br />
<span style="color: #ff0000;">This plugin works only with Eclipse 3.5 (Galileo)</span></p>
<p><strong>Download</strong></p>
<p>You can download this plugin <a title="Translation Plugin" href="http://www.carbonrider.com/downloads/eclipse/translation/com.text.translate_1.0.0.200908221828.jar">here</a>. Just copy the jar file in plugins folder. To locate this plugin go to Window -&gt;Show View -&gt; Other -&gt;Translation -&gt; Text Translator.</p>
<p><strong>So what other alternate plugins are available in market and why should I use this plugin</strong></p>
<p>This is not the first plugin for Eclipse which translates text from one language to another. There are various plugins which can do this job like</p>
<ol>
<li>code.google.com has one plugin which gets integrated with Eclipse and provides various options to translate text. (<a href="http://code.google.com/p/google-translate-eclipse-plugin/">http://code.google.com/p/google-translate-eclipse-plugin/</a>). But this plugin is tied up with Google translation service and hence you cannot compare translation results.</li>
<li>There is one more available from eobjectsoft (<a href="http://eobjectsoft.com/product/productTranslate.htm">http://eobjectsoft.com/product/productTranslate.htm</a>). Again this plugin is tied up with Google translation service.</li>
</ol>
<p>One common problem I found with these plugins is that, if you have to choose source language for your translation, there is no direct option available. You have to go to prefrences window and locate plugin section and change it. This sounds lil irritating, what if you have to frequently change source language, would you like to go through the pain of open, locate, update and press ok lifecycle and that to just specify one preference.</p>
<p><strong>Areas of Improvement</strong></p>
<ol>
<li>Yes this plugin is not complete, it doesnt support integration with context menu of Eclipse (one of the feature of above listed plugin.).</li>
<li>This plugin itself is not internationalized and current version is available only in English language.</li>
</ol>
<p>These features will be added soon.</p>
<p><strong>Precautions</strong></p>
<p>Dont completely depend upon the translation service as the results of translation may not be accurate and require professionals to verifty the trasnlated text.<br />
Also there is no out of box APIs provided by Babelfish for translation. This plugin uses screen scraping technique to parse the results produced by Babelfish and hence it takes more time than its competitor to produce results. Results produced by Google translation service converts string that contains characters like {0} to (0). So be careful and review your translated text after plugin completes its job. If you have any suggestions, please use below form to send your suggestions.</p>
<p>Till then, happy translating. <img src='http://www.carbonrider.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://eclipse.carbonrider.com/2009/08/22/eclipse-translation-plugin/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

