public abstract class AbstractConcurrentModel extends Object implements IConcurrentModel
Constructor and Description |
---|
AbstractConcurrentModel() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IConcurrentModelListener listener)
Adds a listener to this model.
|
protected void |
fireAdd(Object[] added)
Fires an add notification to all listeners
|
protected void |
fireRemove(Object[] removed)
Fires a remove notification to all listeners
|
protected void |
fireUpdate(Object[] updated)
Fires an update notification to all listeners
|
protected IConcurrentModelListener[] |
getListeners()
Returns the array of listeners for this model
|
void |
removeListener(IConcurrentModelListener listener)
Removes a listener from this model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requestUpdate
public void addListener(IConcurrentModelListener listener)
IConcurrentModel
Has no effect if an identical listener is already registered.
addListener
in interface IConcurrentModel
listener
- listener to addprotected final void fireAdd(Object[] added)
added
- objects added to the setprotected final void fireRemove(Object[] removed)
removed
- objects removed from the setprotected final void fireUpdate(Object[] updated)
updated
- objects that have changedprotected final IConcurrentModelListener[] getListeners()
public void removeListener(IConcurrentModelListener listener)
IConcurrentModel
Has no effect if the given listener is not known to this model.
removeListener
in interface IConcurrentModel
listener
- listener to remove
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.