Skip to content
Jens von Pilgrim edited this page Nov 3, 2013 · 3 revisions

Unfortunately, Mitra2 is still in beta, and development is stalled at the moment. However, the current version is working, although not all features have been implemented yet.

Preparations

The current version is still based on Eclipse Juno (4.2). In order to have all required plugins, it is recommended to install the DSL package from

http://eclipse.org/downloads/packages/eclipse-ide-java-and-dsl-developers/junosr2

Additionally, the ecore transactions are required (this step can be skipped if Mitra2 is installed from update site): Install from Juno update site (http://download.eclipse.org/releases/juno):

  • Modeling / EMF Model Transaction SDK 1.6.0

Install Plugin from Update Site

Now, install Mitra2 nightly build:

Select: Help/Install New Software Download Site (Work With): http://mitra2.org/nightly/ Select and Install: Mitra2

Configure Developer Workspace

Clone Mitra Repository (via git command line tool):

git clone https://github.com/jpilgrim/mitra2.git

Start Eclipse and import all bundles from this repository. Then, generate files from Mitra grammar via Mitra.mwe2 workflow in plugins/de.jevopi.mitra2/src/de/jevopi/mitra2/GenerateMitra2.mwe2

Start as Eclipse project with the following argument settings:

Mac OS X:

-Dosgi.requiredJavaVersion=1.5 -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -XX:MaxPermSize=256m -Xms40m -Xmx512m -Xdock:icon=../Resources/Eclipse.icns -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts

Windows:

-Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xmx512m -XX:MaxPermSize=256m -Xms40m -Xmx512m -Dorg.eclipse.swt.internal.carbon.smallFonts

Test it

  • Create new general project.
  • Place Mitra transformation in that project, along with models to be transformed
  • Create new run configuration (via Run-Toolbar Button): Mitra Standalone