Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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
Benjamin is currently offline Benjamin
Messages: 6
Registered: July 2009
Junior Member
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
Benjamin is currently offline Benjamin
Messages: 6
Registered: July 2009
Junior Member
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
Chris Jaun is currently offline Chris Jaun
Messages: 17
Registered: July 2009
Junior Member
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: Fri Aug 29 22:25:09 EDT 2014

Powered by FUDForum. Page generated in 0.01518 seconds