Content for the Eclipse JSDT Editor

In Eclipse, content support is usually implemented by some class that implements IContentAssistProcessor ( JavaDoc example )

How to implement the same CompletionProposal for a JSDT editor?

The only example I know is http://code.google.com/a/eclipselabs.org/p/jsdt-jquery/ , but it is large and unclear how to extend the JSDT to help with the code.

Do other APIs exist in JSDT? Specify which APIs to use.

Related
How to extend javascript editor in JSDT in Eclipse with new features added

+1
source share
1 answer

You need to implement the extension point of the add clause in the JSDT editor. There you must specify a class that implements the necessary interface, but it differs from the most general IContentAssistProcessor.

Depending on your use case, you can also look at quickAssist and quickFix extension points.

+2
source

Source: https://habr.com/ru/post/1485753/


All Articles