XMLResourceImpl not saving all objects in contents [message #692838] |
Tue, 05 July 2011 10:31 |
Kat Sharp Messages: 1 Registered: July 2011 |
Junior Member |
|
|
Hi,
I have been using XMLResourceImpl to persist my model to disk.
I added some model elements to the resource by calling .getContents.add();
Only the model element I added first was getting saved.
I debugged into the code and noticed that in XMLSaveImpl - which XMLResourceImpl uses - has the following method which is called as part of a save:
protected Object writeTopObjects(List<? extends EObject> contents)
{
return writeTopObject(contents.get(0));
}
Where it discards all of the contents apart from the first. I can't find this documented anywhere - does anyone know if this is the intended behaviour or not? If not I'll raise a bug.
Thanks,
Kat
[Updated on: Tue, 05 July 2011 10:32] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02949 seconds