public interface IConcurrentModel
The model is allowed to send back notifications to its listeners in any thread, and the listeners must not assume that the notifications will arrive in the UI thread.
Not intended to be implemented by clients. Clients should subclass
AbstractConcurrentModel
instead.
Modifier and Type | Method and Description |
---|---|
void |
addListener(IConcurrentModelListener listener)
Adds a listener to this model.
|
void |
removeListener(IConcurrentModelListener listener)
Removes a listener from this model.
|
void |
requestUpdate(IConcurrentModelListener listener)
Requests that the receiver to call the given listener's setContents(...)
|
void requestUpdate(IConcurrentModelListener listener)
Has no effect if an update is already queued for an identical listener.
listener
- listener whose setContents method should be called. The
listener must have been previously registered with addListener.void addListener(IConcurrentModelListener listener)
Has no effect if an identical listener is already registered.
listener
- listener to addvoid removeListener(IConcurrentModelListener listener)
Has no effect if the given listener is not known to this model.
listener
- listener to remove
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.