This is part of the Workshop here.
ATTENTION EclipseCon Tutorial participants: because of some trouble with Helios M6 Updatesites (see my blog here) and also, that there’s no WLAN in the Grand Ballroom, we’re working on a solution to have all available from a local updatesite you can copy from USB sticks available at the Tutorial. Perhaps we also publish the site online to download them before the Tutorial starts. Follow @ekkescorner on twitter to get noticed. But you should download Helios SDK M6 for your OS.
Installation for redView and red-open examples
We need a special Eclipse Installation to work with redView Examples. This is also the target of generating redView View models and code from the modeling installation using red-open software manufactory.
Install SDK (or EPP – RCP / Modeling)
Download Eclipse Helios (M6 or greater) SDK, unzip in a folder you like.
You can also download EPP M6 for RCP or Modeling if available – then the fetching of missing dependencies will be faster 😉
Now edit the eclipse.ini to change the memory allocation.
-XX:MaxPermSize=256m -Xms256m -Xmx768m
If you downloaded from Eclipse EPP then perhaps the memory is already increased.
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/redview)
Go to Preferences and edit the Encoding to UTF-8:
We also have to add the “-data” pointing to our workspace location because of a bug. (While starting Eclipse with all redView Bundles and Declarative Services, Eclipse looses the information of the selected workspace location and will open a workspace from default user home. We’re working to fix this. In the meantime the only workaround is adding “-data” or – after starting eclipse switching to the correct workspace)
Install new Software into IDE
We need some features and plug-ins – thanks to Eclipse Software Sites this is easy done:
- Helios SDK (IDE)
- Software Site Unicase (EMFStore) (http://unicase.googlecode.com/svn/updatesite/emfstoreNightly)
- Software Site ekkes-corner (http://ekkes-updates.de/ekkes-corner)
- Software Site redView (http://ekkes-updates.de/redview)
Hint: redView Designer Feature contains all Riena Plug-ins needed inside the IDE. Please NEVER use the Riena Update Site – this site is only to be used in TargetPlatforms !!
Now your Software Sites should like this:
Now we add new Software and only select the redView Software Site.
Please don’t check RT ONLY Fetures !!. Otherwise you would have unwanted behaviour in your IDE 😉
At the moment of writingn there’s a bug installing unwanted RAP dependencies into the IDE – so we have a special feature with some modified Riena Plug-ins included: we simply removed the optional RAP dependencies. if the bug is fixed you’ll miss this feature.
“Next” and “Finish” and Restart Eclipse.
If your Eclipse doesn’t open the workspace correct perhaps you forgot to add the “-data” as described above ?
Import Example Projects
Now we need to import the Example Projects.
You can download the examples from SourceForge (XXXXXXX).
You don’t need to extract the ZIP files – you can directly import from the archiv. Please select all example bundles and import them.
Preparation of Workspace done 🙂
Firsts tests from IDE
Go to the HelloWorld Example -> viewstore and open HelloWorld.redview with Redview Designer:
The designer editor should open like this:
congratulations: this looks good !
First tests from launched Eclipse Application
Now launch as EclipseApplication:
The application should start and then you can Show the HelloWorld View as normal SWT View:
The View should appear:
Test Views with local EMFStore
There are some examples named with “emfstore” – these are so configured that they don’t work with XMI Files – these Views are stored in an EMF Repository: EMFStore.
To view or design these views we need the Unicase Navigator – please open the View:
The Navigator should display all Views from the Server. But stop – we don’t have configured or started an EMFStore Server.
Doesn’t matter – if there’s no server you can work with the examples from a local EMFStore project to test it out. If you open an “EMFStore example View” you’ll get:
all redview emfstore examples will be automatically imported into the local project….
…and available in your Unicase Navigator View:
You can now open Views from the store the same way as XMI File – based: Show View….
If you right-click on a view from Unicase Navigator the View will be opened with redView’s designer:
Here’s the same view opened as SWT View and also in redViews Designer – both loaded from local EMFStore:
If you edit the View in the Designer – changes are reflected into the open View.
Work with the EMFStore Server
please follow the descriptions how to download, install and configure the EMFStore Server here
you’re ready ! all is installed and available to work with 🙂