From 71ac4541ae5da905c4d8a5f2b6a528985b61b393 Mon Sep 17 00:00:00 2001 From: stefanp Date: Mon, 23 Jun 2003 15:39:18 +0000 Subject: [PATCH] make the introspector work with rhino --- src/helma/scripting/rhino/RhinoEngine.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/helma/scripting/rhino/RhinoEngine.java b/src/helma/scripting/rhino/RhinoEngine.java index eb63c13c..a789e2b0 100644 --- a/src/helma/scripting/rhino/RhinoEngine.java +++ b/src/helma/scripting/rhino/RhinoEngine.java @@ -16,6 +16,7 @@ package helma.scripting.rhino; +import helma.doc.DocApplication; import helma.extensions.ConfigurationException; import helma.extensions.HelmaExtension; import helma.framework.*; @@ -58,6 +59,9 @@ public final class RhinoEngine implements ScriptingEngine { // the global vars set by extensions HashMap extensionGlobals; + // the introspector that provides documentation for this application + DocApplication doc = null; + /** * Zero argument constructor. */ @@ -412,10 +416,14 @@ public final class RhinoEngine implements ScriptingEngine { } /** - * Get an introspector to this engine. FIXME: not yet implemented for the rhino engine. + * Get an introspector to this engine. */ public IPathElement getIntrospector() { - return null; + if (doc == null) { + doc = new DocApplication(app.getName(), app.getAppDir().toString()); + doc.readApplication(); + } + return doc; } /**