Tag Archives: Eclipse 4.1

Eclipse e4 – Creating a new part dynamically

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 … Continue reading

Posted in Eclipse | Tagged , , | 2 Comments

Eclipse e4 and the EModelService

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 … Continue reading

Posted in Eclipse | Tagged , , | 2 Comments

Take Eclipse 4.1 M3 for a spin

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 … Continue reading

Posted in Eclipse | Tagged , , | Comments Off on Take Eclipse 4.1 M3 for a spin

Modify the e4 model at startup via processors

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 … Continue reading

Posted in Eclipse | Tagged , , | Comments Off on Modify the e4 model at startup via processors

Drag and drop support for your parts within the workbench in Eclipse e4

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” … Continue reading

Posted in Eclipse | Tagged , , | Comments Off on Drag and drop support for your parts within the workbench in Eclipse e4

The persistence of e4

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 … Continue reading

Posted in Eclipse | Tagged , , | 2 Comments