Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


org.eclipse.emf.workspace.examples.extlibrary.presentation
Class ResourceLoadedListener

java.lang.Object
  extended by 

org.eclipse.emf.transaction.ResourceSetListenerImpl
      extended by 

org.eclipse.emf.transaction.DemultiplexingListener
          extended by 
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.


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

ResourceLoadedListener

public ResourceLoadedListener()
Initializes me with my filter.

Method Detail

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)

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire