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 "Epsilon/HowTo"

Line 11: Line 11:
 
=== How can I use an existing EMF Resource in Epsilon ===
 
=== How can I use an existing EMF Resource in Epsilon ===
  
To use an existing EMF Resource, you should wrap it as an [[http://download.eclipse.org/epsilon/javadoc/org/eclipse/epsilon/emc/emf/InMemoryEmfModel.html InMemoryEmfMode]].
+
To use an existing EMF Resource, you should wrap it as an [http://download.eclipse.org/epsilon/javadoc/org/eclipse/epsilon/emc/emf/InMemoryEmfModel.html InMemoryEmfModel].
  
 
=== How can I validate/transform Archi models using Epsilon? ===
 
=== How can I validate/transform Archi models using Epsilon? ===
  
 
To use Archi (http://www.archimatetool.com/) models within Eclipse, you need to install the Archi plugins from https://github.com/archi-contribs/eclipse-update-site. You can then use Archi models in Epsilon in the same way that you'd use any other EMF-based models.
 
To use Archi (http://www.archimatetool.com/) models within Eclipse, you need to install the Archi plugins from https://github.com/archi-contribs/eclipse-update-site. You can then use Archi models in Epsilon in the same way that you'd use any other EMF-based models.

Revision as of 10:27, 13 November 2014

Quick solutions to common questions related to Epsilon.

How do I get all children of a model element?

Epsilon does not provide a built-in method for this but you can use EObject's eContents() method if you're working with EMF. To get all descendants of an element, something like the following should do the trick: o.asSequence().closure(x | x.eContents()). See https://www.eclipse.org/forums/index.php/t/855628/ for more details.

How do I get the container of a model element?

Epsilon does not provide a built-in method for this but you can use EObject's eConainer() method if you're working with EMF.

How can I use an existing EMF Resource in Epsilon

To use an existing EMF Resource, you should wrap it as an InMemoryEmfModel.

How can I validate/transform Archi models using Epsilon?

To use Archi (http://www.archimatetool.com/) models within Eclipse, you need to install the Archi plugins from https://github.com/archi-contribs/eclipse-update-site. You can then use Archi models in Epsilon in the same way that you'd use any other EMF-based models.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.