org.topcased.modeler.listeners
Class DiagramElementListener
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.topcased.modeler.listeners.UIAdapterImpl
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiagramElementListener
public DiagramElementListener()
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 ObjectnewValue
- 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)
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.