0

我正在寻找一种在页面内获取当前 Desktop() 的方法。

我知道我有getOutline(),但我需要 Desktop()。

有没有办法得到它?

4

1 回答 1

2
  • 会话知道桌面
  • 当前线程(正在运行的侦察作业)知道会话

这是在 Scout 模型代码中的任何地方都可以使用的一种可能性:

ClientSyncJob.getCurrentSession().getDesktop()
于 2015-07-01T19:25:12.687 回答