Renaming GMF Resource Files [message #839146] |
Sun, 08 April 2012 03:07  |
Eclipse User |
|
|
|
Hello,
i got a problem with some GMF Resource Files.
What i want to implement are some Rename/Move/Delete Actions on these Files.
Now the problem :
These files use bidirectional cross-references.
This means they load external resources and set external references.
What i tried to do is (for renaming):
-load all resources in a single resourceSet.
-edit the uri by calling setUri(newpathuri) on the element that should be changed.
-save the whole resourceSet.
But this only creates me a new file, this might be ok, because i can simply delete the old one, BUT :
The relation is not updated. What i expect is 2 new files with a correct references between them ...
What im doing wrong ?
Do i really have to update all the references by myself ?
Is there a trick to do that ?
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03485 seconds