| Summary: | Add tool to convert between dynamic/static EMF models | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Glenview Jeff <junk> |
| Component: | Tools | Assignee: | Ed Merks <Ed.Merks> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Glenview Jeff
The backlog of wish-list items continues to grow. Something like this is unlikely ever make it to the top of that list... It's already easy to serialize an xsi:schemaLocation for your generated model http://wiki.eclipse.org/index.php/EMF/FAQ#How_can_I_ensure_that_an_xsi:schemaLocation_is_serialized_for_my_packages.3F And it would be quite easy to do that optionally in your generated editor. Isn't that enough? Ed: Thanks very much for your response. I hadn't seen that FAQ but will take a look at the entire page. I'm sure you can tell I'm an EMF newbie. It's not clear to me what it means to serialize the schemaLocation. I initially added a couple of the meta-models by creating a fresh model that instantiated a few (not all, there are ~50) of the types in the dynamic editor. I manually copied the schema locations in fresh XMI file to the real model I want to migrate to work in the dynamic editor. It seems that after opening up the real model in the dynamic editor, it must have updated the schema for the other types because the reported problems in the dynamic editor seemed to disappear. Also, I did notice that after I manually modified the XMI file to specify the schema location to work in the dynamic editor, the modified XMI appeared to load in the generated editor in the spawned Eclipse without any issue. Thanks! Jeff I added support so that in the reflective editor, when it can't find a package it tries to determine a location by looking for the registered models (in the plugin.xml) in the target platform, and uses the model for loading the instances. This means that you should be able to reflectively edit instances that have no schema location when there is a generated model for it in the workspace or target platform. Of course if there is a generated model actually available, that's uses as normal (and as you noticed, the schema location is ignored in that case), so you can use the dynamically edited instance in the generated editor already. The following change is committed to master: http://git.eclipse.org/c/emf/org.eclipse.emf.git/commit/?id=23c1ef3724c292003138d7ace7128ffe0fa5d3b9 The changes are available in Kepler. |