Icons Management

In an eclipse environment, emf2gv uses the registration mechanism to retrieve the icons.

Outside Eclipse, for example in a standalone application, this mechanism cannot be used.

In that case, emf2gv uses an icon provider (org.emftools.emf2gv.processor.core.IEObjectIconProvider) that you are free to implement to meet your needs. Emf2gv nevertheless comes with a default implementation (org.emftools.emf2gv.processor.core.ClasspathEObjectIconProvider) that searches the icons in the classpath using the following rules :

As you can see, this implementation allows to easily organizes the icons in the ClassPath. The last rule even allows to retrieve the icons from the generated EMF edit plugin.