public class ResourceLoadedListener
extends org.eclipse.emf.transaction.DemultiplexingListener
Constructor and Description |
---|
ResourceLoadedListener()
Initializes me with my filter.
|
Modifier and Type | Method and Description |
---|---|
static ResourceLoadedListener |
getDefault()
Returns the default listener instance.
|
protected void |
handleNotification(org.eclipse.emf.transaction.TransactionalEditingDomain domain,
org.eclipse.emf.common.notify.Notification notification) |
void |
ignore(org.eclipse.emf.ecore.resource.Resource res)
Ignores any future load/unload notifications from the specified resource,
until the next call to
watch(res) . |
void |
watch(org.eclipse.emf.ecore.resource.Resource res)
Ceases to
ignore(Resource) a previously ignored resource. |
isPostcommitOnly, resourceSetChanged
public ResourceLoadedListener()
public static ResourceLoadedListener getDefault()
null
if none is foundpublic void ignore(org.eclipse.emf.ecore.resource.Resource res)
watch(res)
.res
- the resource to ignorepublic void watch(org.eclipse.emf.ecore.resource.Resource res)
ignore(Resource)
a previously ignored resource.res
- the resourceprotected void handleNotification(org.eclipse.emf.transaction.TransactionalEditingDomain domain, org.eclipse.emf.common.notify.Notification notification)
handleNotification
in class org.eclipse.emf.transaction.DemultiplexingListener