1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 09:15:38 +02:00

Doc enhancement

This commit is contained in:
John Cortell 2010-02-03 13:15:54 +00:00
parent 33757e1341
commit 7190d7b8bf

View file

@ -297,13 +297,23 @@ public class DsfSession
/** Returns the DSF executor of this session */ /** Returns the DSF executor of this session */
@ThreadSafe @ThreadSafe
public DsfExecutor getExecutor() { return fExecutor; } public DsfExecutor getExecutor() { return fExecutor; }
/** /**
* Adds a new listener for service events in this session. * Adds a new listener for service events in this session.
* @param listener the listener that will receive service events *
* @param filter optional filter to restrict the services that the * <p>
* listener will receive events from * Listeners don't implement any particular interfaces. They declare one or
*/ * more methods that are annotated with '@DsfServiceEventHandler', and which
* take a single event parameter. The type of the parameter indicates what
* events the handler is interested in. Any event that can be cast to that
* type (and which meets the optional filter) will be sent to it.
*
* @param listener
* the listener that will receive service events.
* @param filter
* optional filter to restrict the services that the listener
* will receive events from
*/
public void addServiceEventListener(Object listener, Filter filter) { public void addServiceEventListener(Object listener, Filter filter) {
assert getExecutor().isInExecutorThread(); assert getExecutor().isInExecutorThread();