|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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,
org.eclipse.emf.common.notify.Notification notification)
Implemented by subclasses to respond to each notification in serial order. |
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. |
| 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(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 resource
protected void handleNotification(TransactionalEditingDomain domain,
org.eclipse.emf.common.notify.Notification notification)
DemultiplexingListener
handleNotification in class DemultiplexingListenerdomain - 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 | |||||||||