riena emf dynamic views

workshop – prepare eclipse installation (riena)

This is part of the Workshop here.

Riena Runtime Installation

We need a special Eclipse Installation to easy start Riena Runtime RCP Applications. We’ll generate into this workspace from our modeling installation using red-open software manufactory to get Riena UI with redView dynamic SWT Views.

The installation is devided into some parts:

  • install the SDK – or EPP RCP
  • create the target platform
    • target for Riena
    • target for redView without EMFStore
    • target for redView including EMFStore
  • install into IDE
    • Riena Toolbox

Install SDK (or EPP – RCP)

Download Eclipse Helios (M6 or greater) SDK, unzip in a folder you like.

You can also download EPP M6 for RCP if available – then the fetching of missing dependencies will be faster 😉

Now edit the eclipse.ini to change the memory allocation:

Start Eclipse and select a new Workspace at a Location you like. (Hint: we need sometimes the path to the workspace, so it’s a good idea to choose a location with a short path like /mydisk/work/riena)

Go to Preferences and edit the Encoding to UTF-8:

Create Target Platform

This Eclipse Installation supports the development of Runtime Applications (Riena RCP) – so we need a Target Platform:

Target Platform for Riena

At first let us install all for Riena: RCP SDK, Equinox SDK, Riena 2.0.0.M6 – you also find details on this at Riena Wiki here.

Go to Preferences -> Target Platforms and add a new Target Platform – we start with an empty one:

Please click on the link “Work with the list of Software sites“, which gives you access to the already know software sites of your eclipse installation – then select the “...releases/helios” Site, uncheck “Group by Category and choose “Eclipse RCP SDK“:

As next we need “Equinox Project SDK” from same Software Site.

last step to install Riena please add a new Software Site “” and select ALL – don’t wonder about twice names – its not a bug its a feature 😉

after Eclipse fetched all content, it should look like this:

Now we change the Target Platform:

You have successfully installed the Riena Target Platform into your Eclipse Helios M6 SDK 🙂

If you only wan to use Riena – then you’re ready to go – if you want to use the cool Riena Toolbox you have also to install some bundles into IDE (see last chapter this site)

I you want to use redView, then please follow….

Now lets add all we need to work with redView using TargetPlatform. We can go two different ways: using XMI or EMFStore Server using from our Runtime Applications. If you don’t need to store your EMF – SWT – View Models in a central repository, you only have to install from next chapter – if you want to use the EMFStore Server, too – sorry, but you have to read until the end 😉

Target Platform redView without EMFStore Server

(we’re working without the EMFStore Server, but all EMF models are prepared to add this later, so we still need the MetaModels)

Unicase (EMFStore) and redView have some dependencies – so we again have to add some features from

  • Helios Site (already available from your Helios SDK Installation)
    • EMF Core Runtime
    • EMF Common
    • EMF Ecore Edit
    • EMF Edit
    • EMF Model Transaction
    • EMF Validation Framework

this is your selection:

now we add the features needed from other sites:

these are your selections from ekkes-corner:

from unicase (emfstore) only one is needed:

from redview we selected these ones:

Now your Target Platform should look like this

You’re done ! You can work with redview and Riena from targetPlatform. If you want to use the EMFStore Server only some more features are needed:

Alternate Target Platform (redView with EMFStore)

From the built-in Helios Update Site we select:

  • Helios Site
    • OCL 2.1

this is your selection:

From Unicase and redView we need additionally:

here are your selections from EMFStore:

and from redView:

finally your TargetPlatform looks like this:

Now you’re finally done: redView + Riena + EMFStore Server are available from your TargetPlatform 🙂

It’s a good idea to store your target platform definition in your workspace – so you can share with others or easy use it inside other installations. (Hint: the software sites must be available). Don’t know how to do this ? it’s easy – at first create a normal Project in your workspace, then select your target platform and click “Share“:

then select the project and give it a name:

reloading the target platform from workspace can take a while (don’t know what pde or p2 is doing in the background, because all plug-ins and features should already be there)

Install Software in IDE

Now as our Target Platform is running, we have to add some cool tools from Riena:

Install Riena Toolbox into the IDE

…work in pogress…. because of Bugzilla 306279 which brings you unwanted dependencies to RAP into the IDE. So please – at the moment of writing this – DON’T INSTALL THE TOOLBOX NOW.

…to be continued….


back to the workshop.

%d bloggers like this: