Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » JSDT editor in java project(How to enable javascript editor code complete on jsp file)
JSDT editor in java project [message #553719] Wed, 18 August 2010 11:21 Go to next message
Eclipse UserFriend
So I'm editing a jsp file with embedded javascript. But the editor does not autocomplete the javascript portion, only the java portion. The only way I can get javascript autocomplete to work is if I create a javascript project with the ECMA libraries and make a JS file. Is there a way to make javascript code assist work in a jsp file? Thanks.
Re: JSDT editor in java project [message #553722 is a reply to message #553719] Wed, 18 August 2010 11:28 Go to previous messageGo to next message
Eclipse UserFriend
By "autocomplete" do you mean you expect content assist to automatically open as you type?

Or do you mean you trying to invoke content assist (default key-binding ctrl-space) and it is not doing anything?

Blue Skies,

~Ian
Re: JSDT editor in java project [message #553744 is a reply to message #553719] Wed, 18 August 2010 12:37 Go to previous messageGo to next message
Eclipse UserFriend
Both, it doesn't open when I type and if I do ctr-space it says no default proposals.
Re: JSDT editor in java project [message #553768 is a reply to message #553744] Wed, 18 August 2010 14:37 Go to previous messageGo to next message
Eclipse UserFriend
What type of project are you in?

Check the Project facets of the project and make sure the "JavaScript" facet is enabled.

Blue Skies,

~Ian
Re: JSDT editor in java project [message #553786 is a reply to message #553719] Wed, 18 August 2010 17:09 Go to previous messageGo to next message
Eclipse UserFriend
Ok, I made some progress, by enabling the facet i now can get code assist when using ctr space, How do I make it automatic (as in when I type dot, it comes up)?
Re: JSDT editor in java project [message #553843 is a reply to message #553786] Thu, 19 August 2010 03:28 Go to previous messageGo to next message
Eclipse UserFriend
Il 18/08/2010 23.09, Yang Li ha scritto:
> Ok, I made some progress, by enabling the facet i now can get code
> assist when using ctr space, How do I make it automatic (as in when I
> type dot, it comes up)?

AFAIK, automatic proposal is not the default behaviour in Eclipse, you
have to type Ctrl+Space to issue it.
Anyway, it seems to me there's something related to your need in Window
| Preferences | JavaScript | Editor | Content Assist.

Mauro.
Re: JSDT editor in java project [message #553944 is a reply to message #553786] Thu, 19 August 2010 09:44 Go to previous messageGo to next message
Eclipse UserFriend
Yang Li wrote on Wed, 18 August 2010 17:09
Ok, I made some progress, by enabling the facet i now can get code assist when using ctr space, How do I make it automatic (as in when I type dot, it comes up)?

This seems to be a bug that auto activation does not work in Javascript regions. Bug 305209 fixed this problem for Java regions in JSPs. Could you please report this to Bugzilla and report the bug number back here.

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JSDT

Blue Skies,

~Ian

[Updated on: Thu, 19 August 2010 09:45] by Moderator

Re: JSDT editor in java project [message #554018 is a reply to message #553944] Thu, 19 August 2010 13:22 Go to previous message
Eclipse UserFriend
Bug 323177
Previous Topic:Programmatic Adding IClasspathEntry to Web Deployment Assembly
Next Topic:WTP can be installed on top of HPUX eclipse SDK?
Goto Forum:
  


Current Time: Thu Jul 10 06:16:17 EDT 2025

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

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

Back to the top