public abstract class AbstractResourceSetHooks extends Object implements IResourceSetHook
IResourceSetHook.| Constructor and Description |
|---|
AbstractResourceSetHooks() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHookFor(Collection<? extends URI> uris)
Returns true if this hook should be used.
|
void |
onDispose(Iterable<Resource> resources)
This will be called when the resource set is disposed (if it is).
|
void |
postLoadingHook(ResourceSet resourceSet,
Collection<? extends URI> uris)
This will be called after the resource set is populated in an unspecified order.
|
void |
preLoadingHook(ResourceSet resourceSet,
Collection<? extends URI> uris)
This will be called before the final resource set is populated, in unspecified order.
|
public boolean isHookFor(Collection<? extends URI> uris)
isHookFor in interface IResourceSetHookuris - list of URIs about to be loaded in the ResourceSet.true if this hook should be used, false otherwise.IResourceSetHook.isHookFor(java.util.Collection)public void preLoadingHook(ResourceSet resourceSet, Collection<? extends URI> uris)
preLoadingHook in interface IResourceSetHookresourceSet - about to be filled.uris - URIs that the resource set has been requested to load. The Collection of
URI is not modifiable.IResourceSetHook.preLoadingHook(org.eclipse.emf.ecore.resource.ResourceSet,
java.util.Collection)public void postLoadingHook(ResourceSet resourceSet, Collection<? extends URI> uris)
postLoadingHook in interface IResourceSetHookresourceSet - that has been filled with Resources.uris - URIs that the resource set has been requested to load.The Collection of
URI is not modifiable.IResourceSetHook.postLoadingHook(org.eclipse.emf.ecore.resource.ResourceSet,
java.util.Collection)public void onDispose(Iterable<Resource> resources)
By default, EMF Compare will not unload any resource. Still some resources might need to be unloaded. This method could be a good way to do it. Hooks are called in unspecified order, so resources may already have been unloaded by other hooks when yours is called.
onDispose in interface IResourceSetHookresources - List of Resources currently in the resource set.IResourceSetHook.onDispose(java.lang.Iterable)
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.