How to embedded wtp javascript editor to other editor? [message #233307] |
Mon, 06 July 2009 05:10  |
Eclipse User |
|
|
|
Hi, Guys,
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?
|
|
|
|
Re: How to embedded wtp javascript editor to other editor? [message #233472 is a reply to message #233429] |
Thu, 09 July 2009 13:16  |
Eclipse User |
|
|
|
Benjamin wrote:
> 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.
Thanks,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.08352 seconds