Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to embedded wtp javascript editor to other editor?
https://www.eclipse.org/forums/index.php/mv/msg/74687/233307/#msg_233307
I'm implementing my own xml editor based on wtp structured text editor
framework, the problem is that I will embedded javascript code in my
editor (surrounded by <script> tag) like what wtp html/jsp editor do, How
do I embeded wtp javascript editor to meet my requirement? Is there any
extension point defined in jsdt to do the job?]]>Benjamin2009-07-06T09:10:55-00:00Re: How to embedded wtp javascript editor to other editor?
https://www.eclipse.org/forums/index.php/mv/msg/74687/233429/#msg_233429
I found in page http://wiki.eclipse.org/index.php/ATF/JSDT, it says there
will be translator interface in wtp3.1 for embedded javascript editor to
other languages, does the translator interface ready in wtp 3.1?]]>Benjamin2009-07-09T01:12:19-00:00Re: How to embedded wtp javascript editor to other editor?
https://www.eclipse.org/forums/index.php/mv/msg/74687/233472/#msg_233472
> Hi,
> I found in page http://wiki.eclipse.org/index.php/ATF/JSDT, it says there
> will be translator interface in wtp3.1 for embedded javascript editor to
> other languages, does the translator interface ready in wtp 3.1?
Hi Benjamin,
I believe the translator interface being talked about is IJsTranslation.
That may be a good place to start looking. It can be found in
org.eclipse.wst.jsdt.web.core.
The main JSDT specific extension point you'll probably use is:
org.eclipse.wst.jsdt.web.core.javascriptPreProcessor - where you specify
your translator.
Take a look in org.eclipse.wst.jsdt.web.core and
org.eclipse.wst.jsdt.web.ui to see how JSDT support gets added to the HTML
and JSP editors.