eclipse / epsilon

Epsilon is a family of Java-based scripting languages for automating common model-based software engineering tasks, such as code generation, model-to-model transformation and model validation, that work out of the box with EMF (including Xtext and Sirius), UML (including Cameo/MagicDraw), Simulink, XML and other types of models.
https://eclipse.org/epsilon
Eclipse Public License 2.0
53 stars 11 forks source link

Support for custom icons in Exeed #80

Closed arcanefoam closed 4 months ago

arcanefoam commented 4 months ago

This bug was originally reported in https://bugs.eclipse.org/bugs/show_bug.cgi?id=460540.

A patch was submitted but never merged.

In order to add arbitrary icons the icon annotation now accepts platform URIs for icon location. Thus, you can reference any icon in the worksapce or installation.

I have only tested with workspace references. The specficaion would be as follows (in emfatic): @exeed(icon="return 'platform:/resource/my.plugin/some/path/icon.gif';") class MyIconClass {

}

Note that as opposed to the Exeed default icons the image extension has to be inlcuded.