Modelers

org.topcased.modeler.listeners
Class DiagramElementListener

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.topcased.modeler.listeners.UIAdapterImpl
          extended by org.topcased.modeler.listeners.DiagramElementListener
All Implemented Interfaces:
Adapter, Adapter.Internal
Direct Known Subclasses:
GraphElementListener

public abstract class DiagramElementListener
extends UIAdapterImpl

Domain specific listener for DiagramElement.
Listens the DiagramElement and its contained Properties.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
DiagramElementListener()
           
 
Method Summary
 void activate(EObject listenObject)
          Install the listener on the given object and on some children
 void deactivate(EObject listenObject)
          Remove the listener on the given object and on some children
protected  void handlePropertyChanged(Property modifiedProperty)
          Deprecated. Use the method handlePropertyChanged(Property, Property) instead
protected  void handlePropertyChanged(Property oldProperty, Property newProperty)
           
protected abstract  void handleVisibilityChanged()
           
protected  void safeNotifyChanged(Notification msg)
          This method is called when an event occured on the model objects.
protected  void updateEObjectListening(java.lang.Object oldValue, java.lang.Object newValue)
          This method updates the listening on added or removed objects
 
Methods inherited from class org.topcased.modeler.listeners.UIAdapterImpl
notifyChanged
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType, setTarget, unsetTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagramElementListener

public DiagramElementListener()
Method Detail

activate

public void activate(EObject listenObject)
Install the listener on the given object and on some children

Parameters:
listenObject - the object to listen

deactivate

public void deactivate(EObject listenObject)
Remove the listener on the given object and on some children

Parameters:
listenObject - the object to unlisten

updateEObjectListening

protected void updateEObjectListening(java.lang.Object oldValue,
                                      java.lang.Object newValue)
This method updates the listening on added or removed objects

Parameters:
oldValue - the old Object
newValue - the new Object

safeNotifyChanged

protected void safeNotifyChanged(Notification msg)
Description copied from class: UIAdapterImpl
This method is called when an event occured on the model objects.
This method is always called in the Ui thread

Specified by:
safeNotifyChanged in class UIAdapterImpl
Parameters:
msg - the event notification
See Also:
UIAdapterImpl.safeNotifyChanged(org.eclipse.emf.common.notify.Notification)

handleVisibilityChanged

protected abstract void handleVisibilityChanged()

handlePropertyChanged

protected void handlePropertyChanged(Property modifiedProperty)
Deprecated. Use the method handlePropertyChanged(Property, Property) instead

Parameters:
modifiedProperty -

handlePropertyChanged

protected void handlePropertyChanged(Property oldProperty,
                                     Property newProperty)

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.