com.ibm.carma.ui
Class ResourceStateChangeListener

java.lang.Object
  extended by com.ibm.carma.ui.ResourceStateChangeListener

public class ResourceStateChangeListener
extends java.lang.Object

Utility to assist in notifying listeners of project configuration/deconfiguration events. Listeners can register with this class and then the class will send notifications to all registered listeners when the appropriate method is called.

Since:
7.0

Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
ResourceStateChangeListener()
           
 
Method Summary
 void addListener(IResourceStateChangeListener listener)
          Add a listener to the pool of objects to be notified when project association changes
static ResourceStateChangeListener getListener()
          Returns the state listener instance
 void projectConfigured(ICARMAResourceReference project)
          Send out notifications that the given project has been configured to all listeners in the listener pool.
 void projectDeconfigured(ICARMAResourceReference project)
          Send out notifications that the given project has been unconfigured to all listeners in the listener pool.
 void removeListener(IResourceStateChangeListener listener)
          Removes a listener to the pool of objects to be notified when project association changes
 void resourceModified(ICARMAResourceReference[] references)
          Sends out notifications that the given resources in a CARMA-associated project have been modified
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

ResourceStateChangeListener

public ResourceStateChangeListener()
Method Detail

getListener

public static ResourceStateChangeListener getListener()
Returns the state listener instance

Returns:
state listener instance

addListener

public void addListener(IResourceStateChangeListener listener)
Add a listener to the pool of objects to be notified when project association changes

Parameters:
listener - listener object to notify of changes

removeListener

public void removeListener(IResourceStateChangeListener listener)
Removes a listener to the pool of objects to be notified when project association changes

Parameters:
listener - listener object to remove from the list of items to notify of changes

projectConfigured

public void projectConfigured(ICARMAResourceReference project)
Send out notifications that the given project has been configured to all listeners in the listener pool.

Parameters:
project - the project configured

projectDeconfigured

public void projectDeconfigured(ICARMAResourceReference project)
Send out notifications that the given project has been unconfigured to all listeners in the listener pool.

Parameters:
project - the project de-configured

resourceModified

public void resourceModified(ICARMAResourceReference[] references)
Sends out notifications that the given resources in a CARMA-associated project have been modified

Parameters:
references - array references to project resources