private void setUpScriptEngineCtx() { if (m_window != null) { ScriptEngineCtx scriptCtx = ScriptEngineCtx.ctx(); scriptCtx.setScriptContext(m_window.getContext()); scriptCtx.setScope(m_window); } }
public static AHtmlDocument document() { AWindow w = window(); return w == null ? null : (AHtmlDocument) w.getDocument(); }