Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Dltk-dev] Creating org.eclipse.dltk.core.CompletionProposal

Hello everyone.

I have a org.eclipse.dltk.ui.text.completion.ScriptCompletionProposalComputer to contribute additional completions.

In my ScriptCompletionProposal subclass I want to provide a getImage() implementation which uses the default icons for fields, members, etc.

I wanted to use this code for getting the respective images:

DLTKUIPlugin.getImageDescriptorRegistry().get(
 invocationContext.getLabelProvider()
   .createImageDescriptor(x));

But because x must be a org.eclipse.dltk.core.CompletionProposal, and its constructor is protected, I don't know how to create one of these.

I noticed ScriptCompletionEngine.createProposal(...), but I do not have my own ScriptCompletionEngine, since my code is "only" a contributor of proposals. I also looked for ways to get a reference to the ScriptCompletionEngine, didn't find something I could use.

Any help?



With best regards

Clemens Anhuth


--
www.froglogic.com - Squish - Multi-Platform GUI Testing



Back to the top