<?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>Developer Papercuts &#187; Eclipse</title>
	<atom:link href="http://www.vogella.de/blog/tag/eclipse/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vogella.de/blog</link>
	<description>Tips around Eclipse and Android programming</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:02:56 +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 Community Awards voting open. Please vote</title>
		<link>http://www.vogella.de/blog/2012/02/02/eclipse-community-awards-voting-open-please-vote/</link>
		<comments>http://www.vogella.de/blog/2012/02/02/eclipse-community-awards-voting-open-please-vote/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 13:02:56 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[community]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=4885</guid>
		<description><![CDATA[Just a small reminder, the Eclipse Community Awards is currently open for voting. Please vote: http://eclipse.org/org/press-release/20120130_awardsvote.php

I'm also nominated, as Eclipse Top Newcomer Evangelist :)]]></description>
			<content:encoded><![CDATA[<p>Just a small reminder, the <a href="http://eclipse.org/org/press-release/20120130_awardsvote.php">Eclipse Community Awards</a> is currently open for voting. Please vote: <a href="http://eclipse.org/org/press-release/20120130_awardsvote.php">http://eclipse.org/org/press-release/20120130_awardsvote.php</a></p>
<p>I&#8217;m also nominated, as <a href="http://marketplace.eclipse.org/nominations/top-newcomer-evangelist">Eclipse Top Newcomer Evangelist</a> <img src='http://www.vogella.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=4885&amp;md5=944f71948c3029522b501cceea5bc213" title="Flattr" target="_blank"><img src="http://www.vogella.de/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2012/02/02/eclipse-community-awards-voting-open-please-vote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse 4 Application Tutorial available (for Eclipse 4.2 M5)</title>
		<link>http://www.vogella.de/blog/2012/01/30/eclipse-4-tutorial-available/</link>
		<comments>http://www.vogella.de/blog/2012/01/30/eclipse-4-tutorial-available/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 06:10:06 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Eclipse 4]]></category>
		<category><![CDATA[Eclipse e4]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=4873</guid>
		<description><![CDATA[A while ago I published an Eclipse e4 tutorial. Things have been moving quite a bit in Eclipse 4 since then.

I'm pretty excited about the capabilities of Eclipse 4, therefore I re-wrote my tutorial to show the capabilities of Eclipse 4. 

This tutorial focuses on the application model and the dependency injection capabilities.

Eclipse 4 ...]]></description>
			<content:encoded><![CDATA[<p>A while ago I published an <a href="http://www.vogella.de/articles/Eclipse4RCP/article.html">Eclipse e4 tutorial</a>. Things have been moving quite a bit in Eclipse 4 since then.</p>
<p>I&#8217;m pretty excited about the capabilities of Eclipse 4, therefore I re-wrote my tutorial to show the capabilities of Eclipse 4. </p>
<p>This tutorial focuses on the application model and the dependency injection capabilities.</p>
<p><a href="http://www.vogella.de/articles/Eclipse4RCP/article.html">Eclipse 4 Tutorial</a>.</p>
<p><a href="http://www.vogella.de/eclipse.html">More Eclipse 4 tutorials</a> are available on <a href="http://www.vogella.de/eclipse.html">http://www.vogella.de/eclipse.html</a> in the category Eclipse 4 Development but I have not yet spend sufficient time to polish their content.</p>
<p>I hope you like it. It was a significant amount of work I invested into the description. Please let me know if you find errors. </p>
<p>I also would like to thank Brian de Alwis, Tom Schindl, Remy Suen, Paul Webster, John Arthorne and Eric Moffatt for answering my questions.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=4873&amp;md5=c51ff3440cdbb4c0918ed7b99fcda7d6" title="Flattr" target="_blank"><img src="http://www.vogella.de/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2012/01/30/eclipse-4-tutorial-available/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse IDE 3.7 Book available for the Kindle</title>
		<link>http://www.vogella.de/blog/2011/12/20/eclipse-ide-3-7-book-available-for-the-kindle/</link>
		<comments>http://www.vogella.de/blog/2011/12/20/eclipse-ide-3-7-book-available-for-the-kindle/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 06:53:28 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[vogella]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Eclipse IDE]]></category>
		<category><![CDATA[JUnit]]></category>
		<category><![CDATA[Mylyn]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=4659</guid>
		<description><![CDATA[Today I released my new Eclipse IDE 3.7 book for the Kindle device.


Eclipse IDE 3.7
Fundamentals of Java Programming, Debugging, JUnit Testing and Mylyn Tasks with Eclipse



This book demonstrates how you can develop Java applications, how you can debug them and how to write JUnit tests for your applications. It also explains how you can ...]]></description>
			<content:encoded><![CDATA[<p>Today I released my new Eclipse IDE 3.7 book for the Kindle device.</p>
<p><a href="http://www.amazon.com/dp/B006O1J39S"><strong><br />
Eclipse IDE 3.7<br />
Fundamentals of Java Programming, Debugging, JUnit Testing and Mylyn Tasks with Eclipse</strong></a></p>
<p><img src="http://www.vogella.de/blog/wp-content/uploads/2011/12/cover1-225x300.png" alt="" width="225" height="300" class="aligncenter size-medium wp-image-4664" /></p>
<p>This book demonstrates how you can develop Java applications, how you can debug them and how to write JUnit tests for your applications. It also explains how you can work with local Mylyn tasks to organize your work efficiently.</p>
<p>It also includes important Eclipse configuration tips which make programming with Eclipse more effective.</p>
<p>After finishing this book you should feel comfortable with using the Eclipse IDE for standard Java development tasks and you should be equipped to explore Eclipse further.</p>
<p>You find the book in all Amazon stores:</p>
<p><a href="http://www.amazon.com/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon USA</a><br />
<a href="http://www.amazon.de/dp/B006O1J39S">Eclipse IDE 3.7in Amazon Germany</a><br />
<a href="http://www.amazon.co.uk/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon UK</a><br />
<a href="http://www.amazon.fr/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon France</a><br />
<a href="http://www.amazon.it/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon IT</a><br />
<a href="http://www.amazon.es/dp/B006O1J39S">Eclipse IDE 3.7 in Amazon ES</a></p>
<p>This book summerizes several tutorials I publish on my website. It includes the Eclipse IDE introduction tutorial, the JUnit tutorial, Debugging with Eclipse, my Mylyn Tutorial and my favorite Eclipse shortcuts. The full content of the book is still available online on my website.</p>
<p>I would especially thank <strong>Elias Volanakis</strong> for his thorough spell checking and feedback on the content. </p>
<p>I also am very grateful to <strong>Wayne Beaton</strong> for writing the foreword and providing feedback on the content.</p>
<p>In addition I would like to thank the Eclipse Foundation and <strong>Ian Skerrett</strong> for the permission to use the Eclipse logo and <strong>Matthew Nuzum</strong> for the permission to use his svg version of the Eclipse logo.</p>
<p>I got many suggestions or corrections from countless readers of my website and I would like to express my deepest gratitude for their contributions.</p>
<p><strong>I have plans to add an EGit chapter over the next months</strong>. If you buy this book now you will get the update with EGit for free. I have confirmed twice with the Amazon customer support that if I publish an update to this book that buyers of the book will get notified and that they can download the updated book with EGit for free.</p>
<p>I&#8217;m again surprised how much work it is to convert my website content into a book format. I hope you like this book and if you new to Eclipse I hope you enjoy your learning experience.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=4659&amp;md5=97e14a64264e837290b5640b7d4b8264" title="Flattr" target="_blank"><img src="http://www.vogella.de/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2011/12/20/eclipse-ide-3-7-book-available-for-the-kindle/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Eclipse SWT &#8211; Creating an email in the default email client</title>
		<link>http://www.vogella.de/blog/2011/08/30/eclipse-swt-creating-an-email-in-the-default-email-client/</link>
		<comments>http://www.vogella.de/blog/2011/08/30/eclipse-swt-creating-an-email-in-the-default-email-client/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 21:13:15 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[SWT]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=4272</guid>
		<description><![CDATA[As many of you properly know SWT has the nice Program.launch() method which allows to start programs associated with an URI.

Example:



Unfortunately this does not seem to be working on Linux. So if you are working under Linux you have to  use the Java runtime directly. Unfortunately this requires you in my humble opinion ...]]></description>
			<content:encoded><![CDATA[<p>As many of you properly know SWT has the nice Program.launch() method which allows to start programs associated with an URI.</p>
<p>Example:</p>
<pre class="brush: plain; title: ; notranslate">
// This works for Windows
	public void openMailWindows(String to, String subject,String body, List&lt;File&gt; attachments) {
		String mailto = &quot;mailto:&quot; + enc(to) + &quot;?subject=&quot; + enc(subject) + &quot;&amp;body=&quot; + enc(body);
		for (File f : attachments) {
			mailto += &quot;&amp;attach=&quot; + f.getAbsolutePath();
		}
		Program.launch(mailto);
	}

	private String enc(String p) {
		if (p == null)
			p = &quot;&quot;;
		try {
			return URLEncoder.encode(p, &quot;UTF-8&quot;).replace(&quot;+&quot;, &quot;%20&quot;);
		} catch (UnsupportedEncodingException e) {
			throw new RuntimeException();
		}
	}
</pre>
<p>Unfortunately this does not seem to be working on Linux. So if you are working under Linux you have to  use the Java runtime directly. Unfortunately this requires you in my humble opinion to code against a a specific application.</p>
<pre class="brush: plain; title: ; notranslate">
// This works for Linux with Thunderbird
	public void openMailLinux(String to, String subject,String body, List&lt;File&gt; attachments) {
		String mailto = &quot;mailto:&quot; + enc(to) + &quot;?subject=&quot; + enc(subject) + &quot;&amp;body=&quot; + enc(body);
		for (File f : attachments) {
			mailto += &quot;&amp;attach=&quot; + f.getAbsolutePath();
		}
		Program.launch(mailto);
		try {
			// For using the parameters check the following description
			// http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29
			Runtime.getRuntime().exec(&quot;thunderbird -compose&quot;);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
</pre>
<p>I hope this helps. </p>
<p>You find me also on <a href="http://www.twitter.com/vogella" title="Twitter">Twitter</a> and <a rel="me" href="https://profiles.google.com/104044918586174763681" title="Google+">Google+</a>.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=4272&amp;md5=2587bbafe83bb3b1e6742037b880e47a" title="Flattr" target="_blank"><img src="http://www.vogella.de/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2011/08/30/eclipse-swt-creating-an-email-in-the-default-email-client/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eclipse e4 Renderer &#8211; Google Maps</title>
		<link>http://www.vogella.de/blog/2010/11/09/eclipse-e4-renderer/</link>
		<comments>http://www.vogella.de/blog/2010/11/09/eclipse-e4-renderer/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 09:40:59 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[E4]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=3351</guid>
		<description><![CDATA[As you might know Eclipse e4 decouples the application model from the rendering engines. For example you have a MPart model element which describes that the application should display a certain UI element (view) in your application. How this model element is drawn is determined by the renderer. 

Another very nice thing about the ...]]></description>
			<content:encoded><![CDATA[<p>As you might know <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4</a> decouples the application model from the rendering engines. For example you have a MPart model element which describes that the application should display a certain UI element (view) in your application. How this model element is drawn is determined by the renderer. </p>
<p>Another very nice thing about the renderer framework and the model is that the e4 application model can get extended and that you can define your own renderer for your own model element. </p>
<p>For example you can define a model element &#8220;GoogleMap&#8221; which will be renderered via your own renderer as a Google Map (using the SWT Browser widget). </p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2010/10/renderermodel90.png"><img src="http://www.vogella.de/blog/wp-content/uploads/2010/10/renderermodel90.png" alt="" width="602" height="489" class="aligncenter size-full wp-image-3355" /></a></p>
<p>Please find a complete description how to set this up in my <a href="http://www.vogella.de/articles/EclipseE4/article.html#renderer">Eclipse e4 renderer tutorial</a>. You can also <a href="http://www.twitter.com/vogella">follow me on Twitter here</a> if you want. </p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=3351&amp;md5=cfe8d3c41b6f7922ed18d2a3b56357b7" title="Flattr" target="_blank"><img src="http://www.vogella.de/blog/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2010/11/09/eclipse-e4-renderer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joining Eclipse IRC</title>
		<link>http://www.vogella.de/blog/2010/04/02/eclipse-irc/</link>
		<comments>http://www.vogella.de/blog/2010/04/02/eclipse-irc/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 13:41:41 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[irc]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=2062</guid>
		<description><![CDATA[I recently became aware that the Eclipse developer community also uses IRC for their communication. 


See http://wiki.eclipse.org/IRC for details.

A nice firefox IRC plugin is chatzilla. In case you cannot use a IRC client directly you can use this webclient: http://webchat.freenode.net/.

Join for example #eclipse, #eclipse-dev or #eclipse-e4 to discuss Eclipse development issues. ]]></description>
			<content:encoded><![CDATA[<p>I recently became aware that the Eclipse developer community also uses IRC for their communication.<br />
<a href="http://www.vogella.de/blog/wp-content/uploads/2010/04/1213619_78295027.jpg"><img src="http://www.vogella.de/blog/wp-content/uploads/2010/04/1213619_78295027-231x300.jpg" alt="" width="231" height="300" class="aligncenter size-medium wp-image-2286" /></a></p>
<p>See <a href="http://wiki.eclipse.org/IRC">http://wiki.eclipse.org/IRC</a> for details.</p>
<p>A nice firefox IRC plugin is <a href="http://chatzilla.hacksrus.com">chatzilla</a>. In case you cannot use a IRC client directly you can use this webclient: <a href="http://webchat.freenode.net/">http://webchat.freenode.net/</a>.</p>
<p>Join for example #eclipse, #eclipse-dev or #eclipse-e4 to discuss Eclipse development issues. </p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2010/04/02/eclipse-irc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse RCP &#8211; Removing the minimize and maximize buttons from Views</title>
		<link>http://www.vogella.de/blog/2009/11/13/rcp-minimize-maximize-view/</link>
		<comments>http://www.vogella.de/blog/2009/11/13/rcp-minimize-maximize-view/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 01:03:47 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[RCP]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=1269</guid>
		<description><![CDATA[I got the question how someone could remove the maximize and minimize buttons from a view in an Eclipse RCP application.

To archive this I know two ways. 

Either set the layout to fixed in initialLayout() in Perspective.java





Or use the Perspective.java to add a standalone view.






If I add a standalone view via the extension "org.eclipse.ui.perspectiveExtensions" ...]]></description>
			<content:encoded><![CDATA[<p>I got the question how someone could remove the maximize and minimize buttons from a view in an Eclipse RCP application.</p>
<p>To archive this I know two ways. </p>
<p>Either set the layout to fixed in initialLayout() in Perspective.java</p>
<pre class="brush: java; title: ; notranslate">

package de.vogella.intro.rcp.fixedview;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		layout.setFixed(true);

//		layout.addStandaloneView(View.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
	}

}
</pre>
<p>Or use the Perspective.java to add a standalone view.</p>
<pre class="brush: java; title: ; notranslate">

package de.vogella.intro.rcp.fixedview;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
//		layout.setFixed(true);

		layout.addStandaloneView(View.ID,  false, IPageLayout.LEFT, 1.0f, editorArea);
	}

}
</pre>
<p>If I add a standalone view via the extension &#8220;org.eclipse.ui.perspectiveExtensions&#8221; then the minimize and maximize buttons are still there. </p>
<pre class="brush: java; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;?eclipse version=&quot;3.4&quot;?&gt;
&lt;plugin&gt;

   &lt;extension
         id=&quot;application&quot;
         point=&quot;org.eclipse.core.runtime.applications&quot;&gt;
      &lt;application&gt;
         &lt;run
               class=&quot;de.vogella.intro.rcp.fixedview.Application&quot;&gt;
         &lt;/run&gt;
      &lt;/application&gt;
   &lt;/extension&gt;
   &lt;extension
         point=&quot;org.eclipse.ui.perspectives&quot;&gt;
      &lt;perspective
            name=&quot;Perspective&quot;
            class=&quot;de.vogella.intro.rcp.fixedview.Perspective&quot;
            id=&quot;de.vogella.intro.rcp.fixedview.perspective&quot;&gt;
      &lt;/perspective&gt;
   &lt;/extension&gt;
   &lt;extension
         point=&quot;org.eclipse.ui.views&quot;&gt;
      &lt;view
            name=&quot;View&quot;
            class=&quot;de.vogella.intro.rcp.fixedview.View&quot;
            id=&quot;de.vogella.intro.rcp.fixedview.view&quot;&gt;
      &lt;/view&gt;
   &lt;/extension&gt;
   &lt;extension
         point=&quot;org.eclipse.ui.perspectiveExtensions&quot;&gt;
      &lt;perspectiveExtension
            targetID=&quot;*&quot;&gt;
         &lt;view
               id=&quot;de.vogella.intro.rcp.fixedview.view&quot;
               minimized=&quot;false&quot;
               ratio=&quot;1.0f&quot;
               relationship=&quot;left&quot;
               relative=&quot;org.eclipse.ui.editorss&quot;
               standalone=&quot;true&quot;
               visible=&quot;true&quot;&gt;
         &lt;/view&gt;
      &lt;/perspectiveExtension&gt;
   &lt;/extension&gt;

&lt;/plugin&gt;
</pre>
<p><strong>The behavior seems inconsistent.</strong> If I use coding to add a standalone view the minimize / maximize buttons are not there, if I use extension points they are still there. </p>
<p>Does anymore know if I&#8217;m missing something? Or is this a bug? If you know please comment on this blog post or contact me via <a href="http://twitter.com/vogella">twitter</a>. </p>
<p><strong>Update</strong>: Projekt attached.</p>
<p><a href='http://www.vogella.de/blog/wp-content/uploads/2009/11/FixedView1.zip'>FixedView.zip</a></p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2009/11/13/rcp-minimize-maximize-view/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>JavaScript in the SWT Browser widget</title>
		<link>http://www.vogella.de/blog/2009/10/29/javascript-swt-browser-widget/</link>
		<comments>http://www.vogella.de/blog/2009/10/29/javascript-swt-browser-widget/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 13:14:49 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[SWT]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=1252</guid>
		<description><![CDATA[At the Eclipse Summit Europe I listened to a talk of Boris Bokowski  about Eclipse and the Web.

Among other things I learned that you can execute JavaScript directly on the SWT Browser Widget and I wanted to give a tiny example for this.

This Eclipse view will for example load my webpage and then ...]]></description>
			<content:encoded><![CDATA[<p>At the Eclipse Summit Europe I listened to a <a href="http://www.eclipsecon.org/summiteurope2009/sessions?id=1035">talk of Boris Bokowski </a> about Eclipse and the Web.</p>
<p>Among other things I learned that you can execute JavaScript directly on the SWT Browser Widget and I wanted to give a tiny example for this.</p>
<p>This Eclipse view will for example load my webpage and then execute a tiny JavaScript (alert(&#8220;1&#8243;);) in the browser.</p>
<pre class="brush: java; title: ; notranslate">

package de.vogella.swtbrowser;

import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.browser.ProgressEvent;
import org.eclipse.swt.browser.ProgressListener;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;

public class View extends ViewPart {

	public static final String ID = &quot;de.vogella.swtbrowser.view&quot;;

	public void createPartControl(Composite parent) {
		final Browser b = new Browser(parent, SWT.NONE);
		b.setUrl(&quot;www.vogella.de&quot;);
		b.addProgressListener(new ProgressListener() {
			@Override
			public void completed(ProgressEvent event) {
				System.out.println(&quot;Page loaded&quot;);
				System.out.println(b.execute(&quot;alert(\&quot;1\&quot;);&quot;));
			}
			@Override
			public void changed(ProgressEvent event) {
			}
		});
	}

	/**
	 * Passing the focus request to the viewer's control.
	 */
	public void setFocus() {
	}
}
</pre>
<p>Thanks to Boris for the great talk. </p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2009/10/29/javascript-swt-browser-widget/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>API for reading Eclipse plugin dependencies</title>
		<link>http://www.vogella.de/blog/2009/10/19/eclipse-plugin-dependencies/</link>
		<comments>http://www.vogella.de/blog/2009/10/19/eclipse-plugin-dependencies/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 05:04:02 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=1241</guid>
		<description><![CDATA[The Eclipse platform provides an API to allows that you can access in information of the MANIFEST.MF. For example you could read the dependencies of your plugin. 

For this example create a plugin "de.vogella.pde.dependencies". See Eclipse Plugin development for examples on how to develop plugins. Use the "Hello, World Command" template.

Define dependendies to the ...]]></description>
			<content:encoded><![CDATA[<p>The Eclipse platform provides an API to allows that you can access in information of the MANIFEST.MF. For example you could read the dependencies of your plugin. </p>
<p>For this example create a plugin &#8220;de.vogella.pde.dependencies&#8221;. See <a href="http://www.vogella.de/articles/EclipsePlugIn/article.html">Eclipse Plugin development</a> for examples on how to develop plugins. Use the &#8220;Hello, World Command&#8221; template.</p>
<p>Define dependendies to the following plugins:<br />
 &#8211; org.eclipse.ui<br />
 &#8211;  org.eclipse.core.runtime</p>
<p>Change the command to the following. </p>
<pre class="brush: java; title: ; notranslate">

package de.vogella.pde.dependencies.handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.runtime.Platform;
import org.eclipse.osgi.util.ManifestElement;
import org.osgi.framework.BundleException;
import org.osgi.framework.Constants;

public class PrintDependencies extends AbstractHandler {
	public Object execute(ExecutionEvent event) throws ExecutionException {
		String requireBundle = (String)Platform.getBundle(&quot;de.vogella.pde.dependencies&quot;).getHeaders().get(
				Constants.REQUIRE_BUNDLE);
				try {
					ManifestElement[] elements = ManifestElement.parseHeader(
					Constants.BUNDLE_CLASSPATH, requireBundle);
					for (ManifestElement manifestElement : elements) {
						System.out.println( manifestElement.getValue());
					}
				} catch (BundleException e) {
					e.printStackTrace();
				}
		return null;
	}
}
</pre>
<p>If you now run your new plugin it and select your command it will print out the dependencies of your plugin. </p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2009/10/19/eclipse-plugin-dependencies/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eclipse Papercut #5 &#8211; Getting external libraries as bundles</title>
		<link>http://www.vogella.de/blog/2009/09/21/eclipse-plugin-libraries/</link>
		<comments>http://www.vogella.de/blog/2009/09/21/eclipse-plugin-libraries/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 05:45:11 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Papercut]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[OSGi]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=548</guid>
		<description><![CDATA[Explains why Eclipse Plugins are improving the definition of the external API and how to get prepared Eclipse plugins via the Springsource bundle repository. ]]></description>
			<content:encoded><![CDATA[<p>In this episode of <a href="http://www.vogella.de/blog/?p=385">Eclipse Papercuts</a> I explain how you get bundles for popolar Java libraries for your  <a href="http://www.vogella.de/articles/EclipsePlugIn/article.html">Eclipse plugin</a> development. </p>
<p>I believe it has advantages to work with plugin projects instead of pure Java projects even if the plan is not to create <a href="http://www.vogella.de/articles/EclipsePlugIn/article.html">Eclipse plugins</a> / <a href="http://www.vogella.de/articles/RichClientPlatform/article.html">RCP applications</a>.  </p>
<p>The core strength of OSGi for this scenario is in my opinion the encapsalation and protection of your inner classes. With <a href="http://www.vogella.de/articles/OSGi/article.html">OSGi bundles </a>  you decide which packages of your project are exported and therefore visible to other projects (via the tab Runtime in the editor for the file plugin.xml).</p>
<p>This leaves only one problem: If you are using externally libraries you <a href="http://www.vogella.de/articles/EclipseJarToPlugin/article.html">have to convert them into bundles / plugins</a>.</p>
<p>I would be nicer to consume pre-packages bundles. As I created a bug <a href="http://sourceforge.net/tracker/?func=detail&amp;aid=2860779&amp;group_id=15255&amp;atid=365255">iText should be OSGi</a> and <a href="http://twitter.com/vogella">tweeted </a>about it <a href="http://aniszczyk.org/">Chris Aniszczyk</a> pointed me to <a href="http://www.eclipse.org/orbit/">Eclipse Orbit</a>.</p>
<p>Eclipse Orbit provides lots of standard libraries already pre-packaged as bundles / plugins. </p>
<p>Lets see how you could get the iText version from Orbit. Check the <a href="http://wiki.eclipse.org/index.php/Orbit_Faq">Orbit FAQ </a>to find out more.</p>
<p>You need to <a href="http://www.vogella.de/articles/EclipseCodeAccess/article.html#versioncontrol_cvs">connect via cvs </a> to the Eclipse cvs repository. CVS URL is :pserver:anonymous@dev.eclipse.org/cvsroot/tools</p>
<p>Navigate to &#8220;org.eclipse.orbit&#8221;. Select &#8220;com.lowagie.text&#8221; and check it out.</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2009/09/orbit10.gif"><img src="http://www.vogella.de/blog/wp-content/uploads/2009/09/orbit10.gif" alt="orbit10" width="388" height="138" class="aligncenter size-full wp-image-1125" /></a></p>
<p>Orbit keeps the different version of the library as cvs branches. Select your project and select Replace With -&gt; Another Branch or Version&#8230;<br />
<a href="http://www.vogella.de/blog/wp-content/uploads/2009/09/orbit20.gif"><img src="http://www.vogella.de/blog/wp-content/uploads/2009/09/orbit20.gif" alt="orbit20" width="586" height="560" class="aligncenter size-full wp-image-1126" /></a></p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2009/09/orbit30.gif"><img src="http://www.vogella.de/blog/wp-content/uploads/2009/09/orbit30.gif" alt="orbit30" width="447" height="321" class="aligncenter size-full wp-image-1142" /></a></p>
<p>After selecting the branch and pressing ok the system will download the library and you can start using the library.</p>
<p>In addition to Orbit you can also use the <a href="http://www.springsource.com/repository/app/">Springsource bundle repository</a>. On this website you can search for bundles and download then directly. You can then import them as plugin projects into your workspace. </p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2009/09/21/eclipse-plugin-libraries/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

