Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Extend JS content assist
Extend JS content assist [message #733607] Wed, 05 October 2011 08:13 Go to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 250
Registered: July 2009
Location: Graz, Austria
Senior Member
Is there a way to extend the JavaScript content assist? There exists an extension point org.eclipse.wst.jsdt.ui.javaCompletionProposalComputer. Can it be used for a custom content assistant?

Has someone a simple example for this?

thanks
Re: Extend JS content assist [message #734224 is a reply to message #733607] Fri, 07 October 2011 07:12 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
On 10/05/2011 10:13 AM, Christian Pontesegger wrote:
> Is there a way to extend the JavaScript content assist? There exists an
> extension point org.eclipse.wst.jsdt.ui.javaCompletionProposalComputer.
> Can it be used for a custom content assistant?

There are two ways. You can either add a type inferencer or a JsDoc 2
file. You might find this presentation [1] of interest.

[1] http://www.eclipsecon.org/2011/sessions/?page=sessions&id=2187

Cheers
Philippe
Re: Extend JS content assist [message #1179723 is a reply to message #734224] Sun, 10 November 2013 13:51 Go to previous messageGo to next message
Pavel Sosin is currently offline Pavel SosinFriend
Messages: 2
Registered: November 2013
Junior Member
Unfortunately, the link is not valid anymore. Could you provide the valid one?
Re: Extend JS content assist [message #1210798 is a reply to message #1179723] Tue, 26 November 2013 05:39 Go to previous messageGo to next message
Paul Verest is currently offline Paul VerestFriend
Messages: 36
Registered: March 2013
Member
I am exploring the same problem for Nodeclipse http://www.nodeclipse.org/

Philippe Marschall seems to be the first to do that for the JSDT-jQuery.
So his answer would be the best.

I looked quickly in code ( http://code.google.com/a/eclipselabs.org/p/jsdt-jquery/ , also cloned to GitHub https://github.com/Nodeclipse/jsdt-jquery)
There is no IContentAssistent implementations. It is complicated, needs some time...
[solved] Extend JS content assist [message #1384728 is a reply to message #733607] Fri, 30 May 2014 20:37 Go to previous message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 250
Registered: July 2009
Location: Graz, Austria
Senior Member
It's actually fairly easy using the org.eclipse.wst.jsdt.ui.javaCompletionProposalComputer extension point.

You can find a detailed tutorial here.
Previous Topic:can't install latest glassfish tools on luna m7
Next Topic:error in creating JSF projrct
Goto Forum:
  


Current Time: Tue Apr 23 08:28:21 GMT 2024

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

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

Back to the top