<?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; E4</title>
	<atom:link href="http://www.vogella.de/blog/tag/e4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vogella.de/blog</link>
	<description>Tips around Eclipse and Android programming</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:31:00 +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 gets sexy again &#8211; new Splashscreen</title>
		<link>http://www.vogella.de/blog/2012/02/08/eclipse-gets-sexy-again-new-splashscreen/</link>
		<comments>http://www.vogella.de/blog/2012/02/08/eclipse-gets-sexy-again-new-splashscreen/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 17:29:46 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[E4]]></category>
		<category><![CDATA[Eclipse 4]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=4936</guid>
		<description><![CDATA[In case you missed it, Eclipse 4.2 has a new Spashscreen. 

I really like it (maybe the Eclipse graphic could be a little lower to feel more centered but otherwise it is great). 



The details are in the Bug report:

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=341645

You can download the latest integration build of Eclipse 4.2 and get this new ...]]></description>
			<content:encoded><![CDATA[<p>In case you missed it, Eclipse 4.2 has a new Spashscreen. </p>
<p>I really like it (maybe the Eclipse graphic could be a little lower to feel more centered but otherwise it is great). </p>
<p><img src="http://www.vogella.de/blog/wp-content/uploads/2012/02/splash-300x199.png" alt="" width="300" height="199" class="aligncenter size-medium wp-image-4938" /></p>
<p>The details are in the Bug report:</p>
<p>Bug: <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=341645">https://bugs.eclipse.org/bugs/show_bug.cgi?id=341645</a></p>
<p>You can download the latest integration build of Eclipse 4.2 and get this new Splashscreen. See <a href="http://www.vogella.de/articles/Eclipse4RCP/article.html">Eclipse 4 Tutorial</a> for the details of installing Eclipse 4.</p>
<p>These are good times for Eclipse 4; the Splash Screen is what every IDE user will see, almost every day. Its great that it looks modern and attractive.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=4936&amp;md5=435e9df77fde1f469687c511bdd7363e" 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/08/eclipse-gets-sexy-again-new-splashscreen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eclipse 4 Platform Services Tutorial / Overview available</title>
		<link>http://www.vogella.de/blog/2012/02/07/eclipse-4-platform-services-2/</link>
		<comments>http://www.vogella.de/blog/2012/02/07/eclipse-4-platform-services-2/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 11:57:22 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[E4]]></category>
		<category><![CDATA[Eclipse 4]]></category>
		<category><![CDATA[RCP]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=4928</guid>
		<description><![CDATA[I created and re-worked a summary of the most important Eclipse 4 Platform Services, e.g. ECommandHandler, EPartService, ESelectionService and the EModelService:

Eclipse 4 Services Tutorial

I hope this helps. I'm pretty excited about Eclipse 4, developing Eclipse 3.x plug-ins or RCP applications start to feel "outdated".



]]></description>
			<content:encoded><![CDATA[<p>I created and re-worked a summary of the most important <a href="http://www.vogella.de/articles/Eclipse4Services/article.html">Eclipse 4 Platform Services</a>, e.g. ECommandHandler, EPartService, ESelectionService and the EModelService:</p>
<p><a href="http://www.vogella.de/articles/Eclipse4Services/article.html">Eclipse 4 Services Tutorial</a></p>
<p>I hope this helps. I&#8217;m pretty excited about <a href="http://www.vogella.de/articles/Eclipse4RCP/article.html">Eclipse 4</a>, developing Eclipse 3.x plug-ins or RCP applications start to feel &#8220;outdated&#8221;.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=4928&amp;md5=5ac684b83e2ad31bfa33f7aaeb04efb5" 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/07/eclipse-4-platform-services-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse e4 &#8211; Creating a new part dynamically</title>
		<link>http://www.vogella.de/blog/2010/12/07/eclipse-e4-create-a-new-part-dynamically/</link>
		<comments>http://www.vogella.de/blog/2010/12/07/eclipse-e4-create-a-new-part-dynamically/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 19:47:24 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[E4]]></category>
		<category><![CDATA[Eclipse 4.0]]></category>
		<category><![CDATA[Eclipse 4.1]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=3395</guid>
		<description><![CDATA[Eclipse e4 allows to create application elements dynamically. The following is a small example how to create a part dynamically in a handler. This assumes that you have a class "de.vogella.e4.modelservice.part.NewPart" defined in plugin "de.vogella.e4.modelservice". 



The nice thing of this example is that it demonstrates how you can use the dynamic creating of application ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4</a> allows to create application elements dynamically. The following is a small example how to create a part dynamically in a handler. This assumes that you have a class &#8220;de.vogella.e4.modelservice.part.NewPart&#8221; defined in plugin &#8220;de.vogella.e4.modelservice&#8221;. </p>
<pre class="brush: plain; title: ; notranslate">

	@Execute
	public void execute(EPartService partService, MApplication application,
			EModelService modelService) {
		MPart part = MBasicFactory.INSTANCE.createPart();
		part.setLabel(&quot;New Part&quot;);
		part.setContributionURI(&quot;platform:/plugin/de.vogella.e4.modelservice/de.vogella.e4.modelservice.part.NewPart&quot;);
		 List&lt;MPartStack&gt; stacks = modelService.findElements(application, null,
				MPartStack.class, null);
		 stacks.get(0).getChildren().add(part);
		 partService.showPart(part, PartState.ACTIVATE);
	}
</pre>
<p>The nice thing of this example is that it demonstrates how you can use the dynamic creating of application elements together with the part and the model service. Via the model service with use for a stack and this part is assigned to the first stack found. </p>
<p>You find more information in my <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4 tutorial</a>.</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=3395&amp;md5=b66d72e0d66546d70f26afb2a837b4ec" 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/12/07/eclipse-e4-create-a-new-part-dynamically/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eclipse e4 and the EModelService</title>
		<link>http://www.vogella.de/blog/2010/12/01/e4-emodelservice/</link>
		<comments>http://www.vogella.de/blog/2010/12/01/e4-emodelservice/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 14:08:35 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[E4]]></category>
		<category><![CDATA[Eclipse 4.0]]></category>
		<category><![CDATA[Eclipse 4.1]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=3380</guid>
		<description><![CDATA[One of the nicest things in my option in Eclipse e4 is that you have access to the model at runtime and can change it. To get access to the model you can use dependency injection to get the related model elements injected into your class or in you can use the EModelService.

The EModelService ...]]></description>
			<content:encoded><![CDATA[<p>One of the nicest things in my option in <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4</a> is that you have access to the model at runtime and can change it. To get access to the model you can use <a href="http://www.vogella.de/articles/EclipseE4/article.html#programmingmodel">dependency injection</a> to get the related model elements injected into your class or in you can use the EModelService.</p>
<p>The EModelService is pretty useful in my opinion as it allows you to access multiple model elements and you can use different filters, e.g. id, class name or tags. The following example is the implementation of a e4 handler. The first few statements will get get a few model elements and the last one will actually change the width of the first window to demonstrate that you can directly change model elements.</p>
<pre class="brush: plain; title: ; notranslate">
@Execute
	public void execute(MApplication application, EModelService service, Display display) {
		System.out.println(&quot;Got Model Service: &quot; + (service != null));
		// Alternatively get the model service from the application
		EModelService modelService = (EModelService) application.getContext()
				.get(EModelService.class.getName());
		// both services are identical
		System.out.println(&quot;Got Model Service: &quot; + (service != modelService));
		// Find objects by ID
		List&lt;MPart&gt; findElements = service.findElements(application, &quot;mypart&quot;,
				MPart.class, null);
		System.out.println(&quot;Found part(s) : &quot; + findElements.size());
		// Find objects by type
		List&lt;MPart&gt; parts = service.findElements(application, null,
				MPart.class, null);
		System.out.println(&quot;Found parts(s) : &quot; + parts.size());
		// Find objects by tags
		List&lt;String&gt; tags = new ArrayList&lt;String&gt;();
		tags.add(&quot;justatag&quot;);
		List&lt;MUIElement&gt; elementsWithTags = modelService.findElements(application, null,
				null, tags);
		System.out.println(&quot;Found parts(s) : &quot; + elementsWithTags.size());
		// Get the MWindow and change its size
		List&lt;MWindow&gt; windows = modelService.findElements(application, null, MWindow.class,
				 null);
		if (windows.size()&gt;=1){
			 MWindow mWindow = windows.get(0);
			 System.out.println(&quot;Got the window&quot;);
			for (int i = mWindow.getWidth(); i &gt;= mWindow.getWidth() - 100; i--) {
				while (!display.readAndDispatch()){
					mWindow.setWidth(i);
					wait10();
				}
			}
		}
	}
	private void wait10(){
		try {
			Thread.sleep(5);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
</pre>
<p>As usually find more details about Eclipse e4 in my <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4 tutorial</a>. </p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=3380&amp;md5=87feb2bb11d42580fcd8717b60d8336c" 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/12/01/e4-emodelservice/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>Take Eclipse 4.1 M3 for a spin</title>
		<link>http://www.vogella.de/blog/2010/11/03/eclipse-4-1-m3/</link>
		<comments>http://www.vogella.de/blog/2010/11/03/eclipse-4-1-m3/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 05:57:49 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[E4]]></category>
		<category><![CDATA[Eclipse 4.0]]></category>
		<category><![CDATA[Eclipse 4.1]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=3413</guid>
		<description><![CDATA[Andrew Niefer announced the availability of the Eclipse 4.1 M3 builds.

You can download it from http://download.eclipse.org/e4/sdk/drops/S-4.1M3-201010291118.



The e4 build provides a repo that can be used to install the source bundles for e4 UI and e4 UI CSS, as well as other e4 functionailty like the modeling tools, XWT, and SFS (resources). This has been ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://aniefer.blogspot.com/">Andrew Niefer</a> announced the availability of the Eclipse 4.1 M3 builds.</p>
<p>You can download it from <a href="http://download.eclipse.org/e4/sdk/drops/S-4.1M3-201010291118">http://download.eclipse.org/e4/sdk/drops/S-4.1M3-201010291118</a>.</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2010/11/M3.png"><img src="http://www.vogella.de/blog/wp-content/uploads/2010/11/M3.png" alt="" width="202" height="127" class="aligncenter size-full wp-image-3428" /></a></p>
<p>The e4 build provides a repo that can be used to install the source bundles for e4 UI and e4 UI CSS, as well as other e4 functionailty like the modeling tools, XWT, and SFS (resources). This has been a big problem for Eclipes 4.1 M2 and seems to be solved now. Congrats for providing the p2 update site! </p>
<p>Unfortunately the p2 update in Eclipse 4.1 M3 takes very, very, very, very long. So be patient if you try to install the e4 tooling. </p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2010/11/p2eclipse411.png"><img src="http://www.vogella.de/blog/wp-content/uploads/2010/11/p2eclipse411.png" alt="" width="101" height="54" class="aligncenter size-full wp-image-3424" /></a></p>
<p>In preparation of the <a href="http://www.eclipsecon.org/summiteurope2010/">Eclipse Summit Europe</a> I have heavily extended my <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4 tutorial</a>. Please give Eclipse 4.1 M3 a test drive and open bugs against Eclipse E4/UI (or appropriate component).</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=3413&amp;md5=1d62a8cb80eababa0131e2ad32cbd59d" 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/03/eclipse-4-1-m3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modify the e4 model at startup via processors</title>
		<link>http://www.vogella.de/blog/2010/10/26/processors-e4-model/</link>
		<comments>http://www.vogella.de/blog/2010/10/26/processors-e4-model/#comments</comments>
		<pubDate>Tue, 26 Oct 2010 08:12:31 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[E4]]></category>
		<category><![CDATA[Eclipse 4.0]]></category>
		<category><![CDATA[Eclipse 4.1]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=3296</guid>
		<description><![CDATA[Eclipse e4 offers two ways to contribute to the application model, via fragments and processors. Fragments describe via static xmi additonal model elements and processors allow to add and modify existing model elements. 

I added an example to my Eclipse 4.0 Tutorial how you could use a processor to remove certain model elements (in ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4</a> offers two ways to contribute to the <a href="http://www.vogella.de/articles/EclipseE4/article.html#applicationmodel">application model</a>, via fragments and processors. Fragments describe via static xmi additonal model elements and processors allow to add and modify existing model elements. </p>
<p>I added an example to my <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse 4.0 Tutorial</a> how you could use a processor to remove certain model elements (in my case menu entries) and how to add a new one. </p>
<pre class="brush: plain; title: ; notranslate">

package de.vogella.e4.todo.contribute;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.model.application.ui.menu.MDirectMenuItem;
import org.eclipse.e4.ui.model.application.ui.menu.MMenu;
import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement;
import org.eclipse.e4.ui.model.application.ui.menu.MMenuFactory;

public class MenuProcessor {
	// I get this via the parameter of the process definition
	@Inject
	@Named(&quot;de.vogella.e4.todo.filemenu&quot;)
	private MMenu menu;

	@Execute
	public void execute() {
		// Remove the old exit menu entry
		if (menu != null &amp;&amp; menu.getChildren() != null) {
			List&lt;MMenuElement&gt; list = new ArrayList&lt;MMenuElement&gt;();
			for (MMenuElement element : menu.getChildren()) {
				if (element.getLabel().contains(&quot;Exit&quot;)) {
					list.add(element);
				}
			}
			menu.getChildren().removeAll(list);
		}

               // Add a new menu entry
		MDirectMenuItem menuItem = MMenuFactory.INSTANCE.createDirectMenuItem();
		menuItem.setLabel(&quot;Another Exit&quot;);
		menuItem.setContributionURI(&quot;platform:/plugin/de.vogella.e4.todo.contribute/de.vogella.e4.todo.contribute.handler.ExitHandlerWithCheck&quot;);
		menu.getChildren().add(menuItem);
	}
}
</pre>
<p>I hope this shows how simple the application model can be modified. For details check out <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse 4.0 Tutorial</a> .</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=3296&amp;md5=18ed17e757050bee44c737bcb4ef07db" 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/10/26/processors-e4-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drag and drop support for your parts within the workbench in Eclipse e4</title>
		<link>http://www.vogella.de/blog/2010/10/20/drag-and-drop-e4/</link>
		<comments>http://www.vogella.de/blog/2010/10/20/drag-and-drop-e4/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 19:14:03 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[E4]]></category>
		<category><![CDATA[Eclipse 4.0]]></category>
		<category><![CDATA[Eclipse 4.1]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=3281</guid>
		<description><![CDATA[Some of you may have noticed that you cannot drag and drop your parts (views and editors) within an Eclipse e4 application by default. 

To make this work add a dependency to the plugin "org.eclipse.e4.ui.workbench.addons.swt" and add the Add-On "org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon" to your "Application.e4xmi". For example you could add it via the following:



I also updated ...]]></description>
			<content:encoded><![CDATA[<p>Some of you may have noticed that you cannot drag and drop your parts (views and editors) within an <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4 </a>application by default. </p>
<p>To make this work add a dependency to the plugin &#8220;org.eclipse.e4.ui.workbench.addons.swt&#8221; and add the Add-On &#8220;org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon&#8221; to your &#8220;Application.e4xmi&#8221;. For example you could add it via the following:</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2010/10/draganddrop.png"><img src="http://www.vogella.de/blog/wp-content/uploads/2010/10/draganddrop.png" alt="" width="643" height="142" class="aligncenter size-full wp-image-3283" /></a></p>
<p>I also updated my <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4 Tutorial</a>. </p>
<p>Many thanks to <a href="http://tomsondev.bestsolution.at/">Tom Schindl</a> for the tip.</p>
<p>[Update] The D&amp;D in the user interface creates additional containers. To get ride of them use the Add-On platform:/plugin/org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.cleanupaddon.CleanupAddon</p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=3281&amp;md5=509c421222a32ded2fd42a72f6d19740" 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/10/20/drag-and-drop-e4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The persistence of e4</title>
		<link>http://www.vogella.de/blog/2010/10/17/saveandrestore-e4/</link>
		<comments>http://www.vogella.de/blog/2010/10/17/saveandrestore-e4/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 19:16:31 +0000</pubDate>
		<dc:creator>Lars Vogel</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[E4]]></category>
		<category><![CDATA[Eclipse 4.0]]></category>
		<category><![CDATA[Eclipse 4.1]]></category>

		<guid isPermaLink="false">http://www.vogella.de/blog/?p=3252</guid>
		<description><![CDATA[In Eclipse 3.x you can remember the current application state (the user's layout and window size) between application sessions, via the setting configurer.setSaveAndRestore(true); in the initialize method of ApplicationWorkbenchAdvisor. See Eclipse RCP Tips and Tricks for details. 

Eclipse e4 has no ApplicationWorkbenchAdvisor class and the application model has no property to set this. Therefore ...]]></description>
			<content:encoded><![CDATA[<p>In Eclipse 3.x you can remember the current application state (the user&#8217;s layout and window size) between application sessions, via the setting configurer.setSaveAndRestore(true); in the initialize method of ApplicationWorkbenchAdvisor. See <a href="http://www.vogella.de/articles/EclipseRCP/article.html#tips_userlayout">Eclipse RCP Tips and Tricks</a> for details. </p>
<p><a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse e4</a> has no ApplicationWorkbenchAdvisor class and the <a href="http://www.vogella.de/articles/EclipseE4/article.html#applicationmodel">application model</a> has no property to set this. Therefore you may assume that you cannot influence the e4 behavior. </p>
<p>But of course this is not true. <img src='http://www.vogella.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://www.vogella.de/articles/EclipseE4/article.html">e4</a> has two command line options to get a similar behavior then in Eclipse 3.6. If you use the command line option &#8220;-clearPersistedState&#8221; then the user changes will be deleted. </p>
<p>I believe &#8220;-deltaRestore&#8221; is intended to work similar to setSaveAndRestore(true). Currently in Eclipse 4.1 M2 the state is always saved but I think that is a minor bug. See <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=313883">https://bugs.eclipse.org/bugs/show_bug.cgi?id=313883</a> for details.</p>
<p><strong>Many thanks to <a href="http://blog.hantsuki.org/">Remy Suen</a> </strong>for the tip on these parameters.</p>
<p>Once the bug discussion has been finished I will update my <a href="http://www.vogella.de/articles/EclipseE4/article.html">Eclipse 4.0 Tutorial</a>.</p>
<p><strong>[UPDATE: The parameter is not called deltaIgnore instead of "deltaRestore".]</strong></p>
<p class="wp-flattr-button"></p> <p><a href="http://www.vogella.de/blog/?flattrss_redirect&amp;id=3252&amp;md5=c9f2b3dc61850b16190031faa7c94ef7" 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/10/17/saveandrestore-e4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Eclipse 4.0 Talk on 26.08 in Dresden / Germany</title>
		<link>http://www.vogella.de/blog/2010/08/05/eclipse-4-0-application-talk/</link>
		<comments>http://www.vogella.de/blog/2010/08/05/eclipse-4-0-application-talk/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 09:11:28 +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=2956</guid>
		<description><![CDATA[Are you around the Dresden area? 

If so it would be great if you join my presentation about Eclipse 4.0 / Eclipse e4. The german title roughly translates into "the unexpected simplicity of developing Eclipse plugin and Eclipse RCP applications".



The talk will be in German and details can be found on Saxony Website. I'm ...]]></description>
			<content:encoded><![CDATA[<p>Are you around the Dresden area? </p>
<p>If so it would be great if you join my presentation about Eclipse 4.0 / Eclipse e4. The german title roughly translates into &#8220;the unexpected simplicity of developing Eclipse plugin and Eclipse RCP applications&#8221;.</p>
<p><a href="http://www.vogella.de/blog/wp-content/uploads/2010/08/JUG_August_2010.jpeg"><img src="http://www.vogella.de/blog/wp-content/uploads/2010/08/JUG_August_2010.jpeg" alt="" width="426" height="601" class="aligncenter size-full wp-image-2957" /></a></p>
<p>The talk will be in German and details can be found on <a href="http://www.software-saxony.de/?p=1466">Saxony Website</a>. I&#8217;m looking forward to meet you. </p>
<p class="wp-flattr-button"></p>]]></content:encoded>
			<wfw:commentRss>http://www.vogella.de/blog/2010/08/05/eclipse-4-0-application-talk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

