Community
Participate
Working Groups
Currently both XMLResource.OPTION_SCHEMA_LOCATION and XMLResource.OPTION_SCHEMA_LOCATION_IMPLEMENTATION are set true which is good if the referenced models are Java code in plugins. But not so good for viewing outputs of CGed TXes whose Java was created on the fly. If only XMLResource.OPTION_SCHEMA_LOCATION is set, we might hope that dynamic *.ecore is used, but seemingly since we ran with Java the schemaLocation tries to be Java. See if EMF can be persuaded to save a *.ecore schemaLocation for Java models. ?? change the Resource.uri when saving ??
Perhaps another aspect of the same problem. If the .settings/org.eclipse.m2m.qvt.oml.mmodel.urimap is used to define a nsURI location, that location needs to be present as a schemaLocation to ensure that the generated file can be loaded by the Sample Ecore Model Editor.