Auto insert single proposals [message #879485] |
Thu, 31 May 2012 05:55  |
Eclipse User |
|
|
|
Hello.
I want to enable insert single proposals automatically in my xtext editor.
My languajeProposalProvider look's like this:
public class MymwDslProposalProvider extends AbstractMymwDslProposalProvider {
...
@Override
protected ConfigurableCompletionProposal doCreateProposal(String proposal,
StyledString displayString, Image image, int priority,
ContentAssistContext context) {
ConfigurableCompletionProposal theproposal =
super.doCreateProposal(proposal, displayString, image, priority, context);
theproposal.setAutoInsertable(true);
return theproposal;
}
}
But it doesnt works.
I need to change any more?
Thanks for your help!
[Updated on: Thu, 31 May 2012 05:55] by Moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03803 seconds