[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.emf] [Q] Is there a way to update content of Resource when underlying file has changed (other than complete unload and load)
|
Hi,
I know that in EcoreEditor there is implementation of refresh of Resource
content when there is change in underlying file. But this is not very nice
solution when you have other Resource that is pointing at it, becouse you
either end up with refering to proxies or you could have it pointing to
wrong elements (when there are URI based keys and there was element(s) move
in container, then URI - which is created from the name of containing
feature and position in the list of container's owned elements - could no
longer point to correct element).
Either way when this happens, you have to unload and load back other
Resources that point to changed resource and again match elements from
different Resource.
This is quite a big task to achieve and I was wondering whether there is
some other way to update content of Resource when underlying file has
changed (e.g. incremental approach) implemented or planned to achieve - I am
aware that this "incremental approach" is not trivial to achieve, but IMHO
it seems feasible.
Any comments will be appreciated.
TIA,
Tom