public abstract class NativePropertyListener extends Object implements INativePropertyListener
Constructor and Description |
---|
NativePropertyListener(IProperty property,
ISimplePropertyListener listener)
Constructs a NativePropertyListener with the specified arguments
|
Modifier and Type | Method and Description |
---|---|
void |
addTo(Object source)
Adds the receiver as a listener for property events on the specified
property source.
|
protected abstract void |
doAddTo(Object source) |
protected abstract void |
doRemoveFrom(Object source) |
protected void |
fireChange(Object source,
IDiff diff)
Notifies the listener that a property change occured on the source
object.
|
protected void |
fireStale(Object source)
Notifies the listener that the property became stale on the source
object.
|
void |
removeFrom(Object source)
Removes the receiver as a listener for property events on the specified
property source.
|
public NativePropertyListener(IProperty property, ISimplePropertyListener listener)
property
- the property that this listener listens tolistener
- the listener to receive property change notificationspublic final void addTo(Object source)
INativePropertyListener
addTo
in interface INativePropertyListener
source
- the property source (may be null)protected abstract void doAddTo(Object source)
public final void removeFrom(Object source)
INativePropertyListener
removeFrom
in interface INativePropertyListener
source
- the property source (may be null)protected abstract void doRemoveFrom(Object source)
protected void fireChange(Object source, IDiff diff)
source
- the source object whose property changeddiff
- a diff describing the change in stateprotected void fireStale(Object source)
source
- the source object whose property became stale
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.