Hi,
I commented out the action "Register EPackages" action for
registering dynamic packages. This was never the right way to use
dynamic packages. To use dynamic packages, use the action "Create
Dynamic Instance" which will create an XMI file that contains a
schema location so that the Ecore file is automatically loaded when
the instance is loaded. Thus, it is not necessary to register
packages before using them.
When using non-platform paths in the run-time, it is important to
wrap relative paths into a java.io.File and to use getAbsolutePath()
to get an absolute path. This was also mentioned by Ed Merks in a
tutorial I attended a while ago.
Anyway, for your convenience, the "HenshinResourceSet" allows you to
specify a possible relative path for a base directory. When loading
a file using a relative path, it will be automatically resolved
using the base directory.
See also the example here for the usage (it is very simple):
http://wiki.eclipse.org/Henshin_Interpreter
Ciao,
Christian
|