eclipse-epsilon / 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
67 stars 10 forks source link

Mention how to populate environment:/ URIs in Sirius example #134

Open agarciadom opened 3 weeks ago

agarciadom commented 3 weeks ago

In the example for working with Sirius models from Epsilon through a plain Java program, we should mention how to register the Environment.odesign into the URIConverter.URI_MAP manually (which is needed to provide some standard values, like the default color palette). It's something of this sort:

URIConverter.URI_MAP.put(
  URI.createURI("environment:/viewpoint"),
  URI.createURI(DescriptionPackage.class.getResource("/model/Environment.odesign").toURI().toString())
);