Extension point for providing custom content assist processors in Eclipse?

I've looked for such an extension point before with no success. As far as I know it's not possible to add new types of content assist to editors in Eclipse in this way.

Thank you very much David. You confirm my own failure to find such extension point. As far as I understand, I can only add content-assist helpers for specific editors, which have own extension points (some of them ... it seems that e.g. Java editor has such ability).

Fortunately for me, Java editor and JSP editor are what I am mostly interested. – Peter Štibraný Jan 7 '10 at 17:20.

You can do it by declaring an extension to: org.eclipse.jdt.ui. JavaCompletionProposalComputer Here is the reference page to start with. You can find a demo project here.

If properties files can follow an EBNF grammar, then you could give Eclipse Xtext a shot Xtext is a framework for development of textual domain specific languages (DSLs). Just describe your very own DSL using Xtext's simple EBNF grammar language and the generator will create a parser, an AST-meta model (implemented in EMF) as well as a full-featured Eclipse text editor from that. The Framework integrates with technology from Eclipse Modeling such as EMF, GMF, M2T and parts of EMFT.

Development with Xtext is optimized for short turn-arounds, so that adding new features to an existing DSL is a matter of minutes. Still sophisticated programming languages can be implemented. Otherwise, you can find some example of content assist in this thread, or this one (JSDT -- JavaScript).

Thank you for answer. My question may not be clear, since this is not what I am looking for. Properties files are not described by grammar, but specified in javadoc for Properties.load() method (java.sun.com/j2se/1.5.0/docs/api/java/util/…).

Two threads you reference are specific for WTP/DLTK. I am looking for generic content-assist extension point which would work with most text-editors. Those referenced threads may indicate that content-assist processors are always specific for given editor type, which would not be good :-( – Peter Štibraný Dec 30 '09 at 21:19.

Looks like IContentProposalProvider may be what I am looking for, but still no extension point.

See this: vogella.de/articles/RichClientPlatform/a... This is not extension based solution, but may still benefit you.

Thanks, but this is only useful when adding content-assist to your own editors. I want to contribute content assist to existing editors created by other plugins. – Peter Štibraný Jan 16 '10 at 21:15.

Have a look at help.eclipse.org/help33/index.jsp?topic=... for ideas for the wst xml editor and potentially other types of editors.

You can create a plug-in project, the option, "plug-in with an editor", there is a small XML language editor with syntax coloring (this class will help you to know the classes for the extension). The content assist is not used, but you can add it looking this FAQs Syntax coloring help.eclipse.org/indigo/index.jsp?topic=... Content Assitant help.eclipse.org/indigo/index.jsp?topic=... The only thing that I am trying to find is the add Information like JavaDoc to the proposal for the defined assistant. In the FAQ say something but I really don't understand it.

Hope it helps.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions