mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[rdct] Pass session to toolwindows, introduce an overload for getting project-level sessions from app-level ones
GitOrigin-RevId: 21c741149128341ed046840562f6c5b1e66daf1e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b26d995373
commit
4580cca2e5
@@ -17,9 +17,18 @@ import java.util.concurrent.ConcurrentHashMap
|
||||
@ApiStatus.Internal
|
||||
sealed class ClientSessionsManager<T : ClientSession> {
|
||||
companion object {
|
||||
|
||||
/**
|
||||
* @return a project session for specified app-level session
|
||||
*/
|
||||
@JvmStatic
|
||||
fun getProjectSession(project: Project, session: ClientAppSession): ClientProjectSession? {
|
||||
return getInstance(project).getSession(session.clientId)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a project-level session for a particular client.
|
||||
* @see ClientSession
|
||||
* @see ClientProjectSession
|
||||
*/
|
||||
@JvmStatic
|
||||
@JvmOverloads
|
||||
|
||||
Reference in New Issue
Block a user