|Re: Grahical editor refresh on underlying resource changed [message #730926 is a reply to message #730920]
||Thu, 29 September 2011 14:46
| Hernan Gonzalez
Registered: October 2010
Location: Buenos Aires, Argentina
Tim Kaiser wrote on Thu, 29 September 2011 11:13|
we check all files in the resource set, since the business objects might
have been stored in a different file.
The diagram needs to be notified if business objects in a seperate resource
in the same resource set
are modified from the outside.
But in that method we are supposedly reacting to a notification for a change in a specific resource. Say I have my diagram with file/uri "x.diag" , and the model in file "x.model", then the resourceset will have two resource with those distinct uris. If I modify from the ouside(say, with the eclipse text editor) the "x.model" file, won't this handleResourceChanged() method will be invoked with the "x.model" resource?
Anyway, I (still) think that, for the particular resource that is reported as method argument, if we can't check the timestamp, the most secure decision is to assume it changed.
Powered by FUDForum
. Page generated in 0.02163 seconds