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:
parent
36181bd862
commit
05512ba623
1 changed files with 11 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue