|
Re: EMF Compare - Logical Model :: Loading dependent models [message #1457420 is a reply to message #1455291] |
Fri, 31 October 2014 09:55 |
|
Hi Preetam,
We have some issues on our side too with this "not loading" of resources that don't have changes (for example, if there are changes in a "notation" model but not in the UML behind it, we only load the notation... and the display is pretty bad ).
What we would ultimately like to provide for extenders is a mean to hook into the "final" resource set, after the comparison is done, to forcefully load new resources in that set since it's going to be displayed. Unfortunately, this hook has not been implemented yet.
You can, however, hook into the resource set we use for the comparison, though this API is very young and might be lacking in features and stability. Please have a look into the extension point org.eclipse.emf.compare.rcp.resourceSetHook, org.eclipse.emf.compare.ide.hook.IResourceSetHook.preLoadingHook(ResourceSet, Collection<? extends URI>) might be of interest to you. This API is not available in a stable build yet, so you'll have to use one of our nightlies (install through this update site or clone the repository at git://git.eclipse.org/gitroot/emfcompare/org.eclipse.emf.compare.git )
Do note that any new resource you load in this set will be considered for comparison, so we'll iterate over it even though it has no change, slowing down the process. If you'd like to contribute a better solution (a hook called after the comparison is done, before the display), we'll gladly look at it .
Laurent Goubet
Obeo
|
|
|
Powered by
FUDForum. Page generated in 0.03775 seconds