[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[wtp-dev] JSDT InferEngine issues
|
Hi there,
I found Bradley's slides[1] and understand how to extend the JSDT
Editor with JSDoc'ed JS library specs using the given
JsGlobalScopeContainerInitializer and JsGlobalScopeContainerPage
extension points, but I'm curios about the inferrenceSupport extension
point.
I'm working on a Eclipse Plug-In that reads some JS API definitions
from a WebIDL[2] input parser. But instead parsing JS library input to
declare my JS API definitions, I'd really like to extend the existing
InferEngine during runtime in a more programmatic way. I grep'ed
through the source and conclude that I'd need to inject my definitions
into the InferEngine.Context class, unfortunately that has been
declared with restricted package scope access only. So doing so would
require an ugly package hack in order to call
InferEngine.currentContext.addMember() when I initialize my derived
InferEngine class.
But perhaps I'm missing something about this inferrenceSupport
extension point. I don't really want to write my InferEngine from
scratch or clone the existing code. So is anyone aware of some way to
inject global API definitions using just the inferrenceSupport
extension point and not relying on JSDoc API definitions that are
parsed into the AST and visited by the InferEngine?
[1] http://www.eclipsecon.org/2008/sub/attachments/Extending_the_JavaScript_Development_Toolkit.pdf
[2] http://www.w3.org/TR/WebIDL/
Kind regards,
Anselm