Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 sarkarFriend
Messages: 428
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 DahyabhaiFriend
Messages: 4430
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 Web Tools Platform
Previous Topic:Flex Builder plugin for Helios 64 bit + WTP
Next Topic:Extending palette Web Page Editor
Goto Forum:
  


Current Time: Thu Mar 28 13:06:50 GMT 2024

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

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

Back to the top