Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » How to embedded wtp javascript editor to other editor?
How to embedded wtp javascript editor to other editor? [message #233307] Mon, 06 July 2009 05:10 Go to next message
Eclipse UserFriend
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 #233429 is a reply to message #233307] Wed, 08 July 2009 21:12 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: How to embedded wtp javascript editor to other editor? [message #233472 is a reply to message #233429] Thu, 09 July 2009 13:16 Go to previous message
Eclipse UserFriend
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
Previous Topic:File / New
Next Topic:Several Questions About JSDoc
Goto Forum:
  


Current Time: Tue Jul 22 18:05:24 EDT 2025

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

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

Back to the top