Modelers

org.topcased.modeler.listeners
Class GraphElementListener

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
              extended by org.topcased.modeler.listeners.GraphElementListener
All Implemented Interfaces:
Adapter, Adapter.Internal
Direct Known Subclasses:
GraphEdgeListener, GraphNodeListener

public abstract class GraphElementListener
extends DiagramElementListener

Domain specific listener for GraphElement.
Listens the GraphElement and its contained Connectors.


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
GraphElementListener()
           
 
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 abstract  void handleConnectorChanged()
           
protected abstract  void handleContainmentChanged()
           
protected abstract  void handlePositionChanged()
           
protected abstract  void handlePresentationChanged()
           
protected  void safeNotifyChanged(Notification msg)
          This method is called when an event occured on the model objects.
 
Methods inherited from class org.topcased.modeler.listeners.DiagramElementListener
handlePropertyChanged, handlePropertyChanged, handleVisibilityChanged, updateEObjectListening
 
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

GraphElementListener

public GraphElementListener()
Method Detail

activate

public void activate(EObject listenObject)
Description copied from class: DiagramElementListener
Install the listener on the given object and on some children

Overrides:
activate in class DiagramElementListener
Parameters:
listenObject - the object to listen
See Also:
DiagramElementListener.activate(org.eclipse.emf.ecore.EObject)

deactivate

public void deactivate(EObject listenObject)
Description copied from class: DiagramElementListener
Remove the listener on the given object and on some children

Overrides:
deactivate in class DiagramElementListener
Parameters:
listenObject - the object to unlisten
See Also:
DiagramElementListener.deactivate(org.eclipse.emf.ecore.EObject)

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

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

handlePositionChanged

protected abstract void handlePositionChanged()

handleContainmentChanged

protected abstract void handleContainmentChanged()

handleConnectorChanged

protected abstract void handleConnectorChanged()

handlePresentationChanged

protected abstract void handlePresentationChanged()

Modelers

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