com.ibm.carma.ui.view.fields
Class FrameInputRemovalListener

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.emf.ecore.util.EContentAdapter
          extended by com.ibm.carma.model.util.RemoveChildrenListener
              extended by com.ibm.carma.ui.view.fields.FrameInputRemovalListener
All Implemented Interfaces:
CarmaRegistryListener, org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal

public class FrameInputRemovalListener
extends RemoveChildrenListener
implements CarmaRegistryListener

Listens for items to be removed from the CARMA model and subsequently updates the list of frames to remove any frame which lists the removed item as a parent.

Since:
7.1

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
FrameInputRemovalListener(org.eclipse.ui.views.framelist.FrameList framelist)
           
 
Method Summary
 void carmaAdded(CarmaRegistry registry, CARMA carma)
          This method will be called by CarmaRegistry when a CARMA is added to CarmaRegistry.
 void carmaRemoved(CarmaRegistry registry, CARMA carma)
          This method will be called by CarmaRegistry when a CARMA is removed from CarmaRegistry.
 void dispose()
          Stops the listener
 void init()
          Initializes the listener
 void removedItem(java.lang.Object parent, java.lang.Object item)
           
 
Methods inherited from class com.ibm.carma.model.util.RemoveChildrenListener
notifyChanged
 
Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter
setTarget, unsetTarget
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType
 
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

FrameInputRemovalListener

public FrameInputRemovalListener(org.eclipse.ui.views.framelist.FrameList framelist)
Parameters:
framelist - Framelist to update when the CARMA model changes
Method Detail

init

public void init()
Initializes the listener


dispose

public void dispose()
Stops the listener


removedItem

public void removedItem(java.lang.Object parent,
                        java.lang.Object item)
Overrides:
removedItem in class RemoveChildrenListener

carmaAdded

public void carmaAdded(CarmaRegistry registry,
                       CARMA carma)
Description copied from interface: CarmaRegistryListener
This method will be called by CarmaRegistry when a CARMA is added to CarmaRegistry. This method should be short running.

Specified by:
carmaAdded in interface CarmaRegistryListener
Parameters:
registry - the CarmaRegistry to which carma is added
carma - the CARMA that was added to registry

carmaRemoved

public void carmaRemoved(CarmaRegistry registry,
                         CARMA carma)
Description copied from interface: CarmaRegistryListener
This method will be called by CarmaRegistry when a CARMA is removed from CarmaRegistry. This method should be short running.

Specified by:
carmaRemoved in interface CarmaRegistryListener
Parameters:
registry - the CarmaRegistry from which carma is removed
carma - the CARMA that was removed from registry