Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » StructuredTextEditor for Java Script
StructuredTextEditor for Java Script [message #630429] Sat, 02 October 2010 10:22 Go to next message
saurav sarkar is currently offline saurav sarkar
Messages: 424
Registered: July 2009
Senior Member
Hi All,

I am trying to open a StructuredTextEditor with a Java script file.
But it throws me 'Content type not supported' exception as well as the StructuredTextEditor must be associated with a Structured document.

The structuredtexteditor could open xml, html.A doc says it should be able to open JS.

The Normal JS editor is actually a CompilationUnitEditor but that does not derive from StructuredTextEditor.

So my questions are.

(1) Does StructuredTextEditor supports opening of JS files ?
(2) If i open JS with CompilationUnitEditor how do i plug-in the content assist to it ?.

Any pointers would be hugely appreciated.

Thanks and Regards,
Saurav


Re: StructuredTextEditor for Java Script [message #630737 is a reply to message #630429] Mon, 04 October 2010 18:02 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
1) No.
2) Your best option is to look into the org.eclipse.wst.jsdt.ui.javaCompletionProposalComputer extension point, which you can find at http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. wst.jsdt.doc/reference/extension-points/org_eclipse_wst_jsdt _ui_javaCompletionProposalComputer.html .


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Flex Builder plugin for Helios 64 bit + WTP
Next Topic:Extending palette Web Page Editor
Goto Forum:
  


Current Time: Thu Oct 23 00:13:34 GMT 2014

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

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