Eclipse 4 Application Platform Tutorial App on Github

For my Eclipse 4 Application Platform trainings/tutorial I use a small but complete application for the tutorial labs. The application includes:

  • Eclipse 4 Application Model
  • Domain Model as OSGi Declarative Service (to be used with DI container)
  • Eclipse 4 Application Model extension:
    • Providing a model fragment in a separate bundle (Details View)
    • Extending the e4 ui application model with a new model element (TutorialPartStack)
  • Headless build with Tycho
  • A bit CSS styling
  • A styled Login dialog using Lifecycle-Hooks
  • much more 🙂

You find all the projects at

The Tycho Build
To run the Tycho build locally, just:

  • Have Maven 3 installed
  • Clone the above Git repo
  • Open a shell in project
  • Run command “mvn clean install”
  • Wait a while (first build takes long) until the build succeeds
  • The results for Win (32/64) and Linux GTK (32/64) and Mac Cocoa (32/64) are in project org.eclipse.e4.tutorial.contacts.product/target/products

Good Tycho introductions can be found at and

The Eclipse 4 Application Model Extension
In the project org.eclipse.e4.tutorial.contacts.model.application you find a small extension to the Eclipse 4 application model, a custom PartStack named TutorialPartStack. This extension is used in the Application.e4xmi file of project org.eclipse.e4.tutorial.contacts. To open the Application.e4xmi in your running Eclipse IDE (in model editors), you have to export the project org.eclipse.e4.tutorial.contacts.model.application into your running IDE.

  • To export, open MANIFEST.MF, in the Overview-Tab of the manifest editor click on “Export Wizard” and then choose “Install into host. Repository:”
  • Restart your Eclipse SDK, now you should be able to open Application.e4xmi
  • If you don’t want to install the model extension into your running Eclipse SDK, you could just start a new Eclipse SDK instance and make sure that the project org.eclipse.e4.tutorial.contacts.model.application is checked in the Run-Configuration.

Any feedback on the tutorial projects would be highly appreciated.

Have Fun!


You find me on Twitter and Google+.
Interested in Eclipse 4 Application Platform trainings?

This Post Has 3 Comments

  1. jotomo

    Running this on linux x64, I get the attached exception about an unresolved SWT class. Looking around I see that no plugin org.eclipse.swt.gtk.linux.x86_64 is packaged. Matter of fact, where the win32 version has the org.eclipse.swt.win32 package, neither the linux nor the osx packages have a org.eclipse.swt.{gtk,cocoa} package.

  2. Kai Tödter

    Oops, you are right, thanks for the hint! I have fixed that already, now the product is feature-based and the rcp feature is included in the product dependencies. Please pull the master again (you will get a new project org.eclipse.e4.tutorial.contacts.feature). When you run the tycho build again, every platform build should be OK. I just tested it with MacOSX 64bit.

  3. jotomo

    Thanks for the quick fix Kai, works nicely now 🙂

Leave a Reply

I accept the Privacy Policy