Auto insert single proposals [message #879485] |
Thu, 31 May 2012 09:55 |
Vil Lpz Messages: 24 Registered: April 2012 |
Junior Member |
|
|
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 09:55] Report message to a moderator
|
|
|
Re: Auto insert single proposals [message #879496 is a reply to message #879485] |
Thu, 31 May 2012 10:14 |
|
Hi,
sounds like a bug to me
org.eclipse.xtext.ui.editor.contentassist.AbstractContentProposalProvider.doCreateProposal(String, StyledString, Image, int, ContentAssistContext)
and
org.eclipse.xtext.ui.editor.contentassist.DefaultCompletionProposalPostProcessor.postProcess(ICompletionProposal[])
dont work properly together.
please file a bugzilla
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03179 seconds