[Edapt] Format of resourceURI to get the Releases from the Migrator? [message #1768177] |
Fri, 14 July 2017 07:14  |
Eclipse User |
|
|
|
Hi everyone!
We are looking to migrate our Ecore+Graphiti models with the help of edapt. Thanks upfront for this tool!
I have followed the steps provided in the library example and currently am stuck in the checkMigration-Method when getting the Namespace URI.
I suspect that the URI we currently create for our DiagramEditorInput is inappropriate. Heres's what the current URI looks like:
When trying to get the NamespaceUri in the checkMigration-method, this
String nsUri = ReleaseUtils.getNamespaceURI(resourceURI);
results in null. So getting the migrator with
final Migrator migrator = MigratorRegistry.getInstance().getMigrator(nsUri);
also results in null.
The form-history is registered via the extension point and a migrator with our namespace is available in the MigratorRegistry.
What I've tried so far is passing our namespace directly to get the migrator which works to get the migrator but when getting the release from the migrator, the line
final String nsURI = ReleaseUtils.getNamespaceURI(modelURI);
in the getRelease-method of the Migrator.class again results in a null string, thus not returning the release (which is contained in the release map).
Our current ecore namespace has the following format: http:// com/company/product/module/forms (the space is necessary, otherwise the forum recognizes it as a link to an external site which I'm currently not allowed to include...)
My question is: What does the resourceURI have to look like in order to get the Migrator and the Releases?
I have attached a sample xmi to show what our current combination of ecore and graphiti looks like. Maybe there's something wrong here?
Any answer would be highly appreciated!
Thanks in advance.
Felix
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03402 seconds