|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.transaction.ResourceSetListenerImpl org.eclipse.emf.transaction.DemultiplexingListener org.eclipse.emf.workspace.examples.extlibrary.presentation.ResourceLoadedListener
public class ResourceLoadedListener
Listens for the loading of resources, and creates editors on them when they load.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.emf.transaction.ResourceSetListener |
---|
ResourceSetListener.Internal |
Constructor Summary | |
---|---|
ResourceLoadedListener()
Initializes me with my filter. |
Method Summary | |
---|---|
static ResourceLoadedListener |
getDefault()
Returns the default listener instance. |
protected void |
handleNotification(TransactionalEditingDomain domain,
Notification notification)
Implemented by subclasses to respond to each notification in serial order. |
void |
ignore(Resource res)
Ignores any future load/unload notifications from the specified resource, until the next call to watch(res) . |
void |
watch(Resource res)
Ceases to ignore(Resource) a previously ignored resource. |
Methods inherited from class org.eclipse.emf.transaction.DemultiplexingListener |
---|
isPostcommitOnly, resourceSetChanged |
Methods inherited from class org.eclipse.emf.transaction.ResourceSetListenerImpl |
---|
getFilter, getTarget, isAggregatePrecommitListener, isPrecommitOnly, setTarget, transactionAboutToCommit, unsetTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceLoadedListener()
Method Detail |
---|
public static ResourceLoadedListener getDefault()
null
if none is foundpublic void ignore(Resource res)
watch(res)
.
res
- the resource to ignorepublic void watch(Resource res)
ignore(Resource)
a previously ignored resource.
res
- the resourceprotected void handleNotification(TransactionalEditingDomain domain, Notification notification)
DemultiplexingListener
handleNotification
in class DemultiplexingListener
domain
- the editing domain from which the notification originatednotification
- the notification describing a change in the modelDemultiplexingListener.resourceSetChanged(ResourceSetChangeEvent)
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |