Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » JSDT, unable to get types from IJavaScriptUnit(Get Types Tree From Source)
JSDT, unable to get types from IJavaScriptUnit [message #1857296] Sun, 29 January 2023 12:21
Guy Goldwasser is currently offline Guy GoldwasserFriend
Messages: 2
Registered: February 2021
Junior Member
B"H
Hi,
i have code which worked well with all JS engine that used by eclipse.
lastly I have trouble get the actual model tree of the sources that was load into the JS unit.

IJavaScriptUnit javaScriptUnit = JavaScriptCore.createCompilationUnitFrom(file);
javaScriptUnit.open(new NullProgressMonitor());

i expect get model tree with Members so my plugin and give autocomplete + hyperlink,
with Nashorn i use to start with getType("@G") and getType("Global") with Rhino
latest eclipse (12-2022) doesnt support the outer property trick to enforce use Nashorn,

Currently getTypes is empty, so i do have all the elements, but not the model tree being connect to it.
Any Idea?
Previous Topic:Where is the release note after WTP 3.22 (2021-06)
Next Topic:When using the Jakarta Servlet in Eclipse 2022 -12, the JSP file will have errors
Goto Forum:
  


Current Time: Tue Apr 23 07:11:08 GMT 2024

Powered by FUDForum. Page generated in 0.03132 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top