|
|
|
|
org.eclipse.emf.workspace.examples.extlibrary.presentation
Class ResourceLoadedListener
java.lang.Object
org.eclipse.emf.transaction.ResourceSetListenerImpl
org.eclipse.emf.transaction.DemultiplexingListener
org.eclipse.emf.workspace.examples.extlibrary.presentation.ResourceLoadedListener
-
All Implemented Interfaces:
-
EventListener,
ResourceSetListener,
ResourceSetListener.Internal
-
public class ResourceLoadedListener
- extends
DemultiplexingListener
Listens for the loading of resources, and creates editors on them when they
load.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
ResourceLoadedListener
public ResourceLoadedListener()
- Initializes me with my filter.
getDefault
public static
ResourceLoadedListener getDefault()
- Returns the default listener instance.
-
-
Returns:
- the instance associated with the editing domain that manages the
specified resource set, or
null if none is found
ignore
public void ignore(
Resource res)
- Ignores any future load/unload notifications from the specified resource,
until the next call to
watch(res) .
-
-
Parameters:
-
res - the resource to ignore
watch
public void watch(
Resource res)
- Ceases to
ignore(Resource) a previously ignored resource.
-
-
Parameters:
-
res - the resource
handleNotification
protected void handleNotification(
TransactionalEditingDomain domain,
Notification notification)
-
Description copied from class:
DemultiplexingListener
- Implemented by subclasses to respond to each notification in serial order.
-
-
Specified by:
-
handleNotification
in class
DemultiplexingListener
-
-
Parameters:
-
domain - the editing domain from which the notification originated -
notification - the notification describing a change in the model -
See Also:
-
DemultiplexingListener.resourceSetChanged(ResourceSetChangeEvent)
|
|
|