Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Epsilon/HowTo"
Line 25: | Line 25: | ||
Epsilon does not provide support for type-aware code completion as Epsilon languages are dynamically typed. However, ctrl/cmd+space provides a list of previously typed tokens to speed up typing. | Epsilon does not provide support for type-aware code completion as Epsilon languages are dynamically typed. However, ctrl/cmd+space provides a list of previously typed tokens to speed up typing. | ||
− | === How can I embed Epsilon in my Java/Android application === | + | === How can I embed Epsilon in my Java/Android application? === |
− | We provide [https://www.eclipse.org/epsilon/download ready-to-use JARs] (without any Eclipse dependencies) that you can use to embed Epsilon in standalone Java/Android applications | + | We provide [https://www.eclipse.org/epsilon/download ready-to-use JARs] (without any Eclipse dependencies) that you can use to embed Epsilon in standalone Java/Android applications. |
− | === How can I profile Epsilon programs executed through ANT tasks === | + | === How can I profile Epsilon programs executed through ANT tasks? === |
− | To do this, you'll need to add a profile="true" attribute to the task you need to profile | + | To do this, you'll need to add a profile="true" attribute to the task you need to profile. |
Latest revision as of 12:00, 1 December 2014
Quick solutions to common questions related to Epsilon.
Contents
- 1 How do I get all children of a model element?
- 2 How do I get the container of a model element?
- 3 How can I use an existing EMF Resource in Epsilon?
- 4 How can I validate/transform Archi models using Epsilon?
- 5 Where is the metamodel of ETL/EVL etc.?
- 6 How do I enable code-completion/assistance in the Epsilon editors?
- 7 How can I embed Epsilon in my Java/Android application?
- 8 How can I profile Epsilon programs executed through ANT tasks?
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 in your Epsilon program, you should wrap it as an InMemoryEmfModel first.
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.
Where is the metamodel of ETL/EVL etc.?
Epsilon languages do not have Ecore-based metamodels.
How do I enable code-completion/assistance in the Epsilon editors?
Epsilon does not provide support for type-aware code completion as Epsilon languages are dynamically typed. However, ctrl/cmd+space provides a list of previously typed tokens to speed up typing.
How can I embed Epsilon in my Java/Android application?
We provide ready-to-use JARs (without any Eclipse dependencies) that you can use to embed Epsilon in standalone Java/Android applications.
How can I profile Epsilon programs executed through ANT tasks?
To do this, you'll need to add a profile="true" attribute to the task you need to profile.