For "Import From" select "Directory" and navigate to the plugin location from step 8
For "Plug-ins and Fragments to Import" choose "Select from all plug-ins ..."
For "Import As" select "Projects with source folder" -> next
add all four plugins for import
(ATTENTION! Compilation errors will disappear after step 11)
Generate the mode and edit code
Select "org.emftrace.metamodel" plugin and open the file "MetaModel.genmodel" under the model folder
Rigth-click on "MetaModel" in the editor
Execute "Generate Model Code" and "Gernate Edit Code" one after another
Build the plugin-projects with Eclipse
Code will be automatically compiled normally
If not: Project -> Build All
(Now the errors should be disappear) (if not nee hint 6)
Create a Debug/Run Configurations for EMFStore Server
Eclipse -> Run -> Run (or Debug) Configurations
Right-click on "Eclipse Application" -> New
Name the new element: "EMFStore Server"
Main-tab
Select "Run a Product" and enter "org.eclipse.emf.emfstore.server.server"
Plug-ins tab
For "Launch with" select "plugins selected below only"
Add the following plugins: (deselect all first)
org.emftrace.metamodel
org.emftrace.metamodel.edit
Select "Add Required Plug-ins" two times
Then "Validate Plugins-Ins" and "Apply"
Add Debug/Run Configurations for EMFTrace Client
Eclipse -> Run -> Run (or Debug) Configurations
Rigth-click on "Eclipse Application" -> New
Name the new element: "EMFTrace Client"
Main tab
Select ''Run as Product'' and enter "org.eclipse.emf.ecp.application.e3.product"
Plug-ins tab
For "Launch with" select "plug-ins selected below only"
Add the following plugins:
org.emftrace.core
org.emftrace.metamodel
org.emftrace.metamodel.edit
org.emftrace.ui
Search for "emf.ecp", be sure that all features are selected except these:
* org.eclipse.emf.ecp.cdo.core
* org.eclipse.emf.ecp.cdo.ui
Select "Add Required Plug-ins" two times and "Validate Plugins-Ins"
Select "Arguments" tab
Add "-EMFStoreHome=${workspace_loc}" to the arguments
Press "Apply"
Run JUnit Plug-in Tests
Open the "org.emftrace.core" plugin -> src -> "org.emftrace.core.test"
Select "AllTests.java"
Right-click -> Run As -> JUnit Plug-in Tests
Make sure all tests run successfully (if not see hint 2)
Hints and pitfalls
You can also use a SVN client like Subversive to check out the repositories. But make sure the repositories are configured as Plugins-Projects within Eclipse. In some cases they will not be recognized as Plug-in Projects. We recommend to import the plug-ins like in step 9, then you can use Subversive to update the project. You do not need an external SVN plugin as well. How to check out and import with Subversive see the instructions below the hints.
If you get an error of "FileNotFoundExceptions" or "ClassNotFoundException" please check the class path setting "Bundle-ClassPath" in your MANIFEST.MF files and just use a dot "." here. This error is induced by automatic generation of eclipse plugin project.
A restart is only necessary right before step 8. This makes the installation be done faster. Except you install MoDisco in step 7, then this restart is necessary as well.
Use the filter function to reach the necessary features directly.
MoDisco is a tool to gernate a model out of your source code, but for the actual funktion of EMFTrace is not important to install it.
After step 11 there are still errors in the UI plugin? Then the MANIFEST.MF file ist not syncron with your bundels. Change the bundle number from "2.10.0" to "2.9.0" and the error should be dissolved after saving.
SVN with Subversive
Install the plugin from the Eclipse Marketplace
Create a new Java project and name it as you will
then Eclipse -> File -> Import -> SVN -> Project from SVN
(at the first use you will be asked to install a SVN connector library)
Enter the URL from the repostory and "check out as a folder into existing project" when prompted
Do the same import for the other projects as well
Now continue with step 9
After import, you can delete the checked-out projects.