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