Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [henshin-dev] Migration plug-in

One more hintt. If you want to save the migrated models to new files (without overriding the old ones) you can try out changing the URI just before the saving:

        // Update resource URIs:
        for (Resource resource : resourceSet.getResources()) {
            URI oldURI = resource.getURI();
            URI newURI = ...
            resource.setURI(newURI);
        }

        // Now we can save the resources:
        for (Resource resource : resourceSet.getResources()) {
            resource.save(null);
        }


On 01/13/2012 01:25 PM, Stefan Jurack wrote:
I still have serious doubts that the migration of the diagram file works
properly in general ... at least without putting extraordinary effort in
that!! We'd better concentrate on other issues such as bringing Henshin
into an overall consistent state.

Am 13.01.2012 12:47, schrieb Riegerf@xxxxxxxxxxxxxxxxxxxxxxx:
Hi Christian,

Quoting Christian Krause <henshin.ck@xxxxxxxxx>:
can you please give us an estimate when you think a first version of
the migration tool is ready for testing?
a first version was already done and converted the henshin test rules
just fine. (The version in the SVN might be an intermediate version
and might thus not work, though.) I'm currently working on
implementing the latest model change, which seems to be done right
now, so the new and updated version should be ready later today (and
working) in case I don't find any obvious errors.
The next step is converting the graphical editor files. Do you have
any specification on their structure or file format? (Both old and
(probably?) new versions).
Please also take a look at the henshin 2011 model I'm using for my
transformation and check its correctness.

Felix

_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev



_______________________________________________
henshin-dev mailing list
henshin-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/henshin-dev


Back to the top