1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 292070 - Access to Active DsfSessions

This commit is contained in:
Pawel Piech 2009-10-15 17:04:56 +00:00
parent 36181bd862
commit 05512ba623

View file

@ -146,7 +146,17 @@ public class DsfSession
}
return null;
}
/**
* Returns the active sessions
*
* @since 2.1
*/
@ThreadSafe
public static DsfSession[] getActiveSessions() {
return fgActiveSessions.toArray(new DsfSession[fgActiveSessions.size()]);
}
/**
* Registers a listener for session started events.
* Can be called on any thread.