Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [qvtd-dev] Post-M4 commits

Hi

On 21/12/2015 16:13, Adolfo Sanchez-Barbudo Herrera wrote:
Some test cases "improvements"/changes now make them generate artefacts that can't be opened in the corresponding editors, because the cross references are serialized with the metamodel NSuri rather than relative URI one pointing the ecore. For instance see ClassesContainmentTree.xmi, where

<element href=""/>

is replaced by

<element href="" moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://cs2as/tests/example2/classes/1.0#//Element">"http://cs2as/tests/example2/classes/1.0#//Element"/>

I find similar issues in qvtias files. No idea what has been changed to get that.
I would expect the opposite. See

commit cfb64cf68fc65df9635e4a177751aad0be8e687c
[484721] Introduce ASURIHandler

Provided the saveOptions define a URIHandler

        Map<Object, Object> saveOptions = XMIUtil.createSaveOptions();
        saveOptions.put(XMLResource.OPTION_URI_HANDLER, new ASURIHandler((ASResource)resource));
        resource.save(saveOptions);

the nsURIs are replaced during save.

A possible difference is the plugin.xml no longer has extension point registrations for test models since such registrations cause chaos in a nested Eclipse. Note the InstallMap in the test cases that install and uninstall.

    Regards

        Ed Willink



Back to the top