Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:10 Go to next message
Benjamin is currently offline BenjaminFriend
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] Thu, 09 July 2009 01:12 Go to previous messageGo to next message
Benjamin is currently offline BenjaminFriend
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 17:16 Go to previous message
Chris Jaun is currently offline Chris JaunFriend
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 Sep 20 04:23:55 GMT 2024

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

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

Back to the top