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