Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "VIATRA2/Ecore2Genmodel"

(Ecore2GenModel Transformation)
Line 24: Line 24:
  
 
=== Manual execution  ===
 
=== Manual execution  ===
 +
 +
Execute transformation step-by-step:
 +
 +
0. Switch to VIATRA2 Perspective
 +
 +
1. Open nemf-meta.vpml
 +
 +
2. Drag and drop ecore2genmodel_cropped.vtcl file on the model space in the VIATRA2 Model spaces view (lower left corner)
 +
 +
3. Right-click on the model space in the same view and select "Native importers" and "Ecore Instance importer"
 +
 +
4. Select the desired Ecore file to import. The created model appears under nemf.resources in the model space.
 +
 +
5. Right-click ecore2genmodel below Program Models (VIATRA2 Model spaces view) and select "Run..."
 +
 +
6. Select the Ecore package to transform below nemf.resources and click "Select Model Element"
 +
 +
7. Enter additional properties (Model name and pluginID) then click OK. Use space or semicolon to separate parameters.
 +
 +
8. The GenModel model is created under nemf.resources using the model name and "_genmodel".
 +
 +
9. Right-click on the model space again, select "Contributions" and "Export GenModel"
 +
 +
10. Select the folder and name for the .genmodel file
 +
 +
11. Input the name of the created GenModel model and click OK.
 +
 +
Note: Export works only with the last imported model (due to a reqiured reference to the original Ecore resource)
  
 
=== Interesting points of the transformation ===
 
=== Interesting points of the transformation ===

Revision as of 09:37, 8 July 2010

Ecore2GenModel Transformation

This page is dedicated to the TTC 2010 Ecore2GenModel case study solution implemented in VIATRA2.

Description

Try it in SHARE

SHARE is a hosted demonstration platform where tools prepared in dedicated virtual machines can be accessed through remote desktop connection.

To try our solution in SHARE, go here.

Installation

The solution can be easily installed into an Eclipse (3.5+) using our dedicated update site. After selecting all the features, the plugin dependencies are automatically resolved, as long as you have the default Eclipse update site (Galileo/Helios) and have the "Contact all update sites..." enabled.

Screenshot

Execution

Select an arbitrary Ecore model (.ecore file) in the Navigator view, right-click to bring up the local menu and click on "Generate GenModel". The resulting .genmodel file is created and can be opened with the inbuilt EMF editors.

Screenshot

Manual execution

Execute transformation step-by-step:

0. Switch to VIATRA2 Perspective

1. Open nemf-meta.vpml

2. Drag and drop ecore2genmodel_cropped.vtcl file on the model space in the VIATRA2 Model spaces view (lower left corner)

3. Right-click on the model space in the same view and select "Native importers" and "Ecore Instance importer"

4. Select the desired Ecore file to import. The created model appears under nemf.resources in the model space.

5. Right-click ecore2genmodel below Program Models (VIATRA2 Model spaces view) and select "Run..."

6. Select the Ecore package to transform below nemf.resources and click "Select Model Element"

7. Enter additional properties (Model name and pluginID) then click OK. Use space or semicolon to separate parameters.

8. The GenModel model is created under nemf.resources using the model name and "_genmodel".

9. Right-click on the model space again, select "Contributions" and "Export GenModel"

10. Select the folder and name for the .genmodel file

11. Input the name of the created GenModel model and click OK.

Note: Export works only with the last imported model (due to a reqiured reference to the original Ecore resource)

Interesting points of the transformation

Back to the top